]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use interface_snorf to register interfaces specified on the command line.
authorTed Lemon <source@isc.org>
Thu, 19 Apr 2001 16:48:53 +0000 (16:48 +0000)
committerTed Lemon <source@isc.org>
Thu, 19 Apr 2001 16:48:53 +0000 (16:48 +0000)
relay/dhcrelay.c

index bb1302e2b90cacd8526b9c0cb048f83897154c17..1d3f2d5b40775f94b14a625de07916c7f2113a92 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhcrelay.c,v 1.51 2001/04/05 22:44:23 mellon Exp $ Copyright (c) 1997-2000 Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcrelay.c,v 1.52 2001/04/19 16:48:53 mellon Exp $ Copyright (c) 1997-2000 Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -175,13 +175,7 @@ int main (argc, argv, envp)
                                usage ();
                        }
                        strcpy (tmp -> name, argv [i]);
-                       tmp -> flags = INTERFACE_REQUESTED;
-                       if (interfaces) {
-                               interface_reference (&tmp -> next, interfaces,
-                                                    MDL);
-                               interface_dereference (&interfaces, MDL);
-                       }
-                       interface_reference (&interfaces, tmp, MDL);
+                       interface_snorf (tmp, INTERFACE_REQUESTED);
                        interface_dereference (&tmp, MDL);
                } else if (!strcmp (argv [i], "-q")) {
                        quiet = 1;