[NETFILTER]: nfnetlink_log: fix byteorder of NFULA_SEQ_GLOBAL
NFULA_SEQ_GLOBAL should be in network byteorder. Spotted by Al Viro. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0ccead1869
commit
7fdeaf68a1
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ __build_packet_message(struct nfulnl_instance *inst,
|
|||
}
|
||||
/* global sequence number */
|
||||
if (inst->flags & NFULNL_CFG_F_SEQ_GLOBAL) {
|
||||
tmp_uint = atomic_inc_return(&global_seq);
|
||||
tmp_uint = htonl(atomic_inc_return(&global_seq));
|
||||
NFA_PUT(inst->skb, NFULA_SEQ_GLOBAL, sizeof(tmp_uint), &tmp_uint);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue