summaryrefslogtreecommitdiff
path: root/common/nit.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1997-02-26 05:20:53 +0000
committerTed Lemon <source@isc.org>1997-02-26 05:20:53 +0000
commit8d929f2fa2a37e3ef97e558814bab260034e5128 (patch)
tree4fe66b2643484c3a81c62248e19c0cbbea1176f7 /common/nit.c
parentde60690e73e2035a6638d112fdc879993fd4d26c (diff)
downloadisc-dhcp-8d929f2fa2a37e3ef97e558814bab260034e5128.tar.gz
Remove if_enable()
Diffstat (limited to 'common/nit.c')
-rw-r--r--common/nit.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/common/nit.c b/common/nit.c
index 77c2ea15..4c84f8ba 100644
--- a/common/nit.c
+++ b/common/nit.c
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: nit.c,v 1.12 1997/02/19 10:49:20 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: nit.c,v 1.13 1997/02/26 05:20:53 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -343,21 +343,3 @@ size_t receive_packet (interface, buf, len, from, hfrom)
return length;
}
#endif
-
-#if defined (USE_NIT_SEND)
-void if_enable (interface)
- struct interface_info *interface;
-{
- struct ifreq ifr;
-
- /* Bring the interface down and then up again to clear
- * all its routes. */
- strncpy(ifr.ifr_name, interface -> name, IFNAMSIZ);
- if (ioctl(interface -> rfdesc, SIOCGIFFLAGS, &ifr) < 0)
- error ("SIOCGIFFLAGS %s: %m", interface -> name);
-
- ifr.ifr_flags |= (IFF_UP|IFF_RUNNING);
- if (ioctl(interface -> rfdesc, SIOCSIFFLAGS, &ifr) == -1)
- error ("SIOCSIFFLAGS %s: %m", interface -> name);
-}
-#endif