/netbsd/external/bsd/ipf/dist/ipsend/ |
H A D | ipsend.c | 190 udp->uh_sum = temp32 & 65535; in udpcksum() 191 udp->uh_sum = chksum((u_short *)udp, len); in udpcksum() 192 if (udp->uh_sum == 0) in udpcksum() 193 udp->uh_sum = 0xffff; in udpcksum() 433 udp->uh_sum = 0;
|
/netbsd/external/mpl/dhcp/dist/common/ |
H A D | packet.c | 182 memset (&udp.uh_sum, 0, sizeof udp.uh_sum); 187 udp.uh_sum = 373 if (udp.uh_sum && csum_ready) { in decode_udp_ip_header()
|
/netbsd/sys/net/ |
H A D | ether_sw_offload.c | 324 osum = uh->uh_sum; in ether_sw_offload_rx() 327 uh->uh_sum = sum; in ether_sw_offload_rx() 342 uh->uh_sum = osum; in ether_sw_offload_rx()
|
/netbsd/external/mpl/dhcp/dist/includes/netinet/ |
H A D | udp.h | 67 u_int16_t uh_sum; /* udp checksum */ member
|
/netbsd/sys/netinet6/ |
H A D | udp6_usrreq.c | 592 if (uh->uh_sum == 0) { in udp6_input_checksum() 985 udp6->uh_sum = 0; in udp6_output() 1001 udp6->uh_sum = in6_cksum_phdr(laddr, faddr, in udp6_output() 1004 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in udp6_output() 1030 udp6->uh_sum = in_cksum(m, hlen + plen); in udp6_output() 1031 if (udp6->uh_sum == 0) in udp6_output() 1032 udp6->uh_sum = 0xffff; in udp6_output()
|
/netbsd/sys/netinet/ |
H A D | udp.h | 46 uint16_t uh_sum; /* udp checksum */ member
|
H A D | udp_var.h | 55 #define ui_sum ui_u.uh_sum
|
H A D | udp_usrreq.c | 256 if (uh->uh_sum == 0) in udp4_input_checksum() 838 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in udp_output()
|
/netbsd/usr.bin/rump_dhcpclient/ |
H A D | net.c | 433 udp->uh_sum = checksum(udpp, sizeof(*udpp)); in make_udp_packet() 487 udpsum = packet.udp.uh_sum; in valid_udp_packet() 488 packet.udp.uh_sum = 0; in valid_udp_packet()
|
/netbsd/sys/netipsec/ |
H A D | ipsec.c | 1840 uint16_t plen, uh_sum; in ipsec6_udp_cksum() local 1853 uh_sum = in6_cksum(m, IPPROTO_UDP, sizeof(*ip6), plen); in ipsec6_udp_cksum() 1854 if (uh_sum == 0) in ipsec6_udp_cksum() 1855 uh_sum = 0xffff; in ipsec6_udp_cksum() 1857 off = sizeof(*ip6) + offsetof(struct udphdr, uh_sum); in ipsec6_udp_cksum() 1858 m_copyback(m, off, sizeof(uh_sum), (void *)&uh_sum); in ipsec6_udp_cksum()
|
H A D | ipsec_input.c | 162 uh->uh_sum = 0; in ipsec4_fixup_checksum() 163 uh->uh_sum = in4_cksum(m, IPPROTO_UDP, poff, plen); in ipsec4_fixup_checksum()
|
/netbsd/sys/net/npf/ |
H A D | npf_alg_icmp.c | 376 l4cksum = uh->uh_sum; in npfa_icmp_nat() 432 cksum = npf_fixup16_cksum(cksum, l4cksum, uh->uh_sum); in npfa_icmp_nat()
|
/netbsd/sys/arch/mvme68k/stand/sboot/ |
H A D | etherfun.h | 92 u_short uh_sum; member
|
H A D | etherfun.c | 130 udph->uh_sum = 0; in do_send_tftp()
|
/netbsd/external/bsd/tcpdump/dist/ |
H A D | udp.h | 40 uint16_t uh_sum; /* udp checksum */ member
|
H A D | print-udp.c | 548 udp_sum = EXTRACT_16BITS(&up->uh_sum); in udp_print() 566 udp_sum = EXTRACT_16BITS(&up->uh_sum); in udp_print()
|
/netbsd/external/bsd/ipf/dist/ipsd/Celler/ |
H A D | ip_compat.h | 156 __u16 uh_sum; member
|
/netbsd/sys/arch/xen/xen/ |
H A D | xennet_checksum.c | 155 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in xennet_checksum_fill()
|
/netbsd/crypto/dist/ipsec-tools/src/racoon/ |
H A D | dump.c | 216 uh.uh_sum = htons(0x0000); /*no checksum - invalid for IPv6*/
|
/netbsd/sys/external/bsd/ipf/netinet/ |
H A D | ip_proxy.c | 1032 } else if ((udp != NULL) && (udp->uh_sum != 0)) { in ipf_proxy_check() 1034 u_short sum = ntohs(udp->uh_sum); in ipf_proxy_check() 1036 udp->uh_sum = htons(sum); in ipf_proxy_check() 1038 udp->uh_sum = fr_cksum(fin, ip, in ipf_proxy_check()
|
H A D | ip_tftp_pxy.c | 301 udp.uh_sum = 0; in ipf_p_tftp_backchannel()
|
/netbsd/usr.sbin/traceroute/ |
H A D | traceroute.c | 1300 outudp->uh_sum = 0; in send_probe() 1301 outudp->uh_sum = in_cksum((u_short *)ui, packlen); in send_probe() 1302 if (outudp->uh_sum == 0) in send_probe() 1303 outudp->uh_sum = 0xffff; in send_probe()
|
/netbsd/external/bsd/wpa/dist/src/ap/ |
H A D | fils_hlp.c | 274 udph->uh_sum = htons(0x0000); /* TODO: calculate checksum */ in fils_dhcp_handler() 495 sport, dport, ulen, ntohs(udph->uh_sum)); in fils_process_hlp_udp()
|
/netbsd/sys/lib/libsa/ |
H A D | rpc.c | 298 u_int16_t uh_sum; /* udp checksum */ in rpc_fromaddr() member
|
/netbsd/external/bsd/dhcpcd/dist/src/ |
H A D | dhcp.c | 1657 udp->uh_sum = in_cksum(udpp, sizeof(*ip) + sizeof(*udp) + length, NULL); in dhcp_makeudppacket() 3479 if (udp.uh_sum == 0) in checksums_valid() 3488 uh_sump = udpp + offsetof(struct udphdr, uh_sum); in checksums_valid() 3489 memset(uh_sump, 0, sizeof(udp.uh_sum)); in checksums_valid() 3497 memcpy(uh_sump, &udp.uh_sum, sizeof(udp.uh_sum)); in checksums_valid() 3500 return csum == udp.uh_sum; in checksums_valid()
|