From: Pablo Neira Ayuso <pablo@eurodev.net>
To: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Cc: Harald Welte <laforge@netfilter.org>, Patrick McHardy <kaber@trash.net>
Subject: [LIBNFNETLINK 2/3] Fix wrong nfnetlink header size
Date: Sun, 12 Feb 2006 22:39:39 +0100 [thread overview]
Message-ID: <43EFAB1B.3040309@eurodev.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 144 bytes --]
Fix wrong size of the netfilter netlink header. This implicitely fixes
an alignment issue when nfnl_handle_packet is called as well.
--
Pablo
[-- Attachment #2: 02.patch --]
[-- Type: text/plain, Size: 708 bytes --]
[LIBNFNETLINK] Fix wrong nfnetlink header size
Fix wrong size of the netfilter netlink header. This implicitely fixes an
alignment issue when nfnl_handle_packet is called as well.
Index: libnfnetlink/src/libnfnetlink.c
===================================================================
--- libnfnetlink.orig/src/libnfnetlink.c 2006-02-12 19:28:19.000000000 +0100
+++ libnfnetlink/src/libnfnetlink.c 2006-02-12 19:30:00.000000000 +0100
@@ -914,7 +914,7 @@ int nfnl_check_attributes(const struct n
if (type >= ssh->cb_count)
return -EINVAL;
- min_len = NLMSG_ALIGN(sizeof(struct nfgenmsg));
+ min_len = NLMSG_SPACE(sizeof(struct nfgenmsg));
if (nlh->nlmsg_len < min_len)
return -EINVAL;
#endif
next reply other threads:[~2006-02-12 21:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-12 21:39 Pablo Neira Ayuso [this message]
2006-02-13 11:35 ` [LIBNFNETLINK 2/3] Fix wrong nfnetlink header size Harald Welte
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=43EFAB1B.3040309@eurodev.net \
--to=pablo@eurodev.net \
--cc=kaber@trash.net \
--cc=laforge@netfilter.org \
--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.