diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-25 18:40:31 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-25 18:40:31 -0800 |
commit | d57236a76b95d15f77d98db827a567c40d87f173 (patch) | |
tree | 0871454cfc4f78dc8daadf533b22fbbf8b8eea46 /system/include/net | |
parent | 55ea32242febfd83841d39d1b53d6e2f190db67c (diff) | |
parent | 01e21e541251d271d28e92b2c6b28a8290994470 (diff) |
Merge branch 'master' into llvmopts
Diffstat (limited to 'system/include/net')
-rw-r--r-- | system/include/net/if.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/system/include/net/if.h b/system/include/net/if.h new file mode 100644 index 00000000..9a4badf3 --- /dev/null +++ b/system/include/net/if.h @@ -0,0 +1,26 @@ + +#ifndef _NET_IF_H +#define _NET_IF_H + +#ifdef __cplusplus +extern "C" { +#endif + +struct if_nameindex { + unsigned if_index; + char *if_name; +}; + +#define IF_NAMESIZE abort(0); + +unsigned if_nametoindex(const char *a); +char *if_indextoname(unsigned int a, char *b); +struct if_nameindex *if_nameindex(); +void if_freenameindex(struct if_nameindex *a); + +#ifdef __cplusplus +} +#endif + +#endif + |