]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Initialize ic_timout in strioctl structs
authorTed Lemon <source@isc.org>
Tue, 27 Aug 1996 09:52:09 +0000 (09:52 +0000)
committerTed Lemon <source@isc.org>
Tue, 27 Aug 1996 09:52:09 +0000 (09:52 +0000)
common/nit.c
nit.c

index 48c0525e40bd6d970b2e1be6289b81f2815f6841..5344c74c7d032d57a209d099c8556227af27048a 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"@(#) Copyright (c) 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: nit.c,v 1.7 1996/08/27 09:52:09 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -85,6 +85,7 @@ int if_register_nit (info, ifp)
        sio.ic_cmd = NIOCBIND;
        sio.ic_len = sizeof *ifp;
        sio.ic_dp = (char *)ifp;
+       sio.ic_timout = INFTIM;
        if (ioctl (sock, I_STR, &sio) < 0)
                error ("Can't attach interface to nit device: %m");
 
@@ -92,6 +93,7 @@ int if_register_nit (info, ifp)
        sio.ic_cmd = SIOCGIFADDR;
        sio.ic_len = sizeof ifr;
        sio.ic_dp = (char *)&ifr;
+       sio.ic_timout = INFTIM;
        if (ioctl (sock, I_STR, &sio) < 0)
                error ("Can't get physical layer address: %m");
 
diff --git a/nit.c b/nit.c
index 48c0525e40bd6d970b2e1be6289b81f2815f6841..5344c74c7d032d57a209d099c8556227af27048a 100644 (file)
--- a/nit.c
+++ b/nit.c
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"@(#) Copyright (c) 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: nit.c,v 1.7 1996/08/27 09:52:09 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -85,6 +85,7 @@ int if_register_nit (info, ifp)
        sio.ic_cmd = NIOCBIND;
        sio.ic_len = sizeof *ifp;
        sio.ic_dp = (char *)ifp;
+       sio.ic_timout = INFTIM;
        if (ioctl (sock, I_STR, &sio) < 0)
                error ("Can't attach interface to nit device: %m");
 
@@ -92,6 +93,7 @@ int if_register_nit (info, ifp)
        sio.ic_cmd = SIOCGIFADDR;
        sio.ic_len = sizeof ifr;
        sio.ic_dp = (char *)&ifr;
+       sio.ic_timout = INFTIM;
        if (ioctl (sock, I_STR, &sio) < 0)
                error ("Can't get physical layer address: %m");