Home
last modified time | relevance | path

Searched refs:uh_sum (Results 1 – 25 of 41) sorted by relevance

12

/netbsd/external/bsd/ipf/dist/ipsend/
H A Dipsend.c190 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 Dpacket.c182 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 Dether_sw_offload.c324 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 Dudp.h67 u_int16_t uh_sum; /* udp checksum */ member
/netbsd/sys/netinet6/
H A Dudp6_usrreq.c592 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 Dudp.h46 uint16_t uh_sum; /* udp checksum */ member
H A Dudp_var.h55 #define ui_sum ui_u.uh_sum
H A Dudp_usrreq.c256 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 Dnet.c433 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 Dipsec.c1840 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 Dipsec_input.c162 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 Dnpf_alg_icmp.c376 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 Detherfun.h92 u_short uh_sum; member
H A Detherfun.c130 udph->uh_sum = 0; in do_send_tftp()
/netbsd/external/bsd/tcpdump/dist/
H A Dudp.h40 uint16_t uh_sum; /* udp checksum */ member
H A Dprint-udp.c548 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 Dip_compat.h156 __u16 uh_sum; member
/netbsd/sys/arch/xen/xen/
H A Dxennet_checksum.c155 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum); in xennet_checksum_fill()
/netbsd/crypto/dist/ipsec-tools/src/racoon/
H A Ddump.c216 uh.uh_sum = htons(0x0000); /*no checksum - invalid for IPv6*/
/netbsd/sys/external/bsd/ipf/netinet/
H A Dip_proxy.c1032 } 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 Dip_tftp_pxy.c301 udp.uh_sum = 0; in ipf_p_tftp_backchannel()
/netbsd/usr.sbin/traceroute/
H A Dtraceroute.c1300 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 Dfils_hlp.c274 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 Drpc.c298 u_int16_t uh_sum; /* udp checksum */ in rpc_fromaddr() member
/netbsd/external/bsd/dhcpcd/dist/src/
H A Ddhcp.c1657 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()

12