/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_ipv6.c | 139 hdr_len = sizeof (ip6_t) + tmpl_ip6hp->ip6_plen; in mac_ipv6_header() 155 ip6hp->ip6_plen = 0; in mac_ipv6_header() 246 if (pdata_size != sizeof (ip6_t) + ip6hp->ip6_plen) in mac_ipv6_pdata_verify() 255 return (ip6hp->ip6_plen == 0); in mac_ipv6_pdata_verify()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | tn_ipopt.c | 1210 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - hbhlen); in tsol_remove_secopt_v6() 1242 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - delta); in tsol_remove_secopt_v6() 1336 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) + delta); in tsol_prepend_option_v6()
|
H A D | ip6.c | 457 i = ntohs(ip6h->ip6_plen); in icmp_send_reply_v6() 459 ip6h->ip6_plen = htons(i); in icmp_send_reply_v6() 461 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == msgdsize(mp)); in icmp_send_reply_v6() 477 icmp6->icmp6_cksum = ip6h->ip6_plen; in icmp_send_reply_v6() 1380 ip6h->ip6_plen = htons((uint16_t)(msgdsize(mp) - IPV6_HDR_LEN)); in icmp_pkt_v6() 1387 icmp6->icmp6_cksum = ip6h->ip6_plen; in icmp_pkt_v6() 3337 if (more_frags && (ntohs(ip6h->ip6_plen) & 7)) { in ip_input_fragment_v6() 3340 (uint32_t)((char *)&ip6h->ip6_plen - in ip_input_fragment_v6() 3768 ip6h->ip6_plen = htons((uint16_t)(packet_size - IPV6_HDR_LEN)); in ip_input_fragment_v6() 4037 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == pkt_len); in ip_fragment_v6() [all …]
|
H A D | ipsecah.c | 1963 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - ah_length); in ah_icmp_error_v6() 2962 ip6h->ip6_plen = htons(ntohs(oip6h->ip6_plen) + in ah_process_ip_options_v6() 2965 ip6h->ip6_plen = oip6h->ip6_plen; in ah_process_ip_options_v6() 3299 age_bytes = sizeof (ip6_t) + ntohs(ip6h->ip6_plen) + in ah_outbound() 3611 length = ntohs(ip6h->ip6_plen); in ah_auth_in_done() 3658 ip6h->ip6_plen = htons((uint16_t)length); in ah_auth_in_done() 3809 length = ntohs(nip6h->ip6_plen); in ah_auth_out_done() 3811 nip6h->ip6_plen = htons((uint16_t)length); in ah_auth_out_done()
|
H A D | ipsecesp.c | 824 if (padlen >= ntohs(ip6h->ip6_plen) - 2 - sizeof (esph_t) - in esp_strip_header() 835 "%u.\n", (unsigned)(ntohs(ip6h->ip6_plen) in esp_strip_header() 837 (unsigned)(ntohs(ip6h->ip6_plen) - 2 - in esp_strip_header() 849 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - padlen - in esp_strip_header() 1102 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - in esp_inbound() 2478 datalen = ntohs(ip6h->ip6_plen) + sizeof (ip6_t) - divpoint; in esp_outbound() 2651 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) + adj); in esp_outbound()
|
H A D | ip6_input.c | 346 iras.ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ip_input_common_v6() 602 ira->ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ill_input_short_v6() 979 ira->ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ire_recv_forward_v6() 1054 ira->ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ire_recv_forward_v6() 1125 ntohs(((ip6_t *)mp->b_rptr)->ip6_plen) + IPV6_HDR_LEN); in ip_forward_xmit_v6() 2004 ASSERT(ira->ira_pktlen == ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN); in ip_fanout_v6()
|
H A D | ip6_output.c | 131 ixa->ixa_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ip_output_simple_v6() 427 pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ire_send_local_v6() 489 pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ire_send_local_v6()
|
H A D | igmp.c | 2089 mldlen = ntohs(ip6h->ip6_plen) - exthdr_length; in mld_input() 2496 ip6h->ip6_plen = htons(sizeof (*mldh) + router_alert_length); in mld_sendpkt() 2639 ip6h->ip6_plen = htons(optlen + padlen + icmpsize); in mldv2_sendrpt()
|
H A D | ip_ndp.c | 2447 ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in ndp_xmit() 2508 ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in ndp_xmit() 2517 icmp6->icmp6_cksum = ip6h->ip6_plen; in ndp_xmit() 3127 pkt_len = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in nce_resolv_ok() 5264 pkt_len = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in nce_resolv_ipmp_ok()
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_error.c | 280 ahip6h->ip6_plen = htons(ixa->ixa_pktlen - IPV6_HDR_LEN); in sctp_send_abort() 396 ip6h->ip6_plen = htons(ahlen - IPV6_HDR_LEN); in sctp_ootb_send_abort() 429 ip6h->ip6_plen = htons(ixas.ixa_pktlen - IPV6_HDR_LEN); in sctp_ootb_send_abort()
|
H A D | sctp_shutdown.c | 305 ip6h->ip6_plen = htons(ixas.ixa_pktlen - IPV6_HDR_LEN); in sctp_ootb_shutdown_ack()
|
H A D | sctp_common.c | 409 ip6h->ip6_plen = htons(sum - IPV6_HDR_LEN); in sctp_set_iplen() 1016 ip6h->ip6_plen = htons(hdrs_len - IPV6_HDR_LEN); in sctp_build_hdrs()
|
/illumos-gate/usr/src/uts/common/ipp/meters/ |
H A D | tswtcl.c | 103 pkt_len = ntohs(ip6_hdr->ip6_plen) + in tswtcl_process()
|
H A D | tokenmt.c | 117 pkt_len = ntohs(ip6_hdr->ip6_plen) + in tokenmt_process()
|
/illumos-gate/usr/src/uts/common/netinet/ |
H A D | ip6.h | 63 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_arp.c | 315 plen = ntohs(v6hdr->ip6_plen); in libvarpd_plugin_proxy_ndp() 448 v6hdr->ip6_plen = htons(roff - sizeof (ip6_t) - in libvarpd_proxy_ndp_fini() 451 ntohs(v6hdr->ip6_plen)) & 0xffff; in libvarpd_proxy_ndp_fini()
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_output.c | 1308 tcp->tcp_ip6h->ip6_plen = htons(plen - IPV6_HDR_LEN); in tcp_output() 2022 tcp->tcp_ip6h->ip6_plen = in tcp_send() 2063 tcp->tcp_ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in tcp_send() 2200 ((ip6_t *)rptr)->ip6_plen) + in tcp_send() 2202 ((ip6_t *)rptr)->ip6_plen = in tcp_send() 2413 ip6h->ip6_plen = htons(total_hdr_len - IPV6_HDR_LEN); in tcp_xmit_ctl() 2434 ip6h->ip6_plen = htons(total_hdr_len - in tcp_xmit_ctl() 2485 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) + in tcp_xmit_ctl() 2654 ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in tcp_xmit_early_reset() 3326 ip6->ip6_plen = htons(data_length - IPV6_HDR_LEN); in tcp_xmit_mp()
|
/illumos-gate/usr/src/uts/common/inet/iptun/ |
H A D | iptun.c | 917 ip6hp->ip6_plen = sizeof (*iel); in iptun_headergen() 2171 new_ip6h->ip6_plen = htons(sizeof (icmp6_t) + orig_pktsize); in iptun_sendicmp_v6() 2179 new_icmp6->icmp6_cksum = new_ip6h->ip6_plen; in iptun_sendicmp_v6() 3095 outer6->ip6_plen = htons(ixa->ixa_pktlen - sizeof (ip6_t)); in iptun_out_process_ipv6() 3329 iplen = ntohs(ip6h->ip6_plen); in iptun_output_check_label() 3338 adjust = (int)ntohs(ip6h->ip6_plen) - iplen; in iptun_output_check_label()
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_fil_solaris.c | 1371 ip6->ip6_plen = htons(sizeof(*tcp)); 1431 fnew.fin_plen = ntohs(ip6->ip6_plen) + hlen; 1590 ip6->ip6_plen = htons((u_short)sz); 3085 fin->fin_ip6->ip6_plen = htons(icmp_pld_len + sizeof (struct icmp6_hdr));
|
H A D | ip_state.c | 4068 savelen = oip6->ip6_plen; 4069 oip6->ip6_plen = fin->fin_dlen - ICMPERR_ICMPHLEN; 4072 ofin.fin_plen = oip6->ip6_plen; 4075 oip6->ip6_plen = savelen;
|
/illumos-gate/usr/src/uts/common/inet/ilb/ |
H A D | ilb_nat.c | 605 icmp6h->icmp6_cksum = out_ip6h->ip6_plen; in ilb_nat_icmpv6()
|
H A D | ilb.c | 1627 icmp6->icmp6_cksum = ip6h->ip6_plen; in ilb_icmp_v6() 1919 pkt_len = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ilb_check_v6()
|
/illumos-gate/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacct.c | 275 header->pktlen = ntohs(ip6h->ip6_plen) + in flowacct_extract_header()
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_tx.c | 703 offset = offsetof(ip6_t, ip6_plen) + mac_hdr_len; in ixgbe_get_context()
|
/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_tx.c | 706 offset = offsetof(ip6_t, ip6_plen) + mac_hdr_len; in igb_get_tx_context()
|