Home
last modified time | relevance | path

Searched refs:ip_sum (Results 1 – 25 of 25) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c253 outip->ip_sum = in send_probe()
255 if (outip->ip_sum == 0) in send_probe()
256 outip->ip_sum = 0xffff; in send_probe()
/illumos-gate/usr/src/boot/lib/libstand/
H A Dip.c118 ip->ip_sum = in_cksum(ip, sizeof(*ip)); /* short, but special */ in sendip()
374 ipr->ip_hdr->ip_sum = 0; in readipv4()
375 ipr->ip_hdr->ip_sum = in_cksum(ipr->ip_hdr, sizeof (*ipr->ip_hdr)); in readipv4()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_send.c1316 oiph->ip_sum, in nxge_do_softlso()
1610 niph->ip_sum = 0; in nxge_do_softlso()
1611 niph->ip_sum = (uint16_t)nxge_csgen((uint16_t *)niph, iphlen); in nxge_do_softlso()
1631 niph->ip_sum, in nxge_do_softlso()
1661 niph->ip_sum = 0; in nxge_do_softlso()
1662 niph->ip_sum = (uint16_t)nxge_csgen((uint16_t *)niph, iphlen); in nxge_do_softlso()
1670 niph->ip_sum, in nxge_do_softlso()
1701 niph->ip_sum = 0; in nxge_do_softlso()
1702 niph->ip_sum = (uint16_t)nxge_csgen((uint16_t *)niph, iphlen); in nxge_do_softlso()
1717 niph->ip_sum, in nxge_do_softlso()
/illumos-gate/usr/src/uts/common/netinet/
H A Dip_var.h76 ushort_t ip_sum; member
H A Dip.h56 ushort_t ip_sum; /* checksum */ member
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_fil_solaris.c1456 ip->ip_sum = ipf_cksum((u_short *)ip, sizeof(*ip));
2916 fin->fin_ip->ip_sum = 0;
3231 uint32_t sum, ip_sum; local
3341 ip->ip_sum = (uint16_t)0;
3342 ip_sum = fr_buf_sum(ip, (unsigned int)fin->fin_hlen);
3343 while (ip_sum >> 16)
3344 ip_sum = (ip_sum & 0xFFFF) + (ip_sum >> 16);
3346 ip->ip_sum = ~((uint16_t)ip_sum);
3347 DTRACE_PROBE1(l3_sum, uint16_t, ip->ip_sum);
H A Dip_nat.c3050 fix_datacksum(&oip->ip_sum, sumd);
4098 fix_outcksum(&fin->fin_ip->ip_sum, sumd);
4110 fix_outcksum(&fin->fin_ip->ip_sum,
4113 fix_incksum(&fin->fin_ip->ip_sum,
4450 fix_incksum(&fin->fin_ip->ip_sum, nat->nat_ipsumd);
4452 fix_outcksum(&fin->fin_ip->ip_sum, nat->nat_ipsumd);
H A Dip_proxy.c599 fix_outcksum(&ip->ip_sum, sd);
H A Dfil.c5527 sum = (~ntohs(ip->ip_sum)) & 0xffff;
5532 ip->ip_sum = htons(sums);
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_conn.c506 ilb_nat_info_t *info, uint32_t *ip_sum, uint32_t *tp_sum, ilb_sticky_t *s) in ilb_conn_add() argument
570 *ip_sum = connp->conn_c2s_ip_sum; in ilb_conn_add()
587 *ip_sum = 0; in ilb_conn_add()
614 *ip_sum = connp->conn_c2s_ip_sum; in ilb_conn_add()
637 *ip_sum = 0; in ilb_conn_add()
754 ilb_rule_info_t *rule_cache, uint32_t *ip_sum, uint32_t *tp_sum, in ilb_find_conn() argument
779 *ip_sum = connp->conn_c2s_ip_sum; in ilb_find_conn()
798 *ip_sum = connp->conn_s2c_ip_sum; in ilb_find_conn()
H A Dilb.c1677 uint32_t ip_sum, tp_sum; in ilb_check() local
1821 dport, &info, &ip_sum, &tp_sum, s) != 0) { in ilb_check()
1829 ilb_full_nat(l3, iph, l4, tph, &info, ip_sum, tp_sum, B_TRUE); in ilb_check()
1845 dport, &info, &ip_sum, &tp_sum, s) != 0) { in ilb_check()
1853 ilb_half_nat(l3, iph, l4, tph, &info, ip_sum, tp_sum, B_TRUE); in ilb_check()
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c85 ip->ip_sum = 0; in myri10ge_lro_flush()
86 ip->ip_sum = 0xffff ^ in myri10ge_lro_flush()
H A Dmyri10ge.c3084 if (ip->ip_sum != 0) { in myri10ge_lso_parse_header()
3087 ip->ip_sum = 0; in myri10ge_lso_parse_header()
3093 sum_off = off + _PTRDIFF(&ip->ip_sum, buf); in myri10ge_lso_parse_header()
/illumos-gate/usr/src/boot/include/netinet/
H A Dip.h68 u_short ip_sum; /* checksum */ member
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c668 cs->cs_ip.ip_sum = 0; in vj_uncompress_tcp()
676 cs->cs_ip.ip_sum = ~ changes; in vj_uncompress_tcp()
/illumos-gate/usr/src/stand/lib/inet/
H A Dipv4.c1009 iphp->ip_sum = htons(0); in ipv4_output()
1050 iphp->ip_sum = ipv4cksum((uint16_t *)iphp, sizeof (struct ip)); in ipv4_output()
1099 iph->ip_sum = ipv4cksum((uint16_t *)iph, sizeof (struct ip)); in ipv4_tcp_output()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipftest.c774 ip->ip_sum = 0;
775 ip->ip_sum = ipf_cksum((u_short *)ip, IP_HL(ip) << 2);
H A Dip_fil.c780 ip->ip_sum = 0;
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_irc_pxy.c392 fix_outcksum(&ip->ip_sum, sum2);
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_token.c742 adr_short(&adr, (short *)&(ipp->ip_sum), 1); in au_to_ip()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ip.c213 ntohs(ip->ip_sum)); in interpret_ip()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c4879 iphdr->ip_sum = 0; in ql_hw_csum_setup()
4898 iphdr->ip_sum = 0; in ql_hw_csum_setup()
4932 iphdr->ip_sum = 0; in ql_hw_csum_setup()
5233 iphdr->ip_sum = 0; in ql_hw_lso_setup()
5270 iphdr->ip_sum = 0; in ql_hw_lso_setup()
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_tx.c1471 offsetof(struct ip, ip_sum); in e1000g_fill_context_descriptor()
/illumos-gate/usr/src/stand/lib/tcp/
H A Dtcp.c1813 iph->ip_sum = htons(len - IP_SIMPLE_HDR_LENGTH); in tcp_verify_cksum()
5498 tcp->tcp_ipha->ip_sum = 0; in tcp_header_init_ipv4()
6223 iph->ip_sum = htons(len - IP_SIMPLE_HDR_LENGTH); in tcp_set_cksum()
6227 iph->ip_sum = 0; in tcp_set_cksum()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.c3098 ip->ip_sum = 0; in vrrpd_send_adv_v4()