Lines Matching refs:uh

514 					 struct udphdr *uh,  in __udp6_lib_err_encap()  argument
544 sk = __udp6_lib_lookup(net, &hdr->daddr, uh->source, in __udp6_lib_err_encap()
545 &hdr->saddr, uh->dest, in __udp6_lib_err_encap()
575 struct udphdr *uh = (struct udphdr *)(skb->data+offset); in __udp6_lib_err() local
582 sk = __udp6_lib_lookup(net, daddr, uh->dest, saddr, uh->source, in __udp6_lib_err()
588 sk = __udp6_lib_err_encap(net, hdr, offset, uh, in __udp6_lib_err()
628 udp_sk(sk)->encap_err_rcv(sk, skb, err, uh->dest, in __udp6_lib_err()
629 ntohl(info), (u8 *)(uh+1)); in __udp6_lib_err()
637 ipv6_icmp_error(sk, skb, err, uh->dest, ntohl(info), (u8 *)(uh+1)); in __udp6_lib_err()
847 const struct udphdr *uh = udp_hdr(skb); in __udp6_lib_mcast_deliver() local
848 unsigned short hnum = ntohs(uh->dest); in __udp6_lib_mcast_deliver()
867 if (!__udp_v6_is_mcast_sock(net, sk, uh->dest, daddr, in __udp6_lib_mcast_deliver()
868 uh->source, saddr, dif, sdif, in __udp6_lib_mcast_deliver()
874 if (!uh->check && !udp_get_no_check6_rx(sk)) in __udp6_lib_mcast_deliver()
921 struct udphdr *uh) in udp6_unicast_rcv_skb() argument
925 if (inet_get_convert_csum(sk) && uh->check && !IS_UDPLITE(sk)) in udp6_unicast_rcv_skb()
943 struct udphdr *uh; in __udp6_lib_rcv() local
952 uh = udp_hdr(skb); in __udp6_lib_rcv()
954 ulen = ntohs(uh->len); in __udp6_lib_rcv()
965 if (ulen < sizeof(*uh)) in __udp6_lib_rcv()
973 uh = udp_hdr(skb); in __udp6_lib_rcv()
977 if (udp6_csum_init(skb, uh, proto)) in __udp6_lib_rcv()
981 sk = inet6_steal_sock(net, skb, sizeof(struct udphdr), saddr, uh->source, daddr, uh->dest, in __udp6_lib_rcv()
993 if (!uh->check && !udp_get_no_check6_rx(sk)) { in __udp6_lib_rcv()
999 ret = udp6_unicast_rcv_skb(sk, skb, uh); in __udp6_lib_rcv()
1013 sk = __udp6_lib_lookup_skb(skb, uh->source, uh->dest, udptable); in __udp6_lib_rcv()
1015 if (!uh->check && !udp_get_no_check6_rx(sk)) in __udp6_lib_rcv()
1017 return udp6_unicast_rcv_skb(sk, skb, uh); in __udp6_lib_rcv()
1022 if (!uh->check) in __udp6_lib_rcv()
1043 saddr, ntohs(uh->source), in __udp6_lib_rcv()
1045 daddr, ntohs(uh->dest)); in __udp6_lib_rcv()
1091 const struct udphdr *uh; in udp_v6_early_demux() local
1101 uh = udp_hdr(skb); in udp_v6_early_demux()
1104 sk = __udp6_lib_demux_lookup(net, uh->dest, in udp_v6_early_demux()
1106 uh->source, &ipv6_hdr(skb)->saddr, in udp_v6_early_demux()
1186 struct udphdr *uh = udp_hdr(skb); in udp6_hwcsum_outgoing() local
1194 uh->check = ~csum_ipv6_magic(saddr, daddr, len, IPPROTO_UDP, 0); in udp6_hwcsum_outgoing()
1211 uh->check = csum_ipv6_magic(saddr, daddr, len, IPPROTO_UDP, in udp6_hwcsum_outgoing()
1213 if (uh->check == 0) in udp6_hwcsum_outgoing()
1214 uh->check = CSUM_MANGLED_0; in udp6_hwcsum_outgoing()
1226 struct udphdr *uh; in udp_v6_send_skb() local
1232 int datalen = len - sizeof(*uh); in udp_v6_send_skb()
1237 uh = udp_hdr(skb); in udp_v6_send_skb()
1238 uh->source = fl6->fl6_sport; in udp_v6_send_skb()
1239 uh->dest = fl6->fl6_dport; in udp_v6_send_skb()
1240 uh->len = htons(len); in udp_v6_send_skb()
1241 uh->check = 0; in udp_v6_send_skb()
1288 uh->check = csum_ipv6_magic(&fl6->saddr, &fl6->daddr, in udp_v6_send_skb()
1290 if (uh->check == 0) in udp_v6_send_skb()
1291 uh->check = CSUM_MANGLED_0; in udp_v6_send_skb()