summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2004-09-14 09:50:00 +0900
committerHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2004-09-14 09:50:00 +0900
commit089fcdeeb50831fc9663b0de689b1a1e6573e666 (patch)
tree4b110eed2354cb16143e43b24b7f05e01d12a48d /include
parent8a690d16e64e76f884d74128dc10ac6b28c135d2 (diff)
[NET] NEIGHBOUR: save number of arguments for neigh_update() by flags.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/neighbour.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index 8c97932a98e7..030497aeb254 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -179,6 +179,10 @@ struct neigh_table
struct pneigh_entry *phash_buckets[PNEIGH_HASHMASK+1];
};
+/* flags for neigh_update() */
+#define NEIGH_UPDATE_F_OVERRIDE 0x00000001
+#define NEIGH_UPDATE_F_ADMIN 0x80000000
+
extern void neigh_table_init(struct neigh_table *tbl);
extern int neigh_table_clear(struct neigh_table *tbl);
extern struct neighbour * neigh_lookup(struct neigh_table *tbl,
@@ -189,7 +193,8 @@ extern struct neighbour * neigh_create(struct neigh_table *tbl,
struct net_device *dev);
extern void neigh_destroy(struct neighbour *neigh);
extern int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb);
-extern int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, int override, int arp);
+extern int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new,
+ u32 flags);
extern void neigh_changeaddr(struct neigh_table *tbl, struct net_device *dev);
extern int neigh_ifdown(struct neigh_table *tbl, struct net_device *dev);
extern int neigh_resolve_output(struct sk_buff *skb);