summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_proto.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1997-02-13 19:46:45 +0000
committerwollman <wollman@FreeBSD.org>1997-02-13 19:46:45 +0000
commit8f1bd632d4528e09dc9ca0ed45397ded3364d354 (patch)
tree754e6568b416e501652bc6bb3e1c72d391ec0257 /sys/netinet/in_proto.c
parent1f8c9c194a905535c832a0021936cf4734355267 (diff)
downloadFreeBSD-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_proto.c')
-rw-r--r--sys/netinet/in_proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index 5b66e0d..9a80959 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -116,7 +116,7 @@ struct protosw inetsw[] = {
&tcp_usrreqs
},
{ SOCK_RAW, &inetdomain, IPPROTO_RAW, PR_ATOMIC|PR_ADDR,
- rip_input, 0, 0, rip_ctloutput,
+ rip_input, 0, rip_ctlinput, rip_ctloutput,
rip_usrreq,
0, 0, 0, 0,
},
OpenPOWER on IntegriCloud