Lines Matching refs:sll
532 struct sockaddr_ll *sll;
593 sll = &PACKET_SKB_CB(skb)->sa.ll;
594 sll->sll_family = AF_PACKET;
595 sll->sll_hatype = dev->type;
596 sll->sll_protocol = skb->protocol;
597 sll->sll_pkttype = skb->pkt_type;
599 sll->sll_ifindex = orig_dev->ifindex;
601 sll->sll_ifindex = dev->ifindex;
603 sll->sll_halen = dev_parse_header(skb, sll->sll_addr);
643 struct sockaddr_ll *sll;
777 sll = h.raw + TPACKET_ALIGN(hdrlen);
778 sll->sll_halen = dev_parse_header(skb, sll->sll_addr);
779 sll->sll_family = AF_PACKET;
780 sll->sll_hatype = dev->type;
781 sll->sll_protocol = skb->protocol;
782 sll->sll_pkttype = skb->pkt_type;
784 sll->sll_ifindex = orig_dev->ifindex;
786 sll->sll_ifindex = dev->ifindex;
1407 struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr;
1419 if (sll->sll_family != AF_PACKET)
1422 if (sll->sll_ifindex) {
1424 dev = dev_get_by_index(sock_net(sk), sll->sll_ifindex);
1428 err = packet_do_bind(sk, dev, sll->sll_protocol ? : pkt_sk(sk)->num);
1566 struct sockaddr_ll *sll;
1648 sll = &PACKET_SKB_CB(skb)->sa.ll;
1652 msg->msg_namelen = sll->sll_halen + offsetof(struct sockaddr_ll, sll_addr);
1730 DECLARE_SOCKADDR(struct sockaddr_ll *, sll, uaddr);
1735 sll->sll_family = AF_PACKET;
1736 sll->sll_ifindex = po->ifindex;
1737 sll->sll_protocol = po->num;
1738 sll->sll_pkttype = 0;
1742 sll->sll_hatype = dev->type;
1743 sll->sll_halen = dev->addr_len;
1744 memcpy(sll->sll_addr, dev->dev_addr, dev->addr_len);
1746 sll->sll_hatype = 0; /* Bad: we have no ARPHRD_UNSPEC */
1747 sll->sll_halen = 0;
1750 *uaddr_len = offsetof(struct sockaddr_ll, sll_addr) + sll->sll_halen;