summaryrefslogtreecommitdiff
path: root/lib/libc/include
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2000-04-24 10:24:46 +0000
committeritojun <itojun@NetBSD.org>2000-04-24 10:24:46 +0000
commit92db021bdc2c3be886d9d734bd76846847eddd72 (patch)
tree25828245bc39c8093ebe6716601261b0c2abd48c /lib/libc/include
parentc6bf4b09bd700a20ac6886a1d27888d7ea1d7e08 (diff)
use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue. now getifaddrs always takes care of the issue. (sync with kame tree) use weak symbol just in case.
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/namespace.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h
index d458c9eaf80..c2df920636e 100644
--- a/lib/libc/include/namespace.h
+++ b/lib/libc/include/namespace.h
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.49 2000/04/24 09:27:30 itojun Exp $ */
+/* $NetBSD: namespace.h,v 1.50 2000/04/24 10:24:46 itojun Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -233,6 +233,10 @@
#define hesiod_init _hesiod_init
#define hesiod_resolve _hesiod_resolve
#define hesiod_to_bind _hesiod_to_bind
+#define if_freenameindex _if_freenameindex
+#define if_indextoname _if_indextoname
+#define if_nameindex _if_nameindex
+#define if_nametoindex _if_nametoindex
#define in6addr_any _in6addr_any
#define in6addr_linklocal_allnodes _in6addr_linklocal_allnodes
#define in6addr_loopback _in6addr_loopback