summaryrefslogtreecommitdiff
path: root/common/upf.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-01-25 01:17:01 +0000
committerTed Lemon <source@isc.org>2000-01-25 01:17:01 +0000
commit218eee75e6a1f8288ed89b8b51e4cc2b72421ebd (patch)
tree57f0ecf893ac57d801d543d40bf4bc16e587085d /common/upf.c
parent4cbc378fc9b6323323d00ad0a349629afe25aaad (diff)
downloadisc-dhcp-218eee75e6a1f8288ed89b8b51e4cc2b72421ebd.tar.gz
Fixups for haddr/htype->hbuf
Diffstat (limited to 'common/upf.c')
-rw-r--r--common/upf.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/common/upf.c b/common/upf.c
index 535e3b4d..4988c81f 100644
--- a/common/upf.c
+++ b/common/upf.c
@@ -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 : ""));