diff options
author | wollman <wollman@FreeBSD.org> | 1997-02-13 19:46:45 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-02-13 19:46:45 +0000 |
commit | 8f1bd632d4528e09dc9ca0ed45397ded3364d354 (patch) | |
tree | 754e6568b416e501652bc6bb3e1c72d391ec0257 /sys/netinet/in_var.h | |
parent | 1f8c9c194a905535c832a0021936cf4734355267 (diff) | |
download | FreeBSD-src-8f1bd632d4528e09dc9ca0ed45397ded3364d354.zip FreeBSD-src-8f1bd632d4528e09dc9ca0ed45397ded3364d354.tar.gz |
Provide PRC_IFDOWN and PRC_IFUP support for IP. Now, when an interface
is administratively downed, all routes to that interface (including the
interface route itself) which are not static will be deleted. When
it comes back up, and addresses remaining will have their interface routes
re-added. This solves the problem where, for example, an Ethernet interface
is downed by traffic continues to flow by way of ARP entries.
Diffstat (limited to 'sys/netinet/in_var.h')
-rw-r--r-- | sys/netinet/in_var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in_var.h b/sys/netinet/in_var.h index f760956..dfc08ca 100644 --- a/sys/netinet/in_var.h +++ b/sys/netinet/in_var.h @@ -219,6 +219,8 @@ void in_delmulti __P((struct in_multi *)); int in_control __P((struct socket *, u_long, caddr_t, struct ifnet *)); void in_rtqdrain __P((void)); void ip_input __P((struct mbuf *)); +int in_ifadown __P((struct ifaddr *ifa)); +void in_ifscrub __P((struct ifnet *, struct in_ifaddr *)); #endif /* KERNEL */ |