Searched refs:th_sum (Results 1 - 25 of 41) sorted by relevance

12

/netbsd-current/sys/net/npf/
H A Dnpf_ext_normalize.c195 cksum = th->th_sum;
199 cksum = npf_fixup16_cksum(th->th_sum, mss, maxmss);
201 th->th_sum = cksum;
H A Dnpf_sendpkt.c179 th->th_sum = in_cksum(m, len);
191 th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
H A Dnpf_alg_icmp.c370 l4cksum = th->th_sum;
426 cksum = npf_fixup16_cksum(cksum, l4cksum, th->th_sum);
/netbsd-current/external/bsd/ipf/bin/ipsend/
H A Dtcpip.h83 #define ti_sum ti_t.th_sum
/netbsd-current/external/bsd/tcpdump/dist/
H A Dtcp.h44 nd_uint16_t th_sum; /* checksum */ member in struct:tcphdr
H A Dprint-tcp.c397 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 Dether_sw_offload.c300 osum = th->th_sum;
301 th->th_sum = sum;
314 th->th_sum = osum;
H A Dslcompress.c380 deltaA = ntohs(th->th_sum);
547 th->th_sum = htons((*cp << 8) | cp[1]);
/netbsd-current/sys/netinet/
H A Dtcp.h73 uint16_t th_sum; /* checksum */ member in struct:tcphdr
H A Din_offload.c152 th->th_sum = phsum;
153 th->th_sum = in4_cksum(n, 0, off + iphlen, thlen + mss);
H A Dtcp_output.c1427 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 Dtcp_syncache.c1169 /* 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 Dtcp_subr.c538 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 Dtcp_var.h188 #define ti_sum ti_t.th_sum
/netbsd-current/sys/netinet6/
H A Din6_offload.c149 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 Dip_compat.h148 __u16 th_sum; member in struct:__anon1792
/netbsd-current/sys/arch/xen/xen/
H A Dxennet_checksum.c165 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
/netbsd-current/external/bsd/ipf/dist/ipsend/
H A Dip.c292 t2->th_sum = 0;
293 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
/netbsd-current/sys/dist/pf/net/
H A Dpf_norm.c1361 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 Dpf.c1623 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 Dipsec_input.c150 th->th_sum = 0;
151 th->th_sum = in4_cksum(m, IPPROTO_TCP, poff, plen);
/netbsd-current/sys/dev/pci/
H A Dif_jme.c1370 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 Dip_proxy.c1025 u_short sum = ntohs(tcp->th_sum);
1027 tcp->th_sum = htons(sum);
1029 tcp->th_sum = fr_cksum(fin, ip,
H A Dip_fil_netbsd.c804 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 Diplang_y.y1103 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);

Completed in 222 milliseconds

12