* [PATCH] src: datatype: Modify symbol table for icmpv6 packet types
@ 2016-01-05 6:38 Shivani Bhardwaj
0 siblings, 0 replies; only message in thread
From: Shivani Bhardwaj @ 2016-01-05 6:38 UTC (permalink / raw)
To: netfilter-devel
Add the missing symbols and correct the macros corresponding to the
existing symbols.
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
src/datatype.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/datatype.c b/src/datatype.c
index f56763b..d8599e5 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,13 @@ 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("not-neighbour", ICMPV6_NOT_NEIGHBOUR),
+ 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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-05 6:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05 6:38 [PATCH] src: datatype: Modify symbol table for icmpv6 packet types Shivani Bhardwaj
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.