/netbsd-current/sys/net/npf/ |
H A D | npf_ext_normalize.c | 195 cksum = th->th_sum; 199 cksum = npf_fixup16_cksum(th->th_sum, mss, maxmss); 201 th->th_sum = cksum;
|
H A D | npf_sendpkt.c | 179 th->th_sum = in_cksum(m, len); 191 th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
|
H A D | npf_alg_icmp.c | 370 l4cksum = th->th_sum; 426 cksum = npf_fixup16_cksum(cksum, l4cksum, th->th_sum);
|
/netbsd-current/external/bsd/ipf/bin/ipsend/ |
H A D | tcpip.h | 83 #define ti_sum ti_t.th_sum
|
/netbsd-current/external/bsd/tcpdump/dist/ |
H A D | tcp.h | 44 nd_uint16_t th_sum; /* checksum */ member in struct:tcphdr
|
H A D | print-tcp.c | 397 tcp_sum = GET_BE_U_2(tp->th_sum); 409 tcp_sum = GET_BE_U_2(tp->th_sum); 952 memcpy(&savecsum, tp1.th_sum, sizeof(savecsum)); 953 memset(tp1.th_sum, 0, sizeof(tp1.th_sum)); 955 memcpy(tp1.th_sum, &savecsum, sizeof(tp1.th_sum));
|
/netbsd-current/sys/net/ |
H A D | ether_sw_offload.c | 300 osum = th->th_sum; 301 th->th_sum = sum; 314 th->th_sum = osum;
|
H A D | slcompress.c | 380 deltaA = ntohs(th->th_sum); 547 th->th_sum = htons((*cp << 8) | cp[1]);
|
/netbsd-current/sys/netinet/ |
H A D | tcp.h | 73 uint16_t th_sum; /* checksum */ member in struct:tcphdr
|
H A D | in_offload.c | 152 th->th_sum = phsum; 153 th->th_sum = in4_cksum(n, 0, off + iphlen, thlen + mss);
|
H A D | tcp_output.c | 1427 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 1436 th->th_sum = in_cksum_addword(th->th_sum, 1443 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 1452 th->th_sum = in_cksum_addword(th->th_sum,
|
H A D | tcp_syncache.c | 1169 /* th_x2, th_sum, th_urp already 0 from memset */ 1313 th->th_sum = 0; 1314 th->th_sum = in4_cksum(m, IPPROTO_TCP, hlen, tlen - hlen); 1322 th->th_sum = 0; 1323 th->th_sum = in6_cksum(m, IPPROTO_TCP, hlen, tlen - hlen);
|
H A D | tcp_subr.c | 538 n->th_sum = in_cksum_phdr(ipov->ih_src.s_addr, 569 n->th_sum = in6_cksum_phdr(&in6p_laddr(inp), 795 th->th_sum = 0; 796 th->th_sum = in_cksum(m, hlen + tlen); 804 th->th_sum = 0; 805 th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
|
H A D | tcp_var.h | 188 #define ti_sum ti_t.th_sum
|
/netbsd-current/sys/netinet6/ |
H A D | in6_offload.c | 149 th->th_sum = phsum; 150 th->th_sum = in6_cksum(n, 0, off + iphlen, thlen + mss);
|
/netbsd-current/external/bsd/ipf/dist/ipsd/Celler/ |
H A D | ip_compat.h | 148 __u16 th_sum; member in struct:__anon1792
|
/netbsd-current/sys/arch/xen/xen/ |
H A D | xennet_checksum.c | 165 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
|
/netbsd-current/external/bsd/ipf/dist/ipsend/ |
H A D | ip.c | 292 t2->th_sum = 0; 293 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
|
/netbsd-current/sys/dist/pf/net/ |
H A D | pf_norm.c | 1361 th->th_sum = pf_cksum_fixup(th->th_sum, ov, nv, 0); 1367 th->th_sum = pf_cksum_fixup(th->th_sum, th->th_urp, 0, 0); 1568 &th->th_sum, 1584 &th->th_sum, htonl(tsecr), 1908 th->th_sum = pf_cksum_fixup(th->th_sum,
|
H A D | pf.c | 1623 pf_change_a(&SACK_START, &th->th_sum, 1626 pf_change_a(&SACK_END, &th->th_sum, 1793 th->th_sum = in_cksum(m, len); 1838 th->th_sum = in6_cksum(m, IPPROTO_TCP, 3157 &th->th_sum, &pd->naddr, nport, 0, af); 3215 &th->th_sum, &pd->naddr, nport, 0, af); 3369 pd->ip_sum, &th->th_sum, 3404 pd->ip_sum, &th->th_sum, 3549 pf_change_a(&th->th_seq, &th->th_sum, 3706 pd->ip_sum, &th->th_sum, [all...] |
/netbsd-current/sys/netipsec/ |
H A D | ipsec_input.c | 150 th->th_sum = 0; 151 th->th_sum = in4_cksum(m, IPPROTO_TCP, poff, plen);
|
/netbsd-current/sys/dev/pci/ |
H A D | if_jme.c | 1370 th.th_sum = in_cksum_phdr(ip.ip_src.s_addr, 1382 th.th_sum = in6_cksum_phdr(&ip6.ip6_src, 1386 m_copyback(m, hlen + offsetof(struct tcphdr, th_sum), 1387 sizeof(th.th_sum), &th.th_sum); 1404 th->th_sum = in_cksum_phdr(ip->ip_src.s_addr, 1414 th->th_sum = in6_cksum_phdr(&ip6->ip6_src,
|
/netbsd-current/sys/external/bsd/ipf/netinet/ |
H A D | ip_proxy.c | 1025 u_short sum = ntohs(tcp->th_sum); 1027 tcp->th_sum = htons(sum); 1029 tcp->th_sum = fr_cksum(fin, ip,
|
H A D | ip_fil_netbsd.c | 804 tcp2->th_sum = 0; 815 tcp2->th_sum = in6_cksum(m, IPPROTO_TCP, 825 tcp2->th_sum = in_cksum(m, hlen + sizeof(*tcp2));
|
/netbsd-current/external/bsd/ipf/dist/iplang/ |
H A D | iplang_y.y | 1103 tcp->th_sum = strtol(*arg, NULL, 0); 1804 tcp->th_sum = 0; 1805 tcp->th_sum = c_chksum((u_short *)tcp, (u_int)ntohs(iptmp.ip_len), sum);
|