summaryrefslogtreecommitdiffstats
path: root/sys/net/if_llatbl.h
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2011-05-20 19:12:20 +0000
committerqingli <qingli@FreeBSD.org>2011-05-20 19:12:20 +0000
commita1bf1a258207345435ea10acd5842a3edd836a66 (patch)
tree25e7bd536a80b8bf826cad648267e4078b9e4f2e /sys/net/if_llatbl.h
parent8b344f95a5795eba597f19d5c6b1516c99bb2fa9 (diff)
downloadFreeBSD-src-a1bf1a258207345435ea10acd5842a3edd836a66.zip
FreeBSD-src-a1bf1a258207345435ea10acd5842a3edd836a66.tar.gz
The statically configured (permanent) ARP entries are removed when an
interface is brought down, even though the interface address is still valid. This patch maintains the permanent ARP entries as long as the interface address (having the same prefix as that of the ARP entries) is valid. Reviewed by: delphij MFC after: 5 days
Diffstat (limited to 'sys/net/if_llatbl.h')
-rw-r--r--sys/net/if_llatbl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_llatbl.h b/sys/net/if_llatbl.h
index 9ed09f4..1f30f37 100644
--- a/sys/net/if_llatbl.h
+++ b/sys/net/if_llatbl.h
@@ -155,7 +155,8 @@ struct lltable {
void (*llt_free)(struct lltable *, struct llentry *);
void (*llt_prefix_free)(struct lltable *,
const struct sockaddr *prefix,
- const struct sockaddr *mask);
+ const struct sockaddr *mask,
+ u_int flags);
struct llentry * (*llt_lookup)(struct lltable *, u_int flags,
const struct sockaddr *l3addr);
int (*llt_rtcheck)(struct ifnet *, u_int flags,
@@ -184,7 +185,7 @@ MALLOC_DECLARE(M_LLTABLE);
struct lltable *lltable_init(struct ifnet *, int);
void lltable_free(struct lltable *);
void lltable_prefix_free(int, struct sockaddr *,
- struct sockaddr *);
+ struct sockaddr *, u_int);
#if 0
void lltable_drain(int);
#endif
OpenPOWER on IntegriCloud