From: Patrick McHardy <kaber@trash.net>
To: davem@davemloft.net
Cc: netfilter-devel@lists.netfilter.org, Patrick McHardy <kaber@trash.net>
Subject: [NETFILTER 01/04]: nfnetlink_log: fix byteorder of NFULA_SEQ_GLOBAL
Date: Tue, 14 Nov 2006 08:03:28 +0100 (MET) [thread overview]
Message-ID: <20061114070327.13023.70644.sendpatchset@localhost.localdomain> (raw)
In-Reply-To: <20061114070325.13023.10720.sendpatchset@localhost.localdomain>
[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>
---
commit 7c1ac6f74a10cb9fe0800de7e9a1626497dde438
tree bae81087a86be5325fd94b6c6ec26023328e09e0
parent bb831eb2027c12a740ad4e4ad78f2a0e841ae808
author Patrick McHardy <kaber@trash.net> Tue, 14 Nov 2006 07:53:30 +0100
committer Patrick McHardy <kaber@trash.net> Tue, 14 Nov 2006 07:53:30 +0100
net/netfilter/nfnetlink_log.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index b2bf8f2..1e5207b 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -544,7 +544,7 @@ #endif
}
/* 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);
}
next prev parent reply other threads:[~2006-11-14 7:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 7:03 [NETFILTER 00/04]: Netfilter fixes Patrick McHardy
2006-11-14 7:03 ` Patrick McHardy [this message]
2006-11-14 7:03 ` [NETFILTER 02/04]: Use pskb_trim in {ip,ip6,nfnetlink}_queue Patrick McHardy
2006-11-14 7:03 ` [NETFILTER 03/04]: ip6_tables: fixed conflicted optname for getsockopt Patrick McHardy
2006-11-14 7:03 ` [NETFILTER 04/04]: ip6_tables: use correct nexthdr value in ipv6_find_hdr() Patrick McHardy
2006-11-15 3:49 ` [NETFILTER 00/04]: Netfilter fixes David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061114070327.13023.70644.sendpatchset@localhost.localdomain \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.