From f0ad00a24491d6c2ca9c27fe5c818dac720b9571 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Wed, 13 Nov 2002 23:40:03 +0000 Subject: [PATCH] Remove once again a global variable (protocols list) declaration from a header! Plus remove unrequired _KERNEL_MODE code switch. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1922 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/sys/protosw.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/headers/posix/sys/protosw.h b/headers/posix/sys/protosw.h index a7c6e0dea8..885038a5f3 100644 --- a/headers/posix/sys/protosw.h +++ b/headers/posix/sys/protosw.h @@ -136,21 +136,19 @@ struct protosw { /* Network stack defines... */ -#ifdef _KERNEL_MODE - struct protosw *protocols; +// struct protosw *protocols; - enum { +enum { NET_LAYER1 = 1, NET_LAYER2, NET_LAYER3, NET_LAYER4 - }; + }; //XXX conflicts with src/add-ons/kernel/network/core/core.c:69 -// void add_protosw (struct protosw *prt[], int); - void add_protocol (struct protosw *, int); - void remove_protocol (struct protosw *); -#endif +// void add_protosw (struct protosw *prt[], int); +void add_protocol (struct protosw *, int); +void remove_protocol (struct protosw *); struct protosw *pffindproto(int domain, int protocol, int type); struct protosw *pffindtype(int domain, int type);