Lines Matching defs:sll
144 #include "pcap/sll.h"
3798 struct sockaddr_ll *sll;
3864 sll = (void *)h.raw + TPACKET_ALIGN(handle->md.tp_hdrlen);
3865 if (sll->sll_pkttype == PACKET_OUTGOING) {
3872 if (sll->sll_ifindex == handle->md.lo_ifindex)
3895 /* if required build in place the sll header*/
3901 * space for an sll header; back up the packet
3913 * the sll header.
3919 "cooked-mode frame doesn't have room for sll header");
3924 * OK, that worked; construct the sll header.
3928 sll->sll_pkttype);
3929 hdrp->sll_hatype = htons(sll->sll_hatype);
3930 hdrp->sll_halen = htons(sll->sll_halen);
3931 memcpy(hdrp->sll_addr, sll->sll_addr, SLL_ADDRLEN);
3932 hdrp->sll_protocol = sll->sll_protocol;
4077 struct sockaddr_ll sll;
4081 memset(&sll, 0, sizeof(sll));
4082 sll.sll_family = AF_PACKET;
4083 sll.sll_ifindex = ifindex;
4084 sll.sll_protocol = htons(ETH_P_ALL);
4086 if (bind(fd, (struct sockaddr *) &sll, sizeof(sll)) == -1) {