From 8f1bd632d4528e09dc9ca0ed45397ded3364d354 Mon Sep 17 00:00:00 2001 From: wollman Date: Thu, 13 Feb 1997 19:46:45 +0000 Subject: 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. --- sys/netinet/in_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet/in_proto.c') 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, }, -- cgit v1.1