/freebsd-12-stable/sys/netinet/ |
H A D | tcp_input.c | 632 th->th_sum = m->m_pkthdr.csum_data; 634 th->th_sum = in6_cksum_pseudo(ip6, tlen, 636 th->th_sum ^= 0xffff; 638 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen); 639 if (th->th_sum) { 686 th->th_sum = m->m_pkthdr.csum_data; 688 th->th_sum = in_pseudo(ip->ip_src.s_addr, 692 th->th_sum ^= 0xffff; 703 th->th_sum = in_cksum(m, len); 714 if (th->th_sum) { [all...] |
H A D | tcp_output.c | 1261 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 1289 th->th_sum = in6_cksum_pseudo(ip6, sizeof(struct tcphdr) + 1299 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
|
H A D | tcp_syncache.c | 1867 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 1880 th->th_sum = in6_cksum_pseudo(ip6, tlen + optlen - hlen, 1902 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
|
H A D | tcp_subr.c | 1266 th->th_sum = 0; /* in_pseudo() is called later for ipv4 */ 1543 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 1547 nth->th_sum = in6_cksum_pseudo(ip6, 1559 nth->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
|
H A D | siftr.c | 956 * tcp_output() sets th->th_sum to the checksum of the 967 * th_sum field populated with the pseudo header's 987 th->th_sum = in_cksum_skip(*m, ntohs(ip->ip_len),
|
/freebsd-12-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 415 tcp2->th_sum = 0; 426 tcp2->th_sum = in6_cksum(m, IPPROTO_TCP, 435 tcp2->th_sum = in_cksum(m, hlen + sizeof(*tcp2));
|
H A D | ip_proxy.c | 1032 u_short sum = ntohs(tcp->th_sum); 1034 tcp->th_sum = htons(sum); 1036 tcp->th_sum = fr_cksum(fin, ip,
|
H A D | ip_state.c | 3488 ipf_fix_outcksum(0, &tcp->th_sum, is->is_sumd[0], 0); 3496 ipf_fix_outcksum(0, &tcp->th_sum, is->is_sumd[1], 0); 3527 ipf_fix_incksum(0, &tcp->th_sum, is->is_sumd[0], 0); 3535 ipf_fix_incksum(0, &tcp->th_sum, is->is_sumd[1], 0);
|
/freebsd-12-stable/sys/netinet/libalias/ |
H A D | alias.c | 1029 ADJUST_CHECKSUM(accumulate, tc->th_sum); 1095 ADJUST_CHECKSUM(accumulate, tc->th_sum); 1161 ADJUST_CHECKSUM(accumulate, tc->th_sum); 1605 ADJUST_CHECKSUM(accumulate, tc->th_sum);
|
/freebsd-12-stable/sys/dev/e1000/ |
H A D | em_txrx.c | 173 pi->ipi_ehdrlen + pi->ipi_ip_hlen + offsetof(struct tcphdr, th_sum); 275 tucso = hdr_len + offsetof(struct tcphdr, th_sum);
|
/freebsd-12-stable/sys/netgraph/ |
H A D | ng_nat.c | 884 th->th_sum = in_pseudo(ip->ip_src.s_addr, 890 th_sum);
|
/freebsd-12-stable/contrib/ipfilter/iplang/ |
H A D | iplang_y.y | 1067 tcp->th_sum = strtol(*arg, NULL, 0); 1766 tcp->th_sum = 0; 1767 tcp->th_sum = c_chksum((u_short *)tcp, (u_int)ntohs(iptmp.ip_len), sum);
|
/freebsd-12-stable/contrib/ipfilter/tools/ |
H A D | ipftest.c | 684 csump += offsetof(tcphdr_t, th_sum);
|
/freebsd-12-stable/sys/dev/xen/netback/ |
H A D | netback_unit_tests.c | 2331 /* th_sum is incorrect; will be inserted by function under test */ 2332 tcp->th_sum = htons(0xbaad); 2390 XNB_ASSERT(tcp->th_sum == htons(TCP_CSUM)); 2421 tcp->th_sum = htons(TCP_CSUM); 2434 XNB_ASSERT(tcp->th_sum == htons(TCP_CSUM));
|
H A D | netback.c | 2172 th->th_sum = in_pseudo(iph->ip_src.s_addr, 2174 th->th_sum = in_cksum_skip(mbufc,
|
/freebsd-12-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_nat.c | 440 th->th_sum = cksum; 442 offsetof(struct tcphdr, th_sum);
|
H A D | ip_fw_dynamic.c | 2397 tcp->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, 2400 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 2507 tcp->th_sum = in6_cksum_pseudo(ip6, sizeof(struct tcphdr), 2510 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
|
H A D | ip_fw2.c | 739 th->th_sum = in_cksum(m, len); 752 th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(*h6),
|
/freebsd-12-stable/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 1164 tcp->th_sum = 0; 1165 tcp->th_sum = tcp_chksum(&Src, &Dst, outpacket, datalen);
|
/freebsd-12-stable/sys/netpfil/pf/ |
H A D | pf.c | 2423 &th->th_sum, &sack.start, 2427 pf_patch_32_unaligned(m, &th->th_sum, 2579 th->th_sum = in_cksum(m, len); 2596 th->th_sum = in6_cksum(m, IPPROTO_TCP, 3430 bproto_sum = th->th_sum; 3431 pd->proto_sum = &th->th_sum; 3436 &th->th_sum, &nk->addr[pd->sidx], 3445 &th->th_sum, &nk->addr[pd->didx], 3778 pf_change_proto_a(m, &th->th_seq, &th->th_sum, 4105 pf_change_proto_a(m, &th->th_seq, &th->th_sum, hton [all...] |
/freebsd-12-stable/contrib/traceroute/ |
H A D | traceroute.c | 1553 tcp->th_sum = 0; 1556 tcp->th_sum = p_cksum(outip, (u_short*)tcp, protlen, protlen);
|
/freebsd-12-stable/contrib/ipfilter/ipsend/ |
H A D | iptests.c | 933 t->th_sum = 0;
|
/freebsd-12-stable/sys/netinet/tcp_stacks/ |
H A D | rack.c | 8441 th->th_sum = htons(0); 8446 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 8447 th->th_sum = in6_cksum_pseudo(ip6, 8466 th->th_sum = htons(0); 8471 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 8472 th->th_sum = in_pseudo(ip->ip_src.s_addr,
|
/freebsd-12-stable/sys/dev/sge/ |
H A D | if_sge.c | 1461 tcp->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
|
/freebsd-12-stable/sys/dev/jme/ |
H A D | if_jme.c | 1759 tcp->th_sum = in_pseudo(ip->ip_src.s_addr, 1766 tcp->th_sum = in_pseudo(ip->ip_src.s_addr,
|