Date: Wed, 3 May 2000 17:32:56 +1000 (Australia/NSW) From: Darren Reed <avalon@coombs.anu.edu.au> To: hackers@freebsd.org Subject: protosw or ipprotosw - code mess in netinet Message-ID: <200005030732.RAA04251@cairo.anu.edu.au>
next in thread | raw e-mail | index | archive | help
Looking through /sys/netinet, it would appear that sometimes inetsw[] is "struct protosw" and others "struct ipprotosw". Which is it meant to be ? If ipprotosw is the same as protosw, why does ipprotosw exist ? e.g. in_proto.c:struct ipprotosw inetsw[] = { in_proto.c: (struct protosw *)inetsw, in_proto.c: (struct protosw *)&inetsw[sizeof(inetsw)/sizeof(inetsw[0])], 0, ip_mroute.c: extern struct protosw inetsw[]; ip_output.c:extern struct protosw inetsw[]; Darren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005030732.RAA04251>