]> err.no Git - linux-2.6/commitdiff
[NET]: add+use poison defines
authorRandy Dunlap <rdunlap@xenotime.net>
Tue, 4 Jul 2006 02:47:27 +0000 (19:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jul 2006 02:47:27 +0000 (19:47 -0700)
Add and use poison defines in net/.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/poison.h
net/atm/clip.c
net/ipv6/netfilter/ip6_tables.c

index a5347c02432e99eaa5b57ae5edeafa96c18152ee..05d7d0fd6bdbce559a9d84b3817da79fd19d83b8 100644 (file)
 /********** drivers/atm/ **********/
 #define ATM_POISON_FREE                0x12
 
+/********** net/ **********/
+#define NEIGHBOR_DEAD          0xdeadbeef
+#define NETFILTER_LINK_POISON  0xdead57ac
+
 /********** kernel/mutexes **********/
 #define MUTEX_DEBUG_INIT       0x11
 #define MUTEX_DEBUG_FREE       0x22
index 87a454f5c89cd20c10e870ca973bff948f1dd0e2..121bf6f4914897713f0c9672e41b39f54501fd3b 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/if.h> /* for IFF_UP */
 #include <linux/inetdevice.h>
 #include <linux/bitops.h>
+#include <linux/poison.h>
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
 #include <linux/rcupdate.h>
@@ -266,7 +267,7 @@ static void clip_neigh_destroy(struct neighbour *neigh)
        DPRINTK("clip_neigh_destroy (neigh %p)\n", neigh);
        if (NEIGH2ENTRY(neigh)->vccs)
                printk(KERN_CRIT "clip_neigh_destroy: vccs != NULL !!!\n");
-       NEIGH2ENTRY(neigh)->vccs = (void *) 0xdeadbeef;
+       NEIGH2ENTRY(neigh)->vccs = (void *) NEIGHBOR_DEAD;
 }
 
 static void clip_neigh_solicit(struct neighbour *neigh, struct sk_buff *skb)
index 7ef143c0ebf6bac967821f2b8cf4617c456bdde9..f26898b003475cb1358d6ab5dc9e7c831bca21c9 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/vmalloc.h>
 #include <linux/netdevice.h>
 #include <linux/module.h>
+#include <linux/poison.h>
 #include <linux/icmpv6.h>
 #include <net/ipv6.h>
 #include <asm/uaccess.h>
@@ -376,7 +377,7 @@ ip6t_do_table(struct sk_buff **pskb,
        } while (!hotdrop);
 
 #ifdef CONFIG_NETFILTER_DEBUG
-       ((struct ip6t_entry *)table_base)->comefrom = 0xdead57ac;
+       ((struct ip6t_entry *)table_base)->comefrom = NETFILTER_LINK_POISON;
 #endif
        read_unlock_bh(&table->lock);