summaryrefslogtreecommitdiff
path: root/networking/udhcp/socket.c
diff options
context:
space:
mode:
authorDenys Vlasenko2009-06-16 12:04:23 +0200
committerDenys Vlasenko2009-06-16 12:04:23 +0200
commit26918dd28ef6f2c6380ed23b384ddc8e98a8ad81 (patch)
tree77c5bd48717b9dbfd683937e3f70fc902b7c7119 /networking/udhcp/socket.c
parentcab3a0127c3e6b7fc4f794ba6abcb8e01492118e (diff)
downloadbusybox-26918dd28ef6f2c6380ed23b384ddc8e98a8ad81.zip
busybox-26918dd28ef6f2c6380ed23b384ddc8e98a8ad81.tar.gz
udhcp: rename server/client_config.arp to server_mac and client_mac
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r--networking/udhcp/socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index 449fcb7..de494ca 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -37,7 +37,7 @@
#include "common.h"
-int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *arp)
+int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac)
{
int fd;
struct ifreq ifr;
@@ -69,14 +69,14 @@ int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t
*ifindex = ifr.ifr_ifindex;
}
- if (arp) {
+ if (mac) {
if (ioctl_or_warn(fd, SIOCGIFHWADDR, &ifr) != 0) {
close(fd);
return -1;
}
- memcpy(arp, ifr.ifr_hwaddr.sa_data, 6);
+ memcpy(mac, ifr.ifr_hwaddr.sa_data, 6);
DEBUG("adapter hardware address %02x:%02x:%02x:%02x:%02x:%02x",
- arp[0], arp[1], arp[2], arp[3], arp[4], arp[5]);
+ mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
}
close(fd);