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
This commit is contained in:
@@ -136,21 +136,19 @@ struct protosw {
|
|||||||
|
|
||||||
|
|
||||||
/* Network stack defines... */
|
/* Network stack defines... */
|
||||||
#ifdef _KERNEL_MODE
|
// struct protosw *protocols;
|
||||||
struct protosw *protocols;
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
NET_LAYER1 = 1,
|
NET_LAYER1 = 1,
|
||||||
NET_LAYER2,
|
NET_LAYER2,
|
||||||
NET_LAYER3,
|
NET_LAYER3,
|
||||||
NET_LAYER4
|
NET_LAYER4
|
||||||
};
|
};
|
||||||
|
|
||||||
//XXX conflicts with src/add-ons/kernel/network/core/core.c:69
|
//XXX conflicts with src/add-ons/kernel/network/core/core.c:69
|
||||||
// void add_protosw (struct protosw *prt[], int);
|
// void add_protosw (struct protosw *prt[], int);
|
||||||
void add_protocol (struct protosw *, int);
|
void add_protocol (struct protosw *, int);
|
||||||
void remove_protocol (struct protosw *);
|
void remove_protocol (struct protosw *);
|
||||||
#endif
|
|
||||||
|
|
||||||
struct protosw *pffindproto(int domain, int protocol, int type);
|
struct protosw *pffindproto(int domain, int protocol, int type);
|
||||||
struct protosw *pffindtype(int domain, int type);
|
struct protosw *pffindtype(int domain, int type);
|
||||||
|
|||||||
Reference in New Issue
Block a user