| /src/sys/net/npf/ |
| npf_ext_normalize.c | 195 cksum = th->th_sum; 199 cksum = npf_fixup16_cksum(th->th_sum, mss, maxmss); 201 th->th_sum = cksum;
|
| npf_sendpkt.c | 179 th->th_sum = in_cksum(m, len); 191 th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
|
| npf_alg_icmp.c | 370 l4cksum = th->th_sum; 426 cksum = npf_fixup16_cksum(cksum, l4cksum, th->th_sum);
|
| /src/external/bsd/ipf/bin/ipsend/ |
| tcpip.h | 83 #define ti_sum ti_t.th_sum
|
| /src/external/bsd/tcpdump/dist/ |
| tcp.h | 44 nd_uint16_t th_sum; /* checksum */ member in struct:tcphdr
|
| print-tcp.c | 407 tcp_sum = GET_BE_U_2(tp->th_sum); 419 tcp_sum = GET_BE_U_2(tp->th_sum); 978 memcpy(&savecsum, tp1.th_sum, sizeof(savecsum)); 979 memset(tp1.th_sum, 0, sizeof(tp1.th_sum)); 981 memcpy(tp1.th_sum, &savecsum, sizeof(tp1.th_sum));
|
| /src/sys/net/ |
| ether_sw_offload.c | 300 osum = th->th_sum; 301 th->th_sum = sum; 314 th->th_sum = osum;
|
| slcompress.c | 380 deltaA = ntohs(th->th_sum); 547 th->th_sum = htons((*cp << 8) | cp[1]);
|
| /src/sys/netinet/ |
| tcp.h | 74 uint16_t th_sum; /* checksum */ member in struct:tcphdr
|
| in_offload.c | 152 th->th_sum = phsum; 153 th->th_sum = in4_cksum(n, 0, off + iphlen, thlen + mss);
|
| 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,
|
| tcp_syncache.c | 1176 /* th_x2, th_sum, th_urp already 0 from memset */ 1320 th->th_sum = 0; 1321 th->th_sum = in4_cksum(m, IPPROTO_TCP, hlen, tlen - hlen); 1329 th->th_sum = 0; 1330 th->th_sum = in6_cksum(m, IPPROTO_TCP, hlen, tlen - hlen);
|
| 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),
|
| tcp_var.h | 188 #define ti_sum ti_t.th_sum
|
| /src/sys/netinet6/ |
| in6_offload.c | 149 th->th_sum = phsum; 150 th->th_sum = in6_cksum(n, 0, off + iphlen, thlen + mss);
|
| /src/sys/arch/xen/xen/ |
| xennet_checksum.c | 165 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
|
| /src/external/bsd/ipf/dist/ipsd/Celler/ |
| ip_compat.h | 148 __u16 th_sum; member in struct:__anon6695
|
| /src/sys/dist/pf/net/ |
| 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,
|
| 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, &pd->baddr [all...] |
| /src/external/bsd/ipf/dist/ipsend/ |
| ip.c | 292 t2->th_sum = 0; 293 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
|
| /src/sys/netipsec/ |
| ipsec_input.c | 150 th->th_sum = 0; 151 th->th_sum = in4_cksum(m, IPPROTO_TCP, poff, plen);
|
| /src/sys/dev/pci/ |
| 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,
|
| /src/sys/external/bsd/ipf/netinet/ |
| 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,
|
| 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));
|
| /src/external/bsd/ipf/dist/iplang/ |
| 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);
|