Lines Matching refs:udh
730 struct udpv6fakehdr *udh = (struct udpv6fakehdr *) data; in udpv6_getfrag() local
745 if (csum_partial_copy_fromiovecend(dst, udh->iov, offset, in udpv6_getfrag()
746 clen, &udh->wcheck)) in udpv6_getfrag()
752 udh->wcheck = csum_partial((char *)udh, sizeof(struct udphdr), in udpv6_getfrag()
753 udh->wcheck); in udpv6_getfrag()
755 if (udh->daddr) { in udpv6_getfrag()
756 daddr = udh->daddr; in udpv6_getfrag()
764 udh->uh.check = csum_ipv6_magic(addr, daddr, in udpv6_getfrag()
765 udh->pl_len, IPPROTO_UDP, in udpv6_getfrag()
766 udh->wcheck); in udpv6_getfrag()
767 if (udh->uh.check == 0) in udpv6_getfrag()
768 udh->uh.check = -1; in udpv6_getfrag()
770 memcpy(buff, udh, sizeof(struct udphdr)); in udpv6_getfrag()
778 struct udpv6fakehdr udh; in udpv6_sendmsg() local
817 udh.uh.dest = sin6->sin6_port; in udpv6_sendmsg()
843 udh.uh.dest = sk->dport; in udpv6_sendmsg()
858 sin.sin_port = udh.uh.dest; in udpv6_sendmsg()
866 udh.daddr = NULL; in udpv6_sendmsg()
893 udh.daddr = daddr; in udpv6_sendmsg()
895 udh.uh.source = sk->sport; in udpv6_sendmsg()
896 udh.uh.len = len < 0x10000 ? htons(len) : 0; in udpv6_sendmsg()
897 udh.uh.check = 0; in udpv6_sendmsg()
898 udh.iov = msg->msg_iov; in udpv6_sendmsg()
899 udh.wcheck = 0; in udpv6_sendmsg()
900 udh.pl_len = len; in udpv6_sendmsg()
906 fl.uli_u.ports.dport = udh.uh.dest; in udpv6_sendmsg()
907 fl.uli_u.ports.sport = udh.uh.source; in udpv6_sendmsg()
909 err = ip6_build_xmit(sk, udpv6_getfrag, &udh, &fl, len, opt, hlimit, in udpv6_sendmsg()