summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2014-06-20 15:02:22 +0800
committerTing-Wei Lan <lantw44@gmail.com>2014-06-20 15:02:22 +0800
commitb57a757a423171908b6261d3c0e70229388490fa (patch)
tree1e1f2b28cfadd2e0ceb42a797b5df74655846922
parentc6adc837ab711658c6be31e8d92a577715107963 (diff)
downloadfastalg-nfqueue-b57a757a423171908b6261d3c0e70229388490fa.tar.gz
fastalg-nfqueue-b57a757a423171908b6261d3c0e70229388490fa.tar.zst
fastalg-nfqueue-b57a757a423171908b6261d3c0e70229388490fa.zip
Fix wrong argument type for queue_num
-rw-r--r--src/falgnfq-loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/falgnfq-loop.c b/src/falgnfq-loop.c
index b8467c2..6479621 100644
--- a/src/falgnfq-loop.c
+++ b/src/falgnfq-loop.c
@@ -124,7 +124,7 @@ static void packet_list_free (void *head) {
}
static struct nlmsghdr* queue_pkt_init (
- char *pkt, uint16_t type, uint32_t queue_num) {
+ char *pkt, uint16_t type, uint16_t queue_num) {
struct nlmsghdr *nlh = mnl_nlmsg_put_header (pkt);
nlh->nlmsg_type = (NFNL_SUBSYS_QUEUE << 8) | type;