summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/common/icmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcp/common/icmp.c')
-rw-r--r--usr.sbin/dhcp/common/icmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/dhcp/common/icmp.c b/usr.sbin/dhcp/common/icmp.c
index c554e80c8d9..8a215e862e1 100644
--- a/usr.sbin/dhcp/common/icmp.c
+++ b/usr.sbin/dhcp/common/icmp.c
@@ -131,14 +131,14 @@ void icmp_echoreply (protocol)
struct icmp *icfrom;
struct sockaddr_in from;
u_int8_t icbuf [1500];
- int status;
- int len;
+ int status, len;
+ socklen_t salen;
struct iaddr ia;
void (*handler) PROTO ((struct iaddr, u_int8_t *, int));
- len = sizeof from;
+ salen = sizeof from;
status = recvfrom (protocol -> fd, (char *)icbuf, sizeof icbuf, 0,
- (struct sockaddr *)&from, &len);
+ (struct sockaddr *)&from, &salen);
if (status < 0) {
warn ("icmp_echoreply: %m");
return;