Searched refs:th_sum (Results 26 - 50 of 68) sorted by relevance

123

/freebsd-12-stable/sys/netinet/
H A Dtcp_input.c632 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 Dtcp_output.c1261 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 Dtcp_syncache.c1867 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 Dtcp_subr.c1266 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 Dsiftr.c956 * 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 Dip_fil_freebsd.c415 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 Dip_proxy.c1032 u_short sum = ntohs(tcp->th_sum);
1034 tcp->th_sum = htons(sum);
1036 tcp->th_sum = fr_cksum(fin, ip,
H A Dip_state.c3488 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 Dalias.c1029 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 Dem_txrx.c173 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 Dng_nat.c884 th->th_sum = in_pseudo(ip->ip_src.s_addr,
890 th_sum);
/freebsd-12-stable/contrib/ipfilter/iplang/
H A Diplang_y.y1067 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 Dipftest.c684 csump += offsetof(tcphdr_t, th_sum);
/freebsd-12-stable/sys/dev/xen/netback/
H A Dnetback_unit_tests.c2331 /* 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 Dnetback.c2172 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 Dip_fw_nat.c440 th->th_sum = cksum;
442 offsetof(struct tcphdr, th_sum);
H A Dip_fw_dynamic.c2397 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 Dip_fw2.c739 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 Dtraceroute6.c1164 tcp->th_sum = 0;
1165 tcp->th_sum = tcp_chksum(&Src, &Dst, outpacket, datalen);
/freebsd-12-stable/sys/netpfil/pf/
H A Dpf.c2423 &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 Dtraceroute.c1553 tcp->th_sum = 0;
1556 tcp->th_sum = p_cksum(outip, (u_short*)tcp, protlen, protlen);
/freebsd-12-stable/contrib/ipfilter/ipsend/
H A Diptests.c933 t->th_sum = 0;
/freebsd-12-stable/sys/netinet/tcp_stacks/
H A Drack.c8441 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 Dif_sge.c1461 tcp->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
/freebsd-12-stable/sys/dev/jme/
H A Dif_jme.c1759 tcp->th_sum = in_pseudo(ip->ip_src.s_addr,
1766 tcp->th_sum = in_pseudo(ip->ip_src.s_addr,

Completed in 208 milliseconds

123