]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Fix nfnl_queue_msg_get_packetid() return type
authorPatrick McHardy <kaber@trash.net>
Thu, 24 Jan 2008 12:28:08 +0000 (13:28 +0100)
committerThomas Graf <tgr@deb.localdomain>
Thu, 7 Feb 2008 12:18:34 +0000 (13:18 +0100)
[LIBNL]: Fix nfnl_queue_msg_get_packetid() return type

The packet-ID is a 32 bit value, but nfnl_queue_msg_get_packetid() returns
an uint16_t. Makes queueing fail after 2^16 packets.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/netlink/netfilter/queue_msg.h
lib/netfilter/queue_msg_obj.c

index daf7b3cc6e77e509df52b08dffa007a9d166ae6f..bb63236d0991611eb7df8025d7ea85a9cc7eecaf 100644 (file)
@@ -41,7 +41,7 @@ extern uint8_t                        nfnl_queue_msg_get_family(const struct nfnl_queue_msg *);
 
 extern void                    nfnl_queue_msg_set_packetid(struct nfnl_queue_msg *, uint32_t);
 extern int                     nfnl_queue_msg_test_packetid(const struct nfnl_queue_msg *);
-extern uint16_t                        nfnl_queue_msg_get_packetid(const struct nfnl_queue_msg *);
+extern uint32_t                        nfnl_queue_msg_get_packetid(const struct nfnl_queue_msg *);
 
 extern void                    nfnl_queue_msg_set_hwproto(struct nfnl_queue_msg *, uint16_t);
 extern int                     nfnl_queue_msg_test_hwproto(const struct nfnl_queue_msg *);
index f86d6f6c93934aacf4c53ed53c9be45b5e1e8e20..476d920a9a25c422f2873d863b0241ea5799af51 100644 (file)
@@ -227,7 +227,7 @@ int nfnl_queue_msg_test_packetid(const struct nfnl_queue_msg *msg)
        return !!(msg->ce_mask & QUEUE_MSG_ATTR_PACKETID);
 }
 
-uint16_t nfnl_queue_msg_get_packetid(const struct nfnl_queue_msg *msg)
+uint32_t nfnl_queue_msg_get_packetid(const struct nfnl_queue_msg *msg)
 {
        return msg->queue_msg_packetid;
 }