diff options
| author | christos <christos@NetBSD.org> | 2013-10-28 21:38:01 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2013-10-28 21:38:01 +0000 |
| commit | 9a91b54ce68d1f7f3b514b3d571f7c22d0f8efec (patch) | |
| tree | a16794bdd750f7785120b5e43684b62246f812a4 /sys | |
| parent | adab7d0784bdf9f89a6f87ceaa456445aa468700 (diff) | |
add an alias for the linux name for the interface index
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/net/if.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 706d2057889..11216538e17 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $NetBSD: if.h,v 1.158 2013/10/05 23:22:34 christos Exp $ */ +/* $NetBSD: if.h,v 1.159 2013/10/28 21:38:01 christos Exp $ */ /*- * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc. @@ -598,7 +598,8 @@ struct ifreq { */ #define ifr_buf ifr_ifru.ifru_b.b_buf /* new interface ioctls */ #define ifr_buflen ifr_ifru.ifru_b.b_buflen -#define ifr_index ifr_ifru.ifru_value /* interface index */ +#define ifr_index ifr_ifru.ifru_value /* interface index, BSD */ +#define ifr_ifindex ifr_index /* interface index, linux */ }; #ifdef _KERNEL |
