Lines Matching refs:sll
2091 struct sockaddr_ll *sll; in packet_rcv() local
2151 sll = &PACKET_SKB_CB(skb)->sa.ll; in packet_rcv()
2152 sll->sll_hatype = dev->type; in packet_rcv()
2153 sll->sll_pkttype = skb->pkt_type; in packet_rcv()
2155 sll->sll_ifindex = orig_dev->ifindex; in packet_rcv()
2157 sll->sll_ifindex = dev->ifindex; in packet_rcv()
2159 sll->sll_halen = dev_parse_header(skb, sll->sll_addr); in packet_rcv()
2207 struct sockaddr_ll *sll; in tpacket_rcv() local
2421 sll = h.raw + TPACKET_ALIGN(hdrlen); in tpacket_rcv()
2422 sll->sll_halen = dev_parse_header(skb, sll->sll_addr); in tpacket_rcv()
2423 sll->sll_family = AF_PACKET; in tpacket_rcv()
2424 sll->sll_hatype = dev->type; in tpacket_rcv()
2425 sll->sll_protocol = skb->protocol; in tpacket_rcv()
2426 sll->sll_pkttype = skb->pkt_type; in tpacket_rcv()
2428 sll->sll_ifindex = orig_dev->ifindex; in tpacket_rcv()
2430 sll->sll_ifindex = dev->ifindex; in tpacket_rcv()
3274 struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr; in packet_bind() local
3283 if (sll->sll_family != AF_PACKET) in packet_bind()
3286 return packet_do_bind(sk, NULL, sll->sll_ifindex, sll->sll_protocol); in packet_bind()
3450 struct sockaddr_ll *sll = &PACKET_SKB_CB(skb)->sa.ll; in packet_recvmsg() local
3454 sll->sll_family = AF_PACKET; in packet_recvmsg()
3455 sll->sll_protocol = skb->protocol; in packet_recvmsg()
3473 struct sockaddr_ll *sll = &PACKET_SKB_CB(skb)->sa.ll; in packet_recvmsg() local
3475 msg->msg_namelen = sll->sll_halen + in packet_recvmsg()
3481 0, sizeof(sll->sll_addr)); in packet_recvmsg()
3555 DECLARE_SOCKADDR(struct sockaddr_ll *, sll, uaddr); in packet_getname()
3562 sll->sll_family = AF_PACKET; in packet_getname()
3563 sll->sll_ifindex = ifindex; in packet_getname()
3564 sll->sll_protocol = READ_ONCE(po->num); in packet_getname()
3565 sll->sll_pkttype = 0; in packet_getname()
3569 sll->sll_hatype = dev->type; in packet_getname()
3570 sll->sll_halen = dev->addr_len; in packet_getname()
3571 memcpy(sll->sll_addr, dev->dev_addr, dev->addr_len); in packet_getname()
3573 sll->sll_hatype = 0; /* Bad: we have no ARPHRD_UNSPEC */ in packet_getname()
3574 sll->sll_halen = 0; in packet_getname()
3578 return offsetof(struct sockaddr_ll, sll_addr) + sll->sll_halen; in packet_getname()