]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fixups for haddr/htype->hbuf
authorTed Lemon <source@isc.org>
Tue, 25 Jan 2000 01:17:01 +0000 (01:17 +0000)
committerTed Lemon <source@isc.org>
Tue, 25 Jan 2000 01:17:01 +0000 (01:17 +0000)
common/upf.c

index 535e3b4d83ca8b63025de78b520daccfe85745a3..4988c81f2954b449b1ed34c9b572ecb6926ca875 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: upf.c,v 1.14 1999/10/07 06:47:49 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: upf.c,v 1.15 2000/01/25 01:17:01 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -103,9 +103,9 @@ int if_register_upf (info)
                log_fatal ("Invalid hardware address length on %s: %d",
                       info -> name, param.end_addr_len);
 
-       info -> hw_address.hlen = 6;
-       info -> hw_address.htype = ARPHRD_ETHER;
-       memcpy (&info -> hw_address.haddr [0], param.end_addr, 6);
+       info -> hw_address.hlen = 7;
+       info -> hw_address.hbuf [0] = ARPHRD_ETHER;
+       memcpy (&info -> hw_address.hbuf [1], param.end_addr, 6);
 
        return sock;
 }
@@ -125,9 +125,9 @@ void if_register_send (info)
         if (!quiet_interface_discovery)
                log_info ("Sending on   UPF/%s/%s%s%s",
                      info -> name,
-                     print_hw_addr (info -> hw_address.htype,
-                                    info -> hw_address.hlen,
-                                    info -> hw_address.haddr),
+                     print_hw_addr (info -> hw_address.hbuf [0],
+                                    info -> hw_address.hlen - 1,
+                                    &info -> hw_address.hbuf [1]),
                      (info -> shared_network ? "/" : ""),
                      (info -> shared_network ?
                       info -> shared_network -> name : ""));
@@ -191,9 +191,9 @@ void if_register_receive (info)
         if (!quiet_interface_discovery)
                log_info ("Listening on UPF/%s/%s%s%s",
                      info -> name,
-                     print_hw_addr (info -> hw_address.htype,
-                                    info -> hw_address.hlen,
-                                    info -> hw_address.haddr),
+                     print_hw_addr (info -> hw_address.hbuf [0],
+                                    info -> hw_address.hlen - 1,
+                                    &info -> hw_address.hbuf [1]),
                      (info -> shared_network ? "/" : ""),
                      (info -> shared_network ?
                       info -> shared_network -> name : ""));