struct dhcp_state *state = D_STATE(iface);
struct if_options *ifo = iface->options;
struct dhcp_message *dhcp;
- uint8_t *udp;
+ struct udp_dhcp_packet *udp;
ssize_t len, r;
struct in_addr from, to;
in_addr_t a = 0;
if (udp == NULL) {
syslog(LOG_ERR, "dhcp_makeudppacket: %m");
} else {
- r = ipv4_sendrawpacket(iface, ETHERTYPE_IP, udp, r);
+ r = ipv4_sendrawpacket(iface, ETHERTYPE_IP,
+ (uint8_t *)udp, r);
free(udp);
}
/* If we failed to send a raw packet this normally means
rebind = ntohl(u32);
p += sizeof(u32);
ol -= sizeof(u32);
- }
+ } else
+ renew = rebind = 0; /* appease gcc */
if (dhcp6_checkstatusok(ifp, NULL, p, ol) == -1)
continue;
if (ifo->ia_type == D6_OPTION_IA_PD) {