Home
last modified time | relevance | path

Searched refs:csump (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/cmd/ipf/tools/
H A Dipftest.c777 u_char *csump, *hdr; local
782 csump = (u_char *)ip;
783 csump += IP_HL(ip) << 2;
788 hdr = csump;
789 csump += offsetof(tcphdr_t, th_sum);
792 hdr = csump;
793 csump += offsetof(udphdr_t, uh_sum);
796 csump = NULL;
801 *csump = 0;
802 *(u_short *)csump = fr_cksum(m, ip, ip->ip_p, hdr);
/titanic_41/usr/src/uts/common/inet/ipf/
H A Dip_proxy.c481 u_short *csump; local
612 csump = &tcp->th_sum;
616 csump = &udp->uh_sum;
632 *csump = fr_cksum(fin->fin_qfm, ip,
637 fix_incksum(csump, sd);
640 *csump = fr_cksum(fin->fin_qfm, ip,
643 *csump = fr_cksum(fin->fin_m, ip, fin->fin_p, tcpudp);
H A Dip_nat6.c2208 u_short *csump; local
2220 csump = NULL;
2244 csump = nat_proto(fin, nat, nflags);
2255 if (csump != NULL && (!(nflags & IPN_TCPUDP) ||
2260 fix_outcksum(csump, nat->nat_sumd[1]);
2262 fix_incksum(csump, nat->nat_sumd[1]);
2265 fix_outcksum(csump, nat->nat_sumd[0]);
2267 fix_incksum(csump, nat->nat_sumd[0]);
2491 u_short *csump; local
2501 csump = NULL;
[all …]
H A Dip_nat.c4054 u_short *csump; local
4075 csump = NULL;
4132 csump = nat_proto(fin, nat, nflags);
4140 if (csump != NULL && !NET_IS_HCK_L4_FULL(net_data_p, fin->fin_m)) {
4148 fix_outcksum(csump, sumd);
4150 fix_incksum(csump, sumd);
4382 u_short *csump; local
4401 csump = NULL;
4468 csump = nat_proto(fin, nat, nflags);
4475 if (csump != NULL) {
[all …]
H A Dfil.c2943 u_short *sp, slen, sumsave, l4hlen, *csump; local
2950 csump = NULL;
3003 csump = &((udphdr_t *)l4hdr)->uh_sum;
3008 csump = &((tcphdr_t *)l4hdr)->th_sum;
3012 csump = &((icmphdr_t *)l4hdr)->icmp_cksum;
3020 if (csump != NULL) {
3021 sumsave = *csump;
3022 *csump = 0;
3174 if (csump != NULL)
3175 *csump = sumsave;
[all …]