diff options
Diffstat (limited to 'sbin/dhclient/packet.c')
-rw-r--r-- | sbin/dhclient/packet.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/dhclient/packet.c b/sbin/dhclient/packet.c index 376ad078132..174178b845f 100644 --- a/sbin/dhclient/packet.c +++ b/sbin/dhclient/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.10 2006/12/22 03:18:14 stevesk Exp $ */ +/* $OpenBSD: packet.c,v 1.11 2006/12/26 21:19:52 krw Exp $ */ /* Packet assembly code, originally contributed by Archie Cobbs. */ @@ -86,8 +86,7 @@ wrapsum(u_int32_t sum) } void -assemble_hw_header(struct interface_info *interface, unsigned char *buf, - int *bufix, struct hardware *to) +assemble_hw_header( unsigned char *buf, int *bufix, struct hardware *to) { struct ether_header eh; @@ -95,8 +94,8 @@ assemble_hw_header(struct interface_info *interface, unsigned char *buf, memcpy(eh.ether_dhost, to->haddr, sizeof(eh.ether_dhost)); else memset(eh.ether_dhost, 0xff, sizeof(eh.ether_dhost)); - if (interface->hw_address.hlen == sizeof(eh.ether_shost)) - memcpy(eh.ether_shost, interface->hw_address.haddr, + if (ifi->hw_address.hlen == sizeof(eh.ether_shost)) + memcpy(eh.ether_shost, ifi->hw_address.haddr, sizeof(eh.ether_shost)); else memset(eh.ether_shost, 0x00, sizeof(eh.ether_shost)); |