Home
last modified time | relevance | path

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

12

/onnv-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()
1014 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()
/onnv-gate/usr/src/uts/common/inet/ip/
H A Dip6_input.c294 if (!OK_32PTR(ip6h) || MBLKL(mp) < IPV6_HDR_LEN) { in ip_input_common_v6()
295 mp = ip_check_and_align_header(mp, IPV6_HDR_LEN, &iras); in ip_input_common_v6()
344 iras.ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ip_input_common_v6()
559 mp = ip_check_length(mp, rptr, len, pkt_len, IPV6_HDR_LEN, ira); in ill_input_short_v6()
599 ira->ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ill_input_short_v6()
642 ira->ira_ip_hdr_length = IPV6_HDR_LEN; in ill_input_short_v6()
648 if (pkt_len < IPV6_HDR_LEN + MIN_EHDR_LEN) { in ill_input_short_v6()
655 rptr + IPV6_HDR_LEN + MIN_EHDR_LEN > mp->b_wptr) { in ill_input_short_v6()
656 ip6h = ip_pullup(mp, IPV6_HDR_LEN + MIN_EHDR_LEN, ira); in ill_input_short_v6()
667 if (pkt_len < IPV6_HDR_LEN + ehdrlen) { in ill_input_short_v6()
[all …]
H A Dip6.c445 if (ip_hdr_length != IPV6_HDR_LEN) { in icmp_send_reply_v6()
448 for (i = 0; i < IPV6_HDR_LEN; i++) { in icmp_send_reply_v6()
450 mp->b_rptr[IPV6_HDR_LEN - i - 1]; in icmp_send_reply_v6()
452 mp->b_rptr += (ip_hdr_length - IPV6_HDR_LEN); in icmp_send_reply_v6()
456 i -= (ip_hdr_length - IPV6_HDR_LEN); in icmp_send_reply_v6()
458 ip_hdr_length = IPV6_HDR_LEN; in icmp_send_reply_v6()
459 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == msgdsize(mp)); in icmp_send_reply_v6()
549 if ((uchar_t *)ip6h + IPV6_HDR_LEN > mp->b_wptr) in icmp_inbound_verify_v6()
557 hdr_length = IPV6_HDR_LEN; in icmp_inbound_verify_v6()
896 if (mp->b_wptr - mp->b_rptr < IPV6_HDR_LEN) in icmp_inbound_error_fanout_v6()
[all …]
H A Dip_ndp.c1368 icmp6_t *icmp6 = (icmp6_t *)(mp->b_rptr + IPV6_HDR_LEN); in ip_ndp_find_addresses()
1653 icmp_nd = (icmp6_t *)(mp->b_rptr + IPV6_HDR_LEN); in ndp_input_solicit()
1654 len = mp->b_wptr - mp->b_rptr - IPV6_HDR_LEN; in ndp_input_solicit()
1879 icmp_nd = (icmp6_t *)(mp->b_rptr + IPV6_HDR_LEN); in ndp_input_advert()
1880 len = mp->b_wptr - mp->b_rptr - IPV6_HDR_LEN; in ndp_input_advert()
2074 icmp_nd = (icmp6_t *)(mp->b_rptr + IPV6_HDR_LEN); in ndp_input()
2083 len = mp->b_wptr - mp->b_rptr - IPV6_HDR_LEN; in ndp_input()
2188 len = IPV6_HDR_LEN + sizeof (nd_neighbor_advert_t) + plen * 8; in ndp_xmit()
2211 ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in ndp_xmit()
2219 opt = (nd_opt_hdr_t *)((uint8_t *)ip6h + IPV6_HDR_LEN + in ndp_xmit()
[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.c128 ixa->ixa_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ip_output_simple_v6()
424 pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ire_send_local_v6()
486 pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ire_send_local_v6()
H A Digmp.c2070 exthdr_length = hdr_length - IPV6_HDR_LEN; in mld_input()
2436 size_t size = IPV6_HDR_LEN + sizeof (mld_hdr_t); in mld_sendpkt()
2537 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.c3082 option_length = hdr_size - IPV6_HDR_LEN; in ah_process_ip_options_v6()
3126 *length_to_skip = IPV6_HDR_LEN; in ah_process_ip_options_v6()
3951 bcopy(ip6h, nip6h, IPV6_HDR_LEN); in ah_auth_out_done()
H A Dconn_opt.c2256 ip6h->ip6_plen = htons(hdrs_len - IPV6_HDR_LEN); in conn_build_hdr_template()
2360 ip6h->ip6_plen = htons(hdrs_len + data_length - IPV6_HDR_LEN); in conn_prepend_hdr()
H A Dicmp.c1266 iph_hdr_length = IPV6_HDR_LEN; in icmp_icmp_error_ipv6()
2399 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == ixa->ixa_pktlen); in icmp_prepend_hdr()
4031 ip6h->ip6_plen = htons((uint16_t)(pktlen - IPV6_HDR_LEN)); in icmp_prepend_header_template()
/onnv-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_output.c1285 tcp->tcp_ip6h->ip6_plen = htons(plen - IPV6_HDR_LEN); in tcp_output()
2002 htons(len - IPV6_HDR_LEN); in tcp_send()
2042 tcp->tcp_ip6h->ip6_plen = htons(len - IPV6_HDR_LEN); in tcp_send()
2391 ip6h->ip6_plen = htons(total_hdr_len - IPV6_HDR_LEN); in tcp_xmit_ctl()
2413 IPV6_HDR_LEN - TCPOPT_REAL_TS_LEN); in tcp_xmit_ctl()
2568 if (ip_hdr_len > IPV6_HDR_LEN) { in tcp_xmit_early_reset()
2571 to = mp->b_rptr + ip_hdr_len - IPV6_HDR_LEN; in tcp_xmit_early_reset()
2572 ovbcopy(ip6h, to, IPV6_HDR_LEN); in tcp_xmit_early_reset()
2573 mp->b_rptr += ip_hdr_len - IPV6_HDR_LEN; in tcp_xmit_early_reset()
2574 ip_hdr_len = IPV6_HDR_LEN; in tcp_xmit_early_reset()
[all …]
/onnv-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.c330 hdrlen = IPV6_HDR_LEN; in interpret_ipv6()
/onnv-gate/usr/src/uts/common/io/mac/
H A Dmac_util.c492 if (((uchar_t *)ip6h + IPV6_HDR_LEN) > endptr) in mac_ip_hdr_length_v6()
495 length = IPV6_HDR_LEN; in mac_ip_hdr_length_v6()
1020 if (((unsigned char *)ip6hp + IPV6_HDR_LEN > mp->b_wptr) || in mac_pkt_hash()
H A Dmac_sched.c775 if (MBLKL(mp) < IPV6_HDR_LEN) { in mac_rx_srs_long_fanout()
779 !pullupmsg(mp, IPV6_HDR_LEN)) { in mac_rx_srs_long_fanout()
788 ((unsigned char *)ip6h + IPV6_HDR_LEN > mp->b_wptr)) { in mac_rx_srs_long_fanout()
/onnv-gate/usr/src/uts/common/inet/
H A Dip6.h43 #define IPV6_HDR_LEN 40 macro
/onnv-gate/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.c506 uint_t length = IPV6_HDR_LEN; in get_port_info()
/onnv-gate/usr/src/uts/common/sys/ib/clients/ibd/
H A Dibd.h421 + IPV6_HDR_LEN + sizeof (nd_neighbor_advert_t)); \
/onnv-gate/usr/src/uts/common/ipp/flowacct/
H A Dflowacct.c129 uint_t length = IPV6_HDR_LEN; in flowacct_port_info()
/onnv-gate/usr/src/uts/common/inet/udp/
H A Dudp.c305 #define UDP_MAXPACKET_IPV6 (IP_MAXPACKET - UDPH_SIZE - IPV6_HDR_LEN)
1072 iph_hdr_length = IPV6_HDR_LEN; in udp_icmp_error_ipv6()
2057 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == ixa->ixa_pktlen); in udp_prepend_hdr()
3262 ip6h->ip6_plen = htons((uint16_t)(pktlen - IPV6_HDR_LEN)); in udp_prepend_header_template()
/onnv-gate/usr/src/uts/common/io/ib/clients/ibd/
H A Dibd.c7112 if (MBLKL(mp) < sizeof (ib_header_info_t) + IPV6_HDR_LEN) { in ibd_send()
7113 if (!pullupmsg(mp, IPV6_HDR_LEN + in ibd_send()
7132 IPV6_HDR_LEN + len + 4) { in ibd_send()
7134 IPV6_HDR_LEN + len + 4)) { in ibd_send()

12