diff options
author | cmetz <cmetz@cvs.openbsd.org> | 1999-06-23 21:55:30 +0000 |
---|---|---|
committer | cmetz <cmetz@cvs.openbsd.org> | 1999-06-23 21:55:30 +0000 |
commit | 0d589ac230ce63eb0d3ce399a31ffa5cb3904614 (patch) | |
tree | 85b14cb3cf4e439e2115cbd059e8c27ca279bc61 /sys/net | |
parent | b325ac5573bc3c88f13368f8b4a7f1e96de3ae60 (diff) |
Added some protocol independent interfaces (supposedly IPv6 support APIs, but
ones that are useful for all protocols, not just IPv6).
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 3f6a8e3e4e0..1cf3802ac3f 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if.h,v 1.11 1999/03/13 19:06:16 deraadt Exp $ */ +/* $OpenBSD: if.h,v 1.12 1999/06/23 21:55:28 cmetz Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -331,6 +331,17 @@ struct ifconf { #define ifc_req ifc_ifcu.ifcu_req /* array of structures returned */ }; +struct if_nameindex { + unsigned int if_index; + char *if_name; +}; + +unsigned int if_nametoindex __P((const char *)); +char *if_indextoname __P((unsigned int, char *)); +struct if_nameindex *if_nameindex __P((void)); + +#define if_freenameindex(x) free(x) + #include <net/if_arp.h> #ifdef _KERNEL |