return -1;
}
#endif
- su.sll.sll_family = PF_PACKET;
- su.sll.sll_protocol = htons(protocol);
- su.sll.sll_ifindex = (int)ifp->index;
/* Install the DHCP filter */
memset(&pf, 0, sizeof(pf));
if (protocol == ETHERTYPE_ARP) {
goto eexit;
}
#endif
+
+ memset(&su, 0, sizeof(su));
+ su.sll.sll_family = PF_PACKET;
+ su.sll.sll_protocol = htons(protocol);
+ su.sll.sll_ifindex = (int)ifp->index;
if (bind(s, &su.sa, sizeof(su)) == -1)
goto eexit;
return s;