Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_shutdown.c295 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 Dsctp_error.c280 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 Dsctp_common.c409 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 Dsctp_cookie.c686 iackip6h->ip6_plen = htons(ipsctplen + errlen - IPV6_HDR_LEN); in sctp_send_initack()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6_input.c296 if (!OK_32PTR(ip6h) || MBLKL(mp) < IPV6_HDR_LEN) { in ip_input_common_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()
670 if (pkt_len < IPV6_HDR_LEN + ehdrlen) { in ill_input_short_v6()
677 rptr + IPV6_HDR_LEN + ehdrlen > mp->b_wptr) { in ill_input_short_v6()
678 ip6h = ip_pullup(mp, IPV6_HDR_LEN + ehdrlen, ira); in ill_input_short_v6()
1055 ira->ira_ip_hdr_length = IPV6_HDR_LEN; in ire_recv_forward_v6()
2452 rptr + IPV6_HDR_LEN + ehdrlen > mp->b_wptr) { in ip_fanout_v6()
2453 ip6h = ip_pullup(mp, IPV6_HDR_LEN + ehdrlen, ira); in ip_fanout_v6()
2627 rptr + IPV6_HDR_LEN + ehdrlen > mp->b_wptr) { in ip_fanout_v6()
[all …]
H A Dip6.c447 if (ip_hdr_length != IPV6_HDR_LEN) { in icmp_send_reply_v6()
460 ip_hdr_length = IPV6_HDR_LEN; in icmp_send_reply_v6()
559 hdr_length = IPV6_HDR_LEN; in icmp_inbound_verify_v6()
894 hdr_length = IPV6_HDR_LEN; in icmp_inbound_error_fanout_v6()
947 hdr_length = IPV6_HDR_LEN; in icmp_inbound_error_fanout_v6()
1375 msg_len += IPV6_HDR_LEN + len; in icmp_pkt_v6()
2612 length = IPV6_HDR_LEN; in ip_find_hdr_v6()
3060 length = IPV6_HDR_LEN; in ipsec_needs_processing_v6()
3926 ehdrlen = IPV6_HDR_LEN; in ip_source_routed_v6()
4412 len = IPV6_HDR_LEN; in ip_total_hdrs_len_v6()
[all …]
H A Dip_ndp.c1604 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()
2447 ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in ndp_xmit()
2508 ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in ndp_xmit()
3127 pkt_len = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in nce_resolv_ok()
[all …]
H A Dtn_ipopt.c1209 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 Dip6_output.c131 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 Digmp.c2087 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 Dtnet.c709 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 Dipsecah.c2927 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 Dconn_opt.c2315 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 Dicmp.c1294 iph_hdr_length = IPV6_HDR_LEN; in icmp_icmp_error_ipv6()
2427 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == ixa->ixa_pktlen); in icmp_prepend_hdr()
4068 ip6h->ip6_plen = htons((uint16_t)(pktlen - IPV6_HDR_LEN)); in icmp_prepend_header_template()
/illumos-gate/usr/src/common/inet/
H A Dinet_hash.c68 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 Dtcp_output.c1308 tcp->tcp_ip6h->ip6_plen = htons(plen - IPV6_HDR_LEN); in tcp_output()
2023 htons(len - IPV6_HDR_LEN); in tcp_send()
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()
2654 ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in tcp_xmit_early_reset()
2666 ixa->ixa_ip_hdr_length = IPV6_HDR_LEN; in tcp_xmit_early_reset()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_icmp.c471 if (ilen >= ICMP6_MINLEN + IPV6_HDR_LEN +
611 if (ilen > ICMP6_MINLEN + IPV6_HDR_LEN) {
618 ICMP6_MINLEN + IPV6_HDR_LEN);
H A Dsnoop_ip.c331 hdrlen = IPV6_HDR_LEN; in interpret_ipv6()
/illumos-gate/usr/src/uts/common/inet/
H A Dip6.h46 #define IPV6_HDR_LEN 40 macro
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_util.c340 len = ntohs(ip6h->ip6_plen) - (ip_hdr_sz - IPV6_HDR_LEN); in mac_sw_cksum_ipv6()
1599 if (((uchar_t *)ip6h + IPV6_HDR_LEN) > endptr) in mac_ip_hdr_length_v6()
1602 length = IPV6_HDR_LEN; in mac_ip_hdr_length_v6()
2126 if (((unsigned char *)ip6hp + IPV6_HDR_LEN > mp->b_wptr) || in mac_pkt_hash()
/illumos-gate/usr/src/uts/common/os/
H A Dip_cksum.c459 length = IPV6_HDR_LEN; in ip_hdr_length_nexthdr_v6()
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.c506 uint_t length = IPV6_HDR_LEN; in get_port_info()
/illumos-gate/usr/src/uts/common/sys/ib/clients/ibd/
H A Dibd.h421 + IPV6_HDR_LEN + sizeof (nd_neighbor_advert_t)); \
/illumos-gate/usr/src/uts/common/ipp/flowacct/
H A Dflowacct.c129 uint_t length = IPV6_HDR_LEN; in flowacct_port_info()
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp.c311 #define UDP_MAXPACKET_IPV6 (IP_MAXPACKET - UDPH_SIZE - IPV6_HDR_LEN)
1158 iph_hdr_length = IPV6_HDR_LEN; in udp_icmp_error_ipv6()
2184 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == ixa->ixa_pktlen); in udp_prepend_hdr()
3416 ip6h->ip6_plen = htons((uint16_t)(pktlen - IPV6_HDR_LEN)); in udp_prepend_header_template()

12