summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/bpf.c5
-rw-r--r--sbin/dhclient/dhclient.c6
-rw-r--r--sbin/dhclient/dhcpd.h2
3 files changed, 6 insertions, 7 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index 9f8e45f..4dfe1f0 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -251,8 +251,7 @@ if_register_receive(struct interface_info *info)
ssize_t
send_packet(struct interface_info *interface, struct dhcp_packet *raw,
- size_t len, struct in_addr from, struct sockaddr_in *to,
- struct hardware *hto)
+ size_t len, struct in_addr from, struct sockaddr_in *to)
{
unsigned char buf[256];
struct iovec iov[2];
@@ -261,7 +260,7 @@ send_packet(struct interface_info *interface, struct dhcp_packet *raw,
/* Assemble the headers... */
if (to->sin_addr.s_addr == INADDR_BROADCAST)
- assemble_hw_header(interface, buf, &bufp, hto);
+ assemble_hw_header(interface, buf, &bufp, NULL);
assemble_udp_ip_header(buf, &bufp, from.s_addr,
to->sin_addr.s_addr, to->sin_port, (unsigned char *)raw, len);
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index a6ee6db..3069253 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1232,7 +1232,7 @@ again:
/* Send out a packet. */
(void)send_packet(ip, &ip->client->packet, ip->client->packet_length,
- inaddr_any, &sockaddr_broadcast, NULL);
+ inaddr_any, &sockaddr_broadcast);
add_timeout(cur_time + ip->client->interval, send_discover, ip);
}
@@ -1463,7 +1463,7 @@ cancel:
/* Send out a packet. */
(void) send_packet(ip, &ip->client->packet, ip->client->packet_length,
- from, &destination, NULL);
+ from, &destination);
add_timeout(cur_time + ip->client->interval, send_request, ip);
}
@@ -1479,7 +1479,7 @@ send_decline(void *ipp)
/* Send out a packet. */
(void) send_packet(ip, &ip->client->packet, ip->client->packet_length,
- inaddr_any, &sockaddr_broadcast, NULL);
+ inaddr_any, &sockaddr_broadcast);
}
void
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h
index 09941df..346e2ce 100644
--- a/sbin/dhclient/dhcpd.h
+++ b/sbin/dhclient/dhcpd.h
@@ -301,7 +301,7 @@ int if_register_bpf(struct interface_info *);
void if_register_send(struct interface_info *);
void if_register_receive(struct interface_info *);
ssize_t send_packet(struct interface_info *, struct dhcp_packet *, size_t,
- struct in_addr, struct sockaddr_in *, struct hardware *);
+ struct in_addr, struct sockaddr_in *);
ssize_t receive_packet(struct interface_info *, unsigned char *, size_t,
struct sockaddr_in *, struct hardware *);
OpenPOWER on IntegriCloud