/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_shutdown.c | 295 if (ip_hdr_len > IPV6_HDR_LEN) { in sctp_ootb_shutdown_ack() 298 to = mp->b_rptr + ip_hdr_len - IPV6_HDR_LEN; in sctp_ootb_shutdown_ack() 299 ovbcopy(ip6h, to, IPV6_HDR_LEN); in sctp_ootb_shutdown_ack() 300 mp->b_rptr += ip_hdr_len - IPV6_HDR_LEN; in sctp_ootb_shutdown_ack() 301 ip_hdr_len = IPV6_HDR_LEN; in sctp_ootb_shutdown_ack() 305 ip6h->ip6_plen = htons(ixas.ixa_pktlen - IPV6_HDR_LEN); in sctp_ootb_shutdown_ack()
|
H A D | sctp_error.c | 280 ahip6h->ip6_plen = htons(ixa->ixa_pktlen - IPV6_HDR_LEN); in sctp_send_abort() 385 if (ip_hdr_len > IPV6_HDR_LEN) { in sctp_ootb_send_abort() 388 to = mp->b_rptr + ip_hdr_len - IPV6_HDR_LEN; in sctp_ootb_send_abort() 389 ovbcopy(ip6h, to, IPV6_HDR_LEN); in sctp_ootb_send_abort() 390 mp->b_rptr += ip_hdr_len - IPV6_HDR_LEN; in sctp_ootb_send_abort() 391 ip_hdr_len = IPV6_HDR_LEN; in sctp_ootb_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_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()
|
H A D | sctp_cookie.c | 686 iackip6h->ip6_plen = htons(ipsctplen + errlen - IPV6_HDR_LEN); in sctp_send_initack()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_input.c | 296 if (!OK_32PTR(ip6h) || MBLKL(mp) < IPV6_HDR_LEN) { in ip_input_common_v6() 297 mp = ip_check_and_align_header(mp, IPV6_HDR_LEN, &iras); in ip_input_common_v6() 346 iras.ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ip_input_common_v6() 562 mp = ip_check_length(mp, rptr, len, pkt_len, IPV6_HDR_LEN, ira); in ill_input_short_v6() 602 ira->ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ill_input_short_v6() 645 ira->ira_ip_hdr_length = IPV6_HDR_LEN; in ill_input_short_v6() 651 if (pkt_len < IPV6_HDR_LEN + MIN_EHDR_LEN) { in ill_input_short_v6() 658 rptr + IPV6_HDR_LEN + MIN_EHDR_LEN > mp->b_wptr) { in ill_input_short_v6() 659 ip6h = ip_pullup(mp, IPV6_HDR_LEN + MIN_EHDR_LEN, ira); in ill_input_short_v6() 670 if (pkt_len < IPV6_HDR_LEN + ehdrlen) { in ill_input_short_v6() [all …]
|
H A D | ip6.c | 447 if (ip_hdr_length != IPV6_HDR_LEN) { in icmp_send_reply_v6() 450 for (i = 0; i < IPV6_HDR_LEN; i++) { in icmp_send_reply_v6() 452 mp->b_rptr[IPV6_HDR_LEN - i - 1]; in icmp_send_reply_v6() 454 mp->b_rptr += (ip_hdr_length - IPV6_HDR_LEN); in icmp_send_reply_v6() 458 i -= (ip_hdr_length - IPV6_HDR_LEN); in icmp_send_reply_v6() 460 ip_hdr_length = IPV6_HDR_LEN; in icmp_send_reply_v6() 461 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == msgdsize(mp)); in icmp_send_reply_v6() 551 if ((uchar_t *)ip6h + IPV6_HDR_LEN > mp->b_wptr) in icmp_inbound_verify_v6() 559 hdr_length = IPV6_HDR_LEN; in icmp_inbound_verify_v6() 886 if (mp->b_wptr - mp->b_rptr < IPV6_HDR_LEN) in icmp_inbound_error_fanout_v6() [all …]
|
H A D | ip_ndp.c | 1604 icmp6_t *icmp6 = (icmp6_t *)(mp->b_rptr + IPV6_HDR_LEN); in ip_ndp_find_addresses() 1889 icmp_nd = (icmp6_t *)(mp->b_rptr + IPV6_HDR_LEN); in ndp_input_solicit() 1890 len = mp->b_wptr - mp->b_rptr - IPV6_HDR_LEN; in ndp_input_solicit() 2115 icmp_nd = (icmp6_t *)(mp->b_rptr + IPV6_HDR_LEN); in ndp_input_advert() 2116 len = mp->b_wptr - mp->b_rptr - IPV6_HDR_LEN; in ndp_input_advert() 2310 icmp_nd = (icmp6_t *)(mp->b_rptr + IPV6_HDR_LEN); in ndp_input() 2319 len = mp->b_wptr - mp->b_rptr - IPV6_HDR_LEN; in ndp_input() 2424 len = IPV6_HDR_LEN + sizeof (nd_neighbor_advert_t) + plen * 8; in ndp_xmit() 2447 ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in ndp_xmit() 2455 opt = (nd_opt_hdr_t *)((uint8_t *)ip6h + IPV6_HDR_LEN + in ndp_xmit() [all …]
|
H A D | tn_ipopt.c | 1209 buflen - (IPV6_HDR_LEN + hbhlen)); in tsol_remove_secopt_v6() 1295 buflen - (IPV6_HDR_LEN + 2)); in tsol_prepend_option_v6() 1314 ovbcopy(ip6hbh, ip6hbh + hbhlen, buflen - IPV6_HDR_LEN); in tsol_prepend_option_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 | 2087 exthdr_length = hdr_length - IPV6_HDR_LEN; in mld_input() 2453 size_t size = IPV6_HDR_LEN + sizeof (mld_hdr_t); in mld_sendpkt() 2554 size = IPV6_HDR_LEN + optlen + padlen + icmpsize; in mldv2_sendrpt()
|
H A D | tnet.c | 709 ASSERT(MBLKL(mp) >= IPV6_HDR_LEN); in tsol_get_pkt_label() 781 (mp->b_rptr + IPV6_HDR_LEN); in tsol_get_pkt_label()
|
H A D | ipsecah.c | 2927 option_length = hdr_size - IPV6_HDR_LEN; in ah_process_ip_options_v6() 2971 *length_to_skip = IPV6_HDR_LEN; in ah_process_ip_options_v6() 3796 bcopy(ip6h, nip6h, IPV6_HDR_LEN); in ah_auth_out_done()
|
H A D | conn_opt.c | 2315 ip6h->ip6_plen = htons(hdrs_len - IPV6_HDR_LEN); in conn_build_hdr_template() 2419 ip6h->ip6_plen = htons(hdrs_len + data_length - IPV6_HDR_LEN); in conn_prepend_hdr()
|
H A D | icmp.c | 1295 iph_hdr_length = IPV6_HDR_LEN; in icmp_icmp_error_ipv6() 2428 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == ixa->ixa_pktlen); in icmp_prepend_hdr() 4069 ip6h->ip6_plen = htons((uint16_t)(pktlen - IPV6_HDR_LEN)); in icmp_prepend_header_template()
|
/illumos-gate/usr/src/common/inet/ |
H A D | inet_hash.c | 68 if (((uchar_t *)ip6h + IPV6_HDR_LEN) > endptr) in inet_pkthash_ip_hdr_length_v6() 71 length = IPV6_HDR_LEN; in inet_pkthash_ip_hdr_length_v6() 273 if (((unsigned char *)ip6hp + IPV6_HDR_LEN > mp->b_wptr) || in inet_pkt_hash()
|
/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() 2023 htons(len - IPV6_HDR_LEN); in tcp_send() 2063 tcp->tcp_ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in tcp_send() 2413 ip6h->ip6_plen = htons(total_hdr_len - IPV6_HDR_LEN); in tcp_xmit_ctl() 2435 IPV6_HDR_LEN - TCPOPT_REAL_TS_LEN); in tcp_xmit_ctl() 2624 if (ip_hdr_len > IPV6_HDR_LEN) { in tcp_xmit_early_reset() 2627 to = mp->b_rptr + ip_hdr_len - IPV6_HDR_LEN; in tcp_xmit_early_reset() 2628 ovbcopy(ip6h, to, IPV6_HDR_LEN); in tcp_xmit_early_reset() 2629 mp->b_rptr += ip_hdr_len - IPV6_HDR_LEN; in tcp_xmit_early_reset() 2630 ip_hdr_len = IPV6_HDR_LEN; in tcp_xmit_early_reset() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_icmp.c | 471 if (ilen >= ICMP6_MINLEN + IPV6_HDR_LEN + in interpret_icmpv6() 611 if (ilen > ICMP6_MINLEN + IPV6_HDR_LEN) { in interpret_icmpv6() 618 ICMP6_MINLEN + IPV6_HDR_LEN); in interpret_icmpv6()
|
H A D | snoop_ip.c | 331 hdrlen = IPV6_HDR_LEN; in interpret_ipv6()
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | ip6.h | 46 #define IPV6_HDR_LEN 40 macro
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ip_cksum.c | 459 length = IPV6_HDR_LEN; in ip_hdr_length_nexthdr_v6()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 1494 if (((uchar_t *)ip6h + IPV6_HDR_LEN) > endptr) in mac_ip_hdr_length_v6() 1497 length = IPV6_HDR_LEN; in mac_ip_hdr_length_v6() 2021 if (((unsigned char *)ip6hp + IPV6_HDR_LEN > mp->b_wptr) || in mac_pkt_hash()
|
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | classifier.c | 506 uint_t length = IPV6_HDR_LEN; in get_port_info()
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/ibd/ |
H A D | ibd.h | 421 + IPV6_HDR_LEN + sizeof (nd_neighbor_advert_t)); \
|
/illumos-gate/usr/src/uts/common/ipp/flowacct/ |
H A D | flowacct.c | 129 uint_t length = IPV6_HDR_LEN; in flowacct_port_info()
|
/illumos-gate/usr/src/uts/common/inet/udp/ |
H A D | udp.c | 312 #define UDP_MAXPACKET_IPV6 (IP_MAXPACKET - UDPH_SIZE - IPV6_HDR_LEN) 1159 iph_hdr_length = IPV6_HDR_LEN; in udp_icmp_error_ipv6() 2185 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == ixa->ixa_pktlen); in udp_prepend_hdr() 3417 ip6h->ip6_plen = htons((uint16_t)(pktlen - IPV6_HDR_LEN)); in udp_prepend_header_template()
|