Lines Matching refs:sockaddr_ll
225 struct sockaddr_ll ll;
2186 struct sockaddr_ll *sll; in packet_rcv()
2300 struct sockaddr_ll *sll; in tpacket_rcv()
2746 off_min = po->tp_hdrlen - sizeof(struct sockaddr_ll); in tpacket_parse_header()
2776 off = po->tp_hdrlen - sizeof(struct sockaddr_ll); in tpacket_parse_header()
2792 DECLARE_SOCKADDR(struct sockaddr_ll *, saddr, msg->msg_name); in tpacket_snd()
2817 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in tpacket_snd()
2820 + offsetof(struct sockaddr_ll, in tpacket_snd()
2827 offsetof(struct sockaddr_ll, sll_addr)) in tpacket_snd()
2850 - (po->tp_hdrlen - sizeof(struct sockaddr_ll)); in tpacket_snd()
2895 hlen + tlen + sizeof(struct sockaddr_ll) + in tpacket_snd()
3010 DECLARE_SOCKADDR(struct sockaddr_ll *, saddr, msg->msg_name); in packet_snd()
3033 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in packet_snd()
3035 if (msg->msg_namelen < (saddr->sll_halen + offsetof(struct sockaddr_ll, sll_addr))) in packet_snd()
3041 offsetof(struct sockaddr_ll, sll_addr)) in packet_snd()
3374 struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr; in packet_bind()
3381 if (addr_len < sizeof(struct sockaddr_ll)) in packet_bind()
3545 struct sockaddr_ll *sll = &PACKET_SKB_CB(skb)->sa.ll; in packet_recvmsg()
3569 struct sockaddr_ll *sll = &PACKET_SKB_CB(skb)->sa.ll; in packet_recvmsg()
3572 offsetof(struct sockaddr_ll, sll_addr); in packet_recvmsg()
3574 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) { in packet_recvmsg()
3576 offsetof(struct sockaddr_ll, sll_addr), in packet_recvmsg()
3578 msg->msg_namelen = sizeof(struct sockaddr_ll); in packet_recvmsg()
3609 struct sockaddr_ll *sll = &PACKET_SKB_CB(skb)->sa.ll; in packet_recvmsg()
3668 DECLARE_SOCKADDR(struct sockaddr_ll *, sll, uaddr); in packet_getname()
3687 offsetof(struct sockaddr_ll, sll_addr) - in packet_getname()
3688 offsetofend(struct sockaddr_ll, sll_family), in packet_getname()
3696 return offsetof(struct sockaddr_ll, sll_addr) + sll->sll_halen; in packet_getname()