On 19/11/13(Tue) 15:25, Mike Belopuhov wrote:
> Apparently, this leads to some funny results. There are a bunch of
> prototypes under "ifndef _KERNEL":
>
> #ifndef _KERNEL
> __BEGIN_DECLS
> unsigned int if_nametoindex(const char *);
> char*if_indextoname(unsigned int, char *);
> struct if_na
Apparently, this leads to some funny results. There are a bunch of
prototypes under "ifndef _KERNEL":
#ifndef _KERNEL
__BEGIN_DECLS
unsigned int if_nametoindex(const char *);
char*if_indextoname(unsigned int, char *);
struct if_nameindex *if_nameindex(void);
voidif_freenameindex(struct i
I prefer something this model of handling the situation, as long as
the ports tree software handles it well. (But then again, the other
way of doing it will cause effects there as well..)
> As promised here's a take on hiding ifnet via _KERNEL. This looks
> a bit simpler. I've tried not to toss
As promised here's a take on hiding ifnet via _KERNEL. This looks
a bit simpler. I've tried not to toss things around that much and
have only moved 'ifqueue'.
diff --git sys/net/if.h sys/net/if.h
index b7d1b3c..9a14117 100644
--- sys/net/if.h
+++ sys/net/if.h
@@ -58,16 +58,15 @@ voidif_f