Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net add an alias for the linux name for the interface index



details:   https://anonhg.NetBSD.org/src/rev/22c74316dffe
branches:  trunk
changeset: 790967:22c74316dffe
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 28 21:38:01 2013 +0000

description:
add an alias for the linux name for the interface index

diffstat:

 sys/net/if.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r a02b010b0274 -r 22c74316dffe sys/net/if.h
--- a/sys/net/if.h      Mon Oct 28 21:36:43 2013 +0000
+++ b/sys/net/if.h      Mon Oct 28 21:38:01 2013 +0000
@@ -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 @@
                                                 */
 #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



Home | Main Index | Thread Index | Old Index