50 lines
1 KiB
Text
50 lines
1 KiB
Text
$NetBSD: patch-ak,v 1.1 2006/03/05 08:17:49 christos Exp $
|
|
|
|
--- sock.c 2005-06-01 15:02:37.000000000 -0400
|
|
+++ sock.c 2006-03-05 02:02:18.000000000 -0500
|
|
@@ -60,15 +60,23 @@
|
|
{ IFF_NOARP, "IFF_NOARP" },
|
|
{ IFF_PROMISC, "IFF_PROMISC" },
|
|
{ IFF_ALLMULTI, "IFF_ALLMULTI" },
|
|
+#ifdef IFF_MASTER
|
|
{ IFF_MASTER, "IFF_MASTER" },
|
|
+#endif
|
|
+#ifdef IFF_SLAVE
|
|
{ IFF_SLAVE, "IFF_SLAVE" },
|
|
+#endif
|
|
{ IFF_MULTICAST, "IFF_MULTICAST" },
|
|
+#ifdef IFF_PORTSEL
|
|
{ IFF_PORTSEL, "IFF_PORTSEL" },
|
|
+#endif
|
|
+#ifdef IFF_AUTOMEDIA
|
|
{ IFF_AUTOMEDIA, "IFF_AUTOMEDIA" },
|
|
+#endif
|
|
{ 0, NULL }
|
|
};
|
|
|
|
-
|
|
+#ifndef ALLBSD
|
|
static void
|
|
print_addr(tcp, addr, ifr)
|
|
struct tcb *tcp;
|
|
@@ -82,16 +90,19 @@
|
|
} else
|
|
printstr(tcp, addr, sizeof(ifr->ifr_addr.sa_data));
|
|
}
|
|
+#endif
|
|
|
|
int
|
|
sock_ioctl(tcp, code, arg)
|
|
struct tcb *tcp;
|
|
long code, arg;
|
|
{
|
|
- struct ifreq ifr;
|
|
struct ifconf ifc;
|
|
+#ifndef ALLBSD
|
|
+ struct ifreq ifr;
|
|
const char *str = NULL;
|
|
unsigned char *bytes;
|
|
+#endif
|
|
|
|
if (entering(tcp)) {
|
|
if (code == SIOCGIFCONF) {
|