Fix nfnl_queue_msg_get_packetid() return type
[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>
This commit is contained in:
parent
574d4af2b1
commit
ca0988a2a7
2 changed files with 2 additions and 2 deletions
|
@ -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 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 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 void nfnl_queue_msg_set_hwproto(struct nfnl_queue_msg *, uint16_t);
|
||||||
extern int nfnl_queue_msg_test_hwproto(const struct nfnl_queue_msg *);
|
extern int nfnl_queue_msg_test_hwproto(const struct nfnl_queue_msg *);
|
||||||
|
|
|
@ -227,7 +227,7 @@ int nfnl_queue_msg_test_packetid(const struct nfnl_queue_msg *msg)
|
||||||
return !!(msg->ce_mask & QUEUE_MSG_ATTR_PACKETID);
|
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;
|
return msg->queue_msg_packetid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue