diff options
author | Russ Dill <Russ.Dill@asu.edu> | 2003-02-12 22:20:19 +0000 |
---|---|---|
committer | Russ Dill <Russ.Dill@asu.edu> | 2003-02-12 22:20:19 +0000 |
commit | 858fad722fa949f057dbc5a5e7dd63eef8954187 (patch) | |
tree | 8c90a053f1c976985368292b7f3d01bfc71e67e0 /networking/udhcp/arpping.c | |
parent | 496411b4891f8e7e3286ba36cd3aff5438b5f71d (diff) |
sync with udhcp bug fixes
Diffstat (limited to 'networking/udhcp/arpping.c')
-rw-r--r-- | networking/udhcp/arpping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c index d71cd10f4..4c0b3d83b 100644 --- a/networking/udhcp/arpping.c +++ b/networking/udhcp/arpping.c @@ -67,9 +67,9 @@ int arpping(u_int32_t yiaddr, u_int32_t ip, unsigned char *mac, char *interface) arp.hlen = 6; /* hardware address length */ arp.plen = 4; /* protocol address length */ arp.operation = htons(ARPOP_REQUEST); /* ARP op code */ - *((u_int *) arp.sInaddr) = ip; /* source IP address */ + memcpy(arp.sInaddr, &ip, sizeof(ip)); /* source IP address */ memcpy(arp.sHaddr, mac, 6); /* source hardware address */ - *((u_int *) arp.tInaddr) = yiaddr; /* target IP address */ + memcpy(arp.tInaddr, &yiaddr, sizeof(yiaddr)); /* target IP address */ memset(&addr, 0, sizeof(addr)); strcpy(addr.sa_data, interface); |