state = D_STATE(ifp);
+ memset(&pv, 0, sizeof(pv));
if (ioctl(fd, BIOCVERSION, &pv) == -1)
goto eexit;
if (pv.bv_major != BPF_MAJOR_VERSION ||
#endif
/* Install the DHCP filter */
+ memset(&pf, 0, sizeof(pf));
if (protocol == ETHERTYPE_ARP) {
pf.bf_insns = UNCONST(arp_bpf_filter);
pf.bf_len = arp_bpf_filter_len;
struct rtm
{
struct rt_msghdr hdr;
- char buffer[sizeof(su) * 4];
+ char buffer[sizeof(su) * 5];
} rtm;
char *bp = rtm.buffer;
size_t l;
struct rtm
{
struct rt_msghdr hdr;
- char buffer[sizeof(su) * 4];
+ char buffer[sizeof(su) * 5];
} rtm;
char *bp = rtm.buffer;
size_t l;