Source-Changes-HG archive

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

[src/trunk]: src/sys/net Expose IF_NAMESIZE for POSIX and X/Open applications.



details:   https://anonhg.NetBSD.org/src/rev/20ba8bba5b90
branches:  trunk
changeset: 546506:20ba8bba5b90
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Wed Apr 30 18:50:26 2003 +0000

description:
Expose IF_NAMESIZE for POSIX and X/Open applications.

diffstat:

 sys/net/if.h |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r a4fd2b945547 -r 20ba8bba5b90 sys/net/if.h
--- a/sys/net/if.h      Wed Apr 30 18:38:19 2003 +0000
+++ b/sys/net/if.h      Wed Apr 30 18:50:26 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.h,v 1.87 2003/04/28 23:16:25 bjh21 Exp $    */
+/*     $NetBSD: if.h,v 1.88 2003/04/30 18:50:26 bjh21 Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -75,6 +75,13 @@
 #define _NET_IF_H_
 
 #include <sys/featuretest.h>
+
+/*
+ * Length of interface external name, including terminating '\0'.
+ * Note: this is the same size as a generic device's external name.
+ */
+#define IF_NAMESIZE 16
+
 #if defined(_NETBSD_SOURCE)
 
 #include <sys/socket.h>
@@ -129,12 +136,7 @@
 struct ifnet;
 struct rt_addrinfo;
 
-/*
- * Length of interface external name, including terminating '\0'.
- * Note: this is the same size as a generic device's external name.
- */
-#define        IFNAMSIZ        16
-#define        IF_NAMESIZE     IFNAMSIZ
+#define        IFNAMSIZ        IF_NAMESIZE
 
 /*
  * Structure describing a `cloning' interface.



Home | Main Index | Thread Index | Old Index