X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fnet%2Fif.h;h=3f4fc0927388362b5eb2bb230e8a85f9f8a28385;hp=e862c7c75532aeacc29072706a67afd93c659d59;hb=5ffe4940507110f6d0220496cdfc411b8b89aa3d;hpb=419ae6d5c95629d3ebaff6f1880d52cb027ba924 diff --git a/include/net/if.h b/include/net/if.h index e862c7c7..3f4fc092 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -5,6 +5,8 @@ extern "C" { #endif +#include + #define IF_NAMESIZE 16 struct if_nameindex @@ -41,6 +43,11 @@ void if_freenameindex (struct if_nameindex *); #define IFF_PORTSEL 0x2000 #define IFF_AUTOMEDIA 0x4000 #define IFF_DYNAMIC 0x8000 +#define IFF_LOWER_UP 0x10000 +#define IFF_DORMANT 0x20000 +#define IFF_ECHO 0x40000 +#define IFF_VOLATILE (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST| \ + IFF_ECHO|IFF_MASTER|IFF_SLAVE|IFF_RUNNING|IFF_LOWER_UP|IFF_DORMANT) struct ifaddr { struct sockaddr ifa_addr;