aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-12-18 00:48:02 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:32 -0500
commit72f36ec14fb5006886bc0655ec2b43bf1ad53a26 (patch)
treecc990e9a1a6e3fe1b8d7549768887c390f6b6c30 /net/ipv6
parentb386d9f5960a9afce7f077edf2095fccfbb1a8e6 (diff)
[NETFILTER]: ip6_tables: kill a few useless defines/forward declarations
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/ip6_tables.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
index d3e884a5c6a8..b73e6b6d5546 100644
--- a/net/ipv6/netfilter/ip6_tables.c
+++ b/net/ipv6/netfilter/ip6_tables.c
@@ -31,9 +31,6 @@ MODULE_LICENSE("GPL");
31MODULE_AUTHOR("Netfilter Core Team <coreteam@netfilter.org>"); 31MODULE_AUTHOR("Netfilter Core Team <coreteam@netfilter.org>");
32MODULE_DESCRIPTION("IPv6 packet filter"); 32MODULE_DESCRIPTION("IPv6 packet filter");
33 33
34#define IPV6_HDR_LEN (sizeof(struct ipv6hdr))
35#define IPV6_OPTHDR_LEN (sizeof(struct ipv6_opt_hdr))
36
37/*#define DEBUG_IP_FIREWALL*/ 34/*#define DEBUG_IP_FIREWALL*/
38/*#define DEBUG_ALLOW_ALL*/ /* Useful for remote debugging */ 35/*#define DEBUG_ALLOW_ALL*/ /* Useful for remote debugging */
39/*#define DEBUG_IP_FIREWALL_USER*/ 36/*#define DEBUG_IP_FIREWALL_USER*/
@@ -76,12 +73,6 @@ do { \
76 73
77 Hence the start of any table is given by get_table() below. */ 74 Hence the start of any table is given by get_table() below. */
78 75
79#if 0
80#define down(x) do { printk("DOWN:%u:" #x "\n", __LINE__); down(x); } while(0)
81#define down_interruptible(x) ({ int __r; printk("DOWNi:%u:" #x "\n", __LINE__); __r = down_interruptible(x); if (__r != 0) printk("ABORT-DOWNi:%u\n", __LINE__); __r; })
82#define up(x) do { printk("UP:%u:" #x "\n", __LINE__); up(x); } while(0)
83#endif
84
85/* Check for an extension */ 76/* Check for an extension */
86int 77int
87ip6t_ext_hdr(u8 nexthdr) 78ip6t_ext_hdr(u8 nexthdr)
@@ -399,9 +390,8 @@ ip6t_do_table(struct sk_buff *skb,
399 goto no_match; 390 goto no_match;
400 391
401 ADD_COUNTER(e->counters, 392 ADD_COUNTER(e->counters,
402 ntohs(ipv6_hdr(skb)->payload_len) 393 ntohs(ipv6_hdr(skb)->payload_len) +
403 + IPV6_HDR_LEN, 394 sizeof(struct ipv6hdr), 1);
404 1);
405 395
406 t = ip6t_get_target(e); 396 t = ip6t_get_target(e);
407 IP_NF_ASSERT(t->u.kernel.target); 397 IP_NF_ASSERT(t->u.kernel.target);
@@ -657,8 +647,6 @@ err:
657 return ret; 647 return ret;
658} 648}
659 649
660static struct xt_target ip6t_standard_target;
661
662static inline int 650static inline int
663check_entry(struct ip6t_entry *e, const char *name, unsigned int size, 651check_entry(struct ip6t_entry *e, const char *name, unsigned int size,
664 unsigned int *i) 652 unsigned int *i)