From: Shivani Bhardwaj <shivanib134@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH v2] src: datatype: Modify symbol table for icmpv6 packet types
Date: Tue, 5 Jan 2016 17:50:23 +0530 [thread overview]
Message-ID: <20160105122023.GA2815@gmail.com> (raw)
Add the missing symbols and correct the macros corresponding to the
existing symbols.
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
Changes in v2:
Remove unneeded symbol and corresponding macro
src/datatype.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/datatype.c b/src/datatype.c
index f56763b..40e14c9 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -17,6 +17,7 @@
#include <arpa/inet.h>
#include <linux/types.h>
#include <linux/netfilter.h>
+#include <linux/icmpv6.h>
#include <nftables.h>
#include <datatype.h>
@@ -26,7 +27,6 @@
#include <netlink.h>
#include <netinet/ip_icmp.h>
-#include <netinet/icmp6.h>
static const struct datatype *datatypes[TYPE_MAX + 1] = {
[TYPE_INVALID] = &invalid_type,
@@ -731,10 +731,12 @@ const struct datatype icmp_code_type = {
static const struct symbol_table icmpv6_code_tbl = {
.symbols = {
- SYMBOL("no-route", ICMP6_DST_UNREACH_NOROUTE),
- SYMBOL("admin-prohibited", ICMP6_DST_UNREACH_ADMIN),
- SYMBOL("addr-unreachable", ICMP6_DST_UNREACH_ADDR),
- SYMBOL("port-unreachable", ICMP6_DST_UNREACH_NOPORT),
+ SYMBOL("no-route", ICMPV6_NOROUTE),
+ SYMBOL("admin-prohibited", ICMPV6_ADM_PROHIBITED),
+ SYMBOL("addr-unreachable", ICMPV6_ADDR_UNREACH),
+ SYMBOL("port-unreachable", ICMPV6_PORT_UNREACH),
+ SYMBOL("policy-fail", ICMPV6_POLICY_FAIL),
+ SYMBOL("reject-route", ICMPV6_REJECT_ROUTE),
SYMBOL_LIST_END
},
};
--
1.9.1
next reply other threads:[~2016-01-05 12:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-05 12:20 Shivani Bhardwaj [this message]
2016-01-20 13:55 ` [PATCH v2] src: datatype: Modify symbol table for icmpv6 packet types Pablo Neira Ayuso
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=20160105122023.GA2815@gmail.com \
--to=shivanib134@gmail.com \
--cc=netfilter-devel@vger.kernel.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.