Searched refs:csump (Results 1 – 4 of 4) sorted by relevance
/freebsd/sbin/ipf/ipftest/ |
H A D | ipftest.c | 646 u_char *csump, *hdr, p; in fixv4sums() local 654 csump = (u_char *)ip; in fixv4sums() 659 csump += IP_HL(ip) << 2; in fixv4sums() 665 csump += sizeof(ip6_t); in fixv4sums() 677 hdr = csump; in fixv4sums() 678 csump += offsetof(tcphdr_t, th_sum); in fixv4sums() 681 hdr = csump; in fixv4sums() 682 csump += offsetof(udphdr_t, uh_sum); in fixv4sums() 685 hdr = csump; in fixv4sums() 686 csump += offsetof(icmphdr_t, icmp_cksum); in fixv4sums() [all …]
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_nat6.c | 1557 u_short *csump; in ipf_nat6_icmperror() local 1577 csump = NULL; in ipf_nat6_icmperror() 1586 csump = (u_short *)&tcp->th_sum; in ipf_nat6_icmperror() 1593 csump = (u_short *)&udp->uh_sum; in ipf_nat6_icmperror() 1764 if ((dlen >= 8) && (*csump != 0)) { in ipf_nat6_icmperror() 1765 ipf_fix_datacksum(csump, sumd); in ipf_nat6_icmperror() 1776 ipf_fix_datacksum(csump, sumd); in ipf_nat6_icmperror() 2871 u_short *csump; in ipf_nat6_out() local 2899 csump = ipf_nat_proto(fin, nat, nflags); in ipf_nat6_out() 2905 if (csump != NULL) { in ipf_nat6_out() [all …]
|
H A D | ip_nat.c | 3700 u_short *csump; in ipf_nat_icmperror() local 3720 csump = NULL; in ipf_nat_icmperror() 3729 csump = (u_short *)&tcp->th_sum; in ipf_nat_icmperror() 3736 csump = (u_short *)&udp->uh_sum; in ipf_nat_icmperror() 3901 if ((dlen >= 8) && (*csump != 0)) { in ipf_nat_icmperror() 3902 ipf_fix_datacksum(csump, sumd); in ipf_nat_icmperror() 3910 ipf_fix_datacksum(csump, sumd); in ipf_nat_icmperror() 5156 u_short *csump; in ipf_nat_out() local 5184 csump = ipf_nat_proto(fin, nat, nflags); in ipf_nat_out() 5190 if (csump != NULL) { in ipf_nat_out() [all …]
|
H A D | fil.c | 3341 u_short *sp, slen, sumsave, *csump; in fr_cksum() local 3349 csump = NULL; in fr_cksum() 3389 csump = &((udphdr_t *)l4hdr)->uh_sum; in fr_cksum() 3393 csump = &((tcphdr_t *)l4hdr)->th_sum; in fr_cksum() 3396 csump = &((icmphdr_t *)l4hdr)->icmp_cksum; in fr_cksum() 3401 csump = &((struct icmp6_hdr *)l4hdr)->icmp6_cksum; in fr_cksum() 3408 if (csump != NULL) { in fr_cksum() 3409 sumsave = *csump; in fr_cksum() 3410 *csump = 0; in fr_cksum() 3414 if (csump != NULL) in fr_cksum() [all …]
|