From 071f86f9f1c961dd8169268ab4895d7ed7a350f0 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 3 Sep 2001 20:03:55 +0000 Subject: Patches from Keiichi SHIMA to make ip use the standard protosw structure again. Obtained from: Well, KAME I guess. --- sys/netinet/in_proto.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/netinet/in_proto.c') diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 8e19332..f1a0934 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -63,8 +63,6 @@ #include #include -#include - /* * TCP/IP protocol family: IP, ICMP, UDP, TCP. */ @@ -90,7 +88,7 @@ extern struct domain inetdomain; static struct pr_usrreqs nousrreqs; -struct ipprotosw inetsw[] = { +struct protosw inetsw[] = { { 0, &inetdomain, 0, 0, 0, 0, 0, 0, 0, @@ -207,8 +205,8 @@ extern int in_inithead __P((void **, int)); struct domain inetdomain = { AF_INET, "internet", 0, 0, 0, - (struct protosw *)inetsw, - (struct protosw *)&inetsw[sizeof(inetsw)/sizeof(inetsw[0])], 0, + inetsw, + &inetsw[sizeof(inetsw)/sizeof(inetsw[0])], 0, in_inithead, 32, sizeof(struct sockaddr_in) }; -- cgit v1.1