Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6_input.c198 ip6_t *ip6h; in ip_input_common_v6() local
357 (*ill->ill_inputfn)(mp, ip6h, &ip6h->ip6_dst, &iras, &rtc); in ip_input_common_v6()
569 ip6h, __dtrace_ipsr_ill_t *, ill, ipha_t *, NULL, ip6_t *, ip6h, in ill_input_short_v6()
1222 if (ip6h == NULL) { in ire_recv_noaccept_v6()
2074 if (ip6h == NULL) in ip_fanout_v6()
2266 connp = sctp_fanout(&ip6h->ip6_src, &ip6h->ip6_dst, ports, in ip_fanout_v6()
2444 if (ip6h == NULL) in ip_fanout_v6()
2454 if (ip6h == NULL) in ip_fanout_v6()
2517 if (ip6h == NULL) in ip_fanout_v6()
2618 if (ip6h == NULL) in ip_fanout_v6()
[all …]
H A Dip6_output.c109 ip6_t *ip6h; in ip_output_simple_v6() local
126 ip6h = (ip6_t *)mp->b_rptr; in ip_output_simple_v6()
150 firsthop = ip6h->ip6_dst; in ip_output_simple_v6()
299 ip6h->ip6_src = src; in ip_output_simple_v6()
402 ip6h, __dtrace_ipsr_ill_t *, ill, ipha_t *, NULL, ip6_t *, ip6h, in ire_send_local_v6()
426 ip6h = (ip6_t *)mp->b_rptr; in ire_send_local_v6()
493 ip6h, __dtrace_ipsr_ill_t *, ill, ipha_t *, NULL, ip6_t *, ip6h, in ire_send_local_v6()
543 if (ip6h->ip6_hops > 1) { in multirt_check_v6()
546 ip6h->ip6_hops = 1; in multirt_check_v6()
984 ip6h->ip6_hops = 1; in ire_send_wire_v6()
[all …]
H A Dip6.c234 if (ip6h == NULL) { in icmp_inbound_v6()
467 ip6h->ip6_src = ip6h->ip6_dst; in icmp_send_reply_v6()
1254 ip6_t *ip6h; in icmp_pkt_v6() local
1479 ip6_t *ip6h; in icmp_pkt_err_ok_v6() local
2390 ip6_t *ip6h; in ip_fanout_send_icmp_v6() local
3048 ip6_t *ip6h; in ipsec_needs_processing_v6() local
3280 prev_nexthdr_offset = (uint8_t *)&ip6h->ip6_nxt - (uint8_t *)ip6h; in ip_input_fragment_v6()
4236 prev_nexthdr_offset = (uint8_t *)&ip6h->ip6_nxt - (uint8_t *)ip6h; in ip_fraghdr_add_v6()
4473 ip6h->ip6_vcf = in ip_build_hdrs_v6()
4479 ip6h->ip6_vcf = IPV6_TCLASS_FLOW(ip6h->ip6_vcf, in ip_build_hdrs_v6()
[all …]
H A Dtn_ipopt.c217 const ip6_t *ip6h; in tsol_get_option_v6() local
1180 ip6hbh = (uchar_t *)&ip6h[1]; in tsol_remove_secopt_v6()
1210 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - hbhlen); in tsol_remove_secopt_v6()
1211 ip6h->ip6_nxt = next_hdr; in tsol_remove_secopt_v6()
1242 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - delta); in tsol_remove_secopt_v6()
1280 ip6hbh = (uchar_t *)&ip6h[1]; in tsol_prepend_option_v6()
1315 ip6hbh[0] = ip6h->ip6_nxt; in tsol_prepend_option_v6()
1336 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) + delta); in tsol_prepend_option_v6()
1372 ip6_t *ip6h; in tsol_check_label_v6() local
1396 ip6h = (ip6_t *)mp->b_rptr; in tsol_check_label_v6()
[all …]
H A Dip_sadb.c630 src_ptr = (uint32_t *)&ip6h->ip6_src; in ipsec_outbound_sa()
666 ip6_t *ip6h; in ipsec_inbound_ah_sa() local
680 ip6h = (ip6_t *)mp->b_rptr; in ipsec_inbound_ah_sa()
708 ip6h = (ip6_t *)mp->b_rptr; in ipsec_inbound_ah_sa()
716 src_ptr = (uint32_t *)&ip6h->ip6_src; in ipsec_inbound_ah_sa()
717 dst_ptr = (uint32_t *)&ip6h->ip6_dst; in ipsec_inbound_ah_sa()
791 ip6_t *ip6h; in ipsec_inbound_esp_sa() local
807 ip6h = (ip6_t *)data_mp->b_rptr; in ipsec_inbound_esp_sa()
843 ip6h = (ip6_t *)data_mp->b_rptr; in ipsec_inbound_esp_sa()
844 src_ptr = (uint32_t *)&ip6h->ip6_src; in ipsec_inbound_esp_sa()
[all …]
H A Dspd.c1632 ip6h); in ipsec_check_ipsecin_action()
1660 ip6h); in ipsec_check_ipsecin_action()
1702 ip6h); in ipsec_check_ipsecin_action()
2255 if (ip6h != NULL) { in ipsec_inbound_accept_clear()
2502 ipha, ip6h); in ipsec_check_inbound_policy()
2709 if (ip6h != NULL) { in ipsec_init_inbound_sel()
2833 if (ip6h != NULL) { in ipsec_init_outbound_ports()
5276 ip6_t *ip6h = NULL; in ipsec_tun_outbound() local
6269 ip6_t *ip6h = NULL; in ipsec_fragcache_add() local
6389 &ip6h->ip6_src) && in ipsec_fragcache_add()
[all …]
H A Dipdrop.c325 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ip_drop_input() local
328 ip6h, __dtrace_ipsr_ill_t *, ill, ipha_t *, NULL, in ip_drop_input()
329 ip6_t *, ip6h, int, 0); in ip_drop_input()
347 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ip_drop_output() local
350 ip6h, __dtrace_ipsr_ill_t *, ill, ipha_t *, NULL, in ip_drop_output()
351 ip6_t *, ip6h, int, 0); in ip_drop_output()
H A Dipsecah.c1879 ip6_t *ip6h, *oip6h; in ah_icmp_error_v6() local
1907 ip6h = (ip6_t *)(icmp6 + 1); in ah_icmp_error_v6()
1920 (uint32_t *)&ip6h->ip6_src, (uint32_t *)&ip6h->ip6_dst, AF_INET6); in ah_icmp_error_v6()
1963 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - ah_length); in ah_icmp_error_v6()
2497 addr = &ip6h->ip6_dst; in ah_log_bad_auth()
2899 ip6_t *ip6h; in ah_process_ip_options_v6() local
2952 bzero(ip6h, sizeof (ip6_t)); in ah_process_ip_options_v6()
3483 ip6_t *ip6h; in ah_auth_in_done() local
3548 addr = &ip6h->ip6_dst; in ah_auth_in_done()
3630 nexthdr = &ip6h->ip6_nxt; in ah_auth_in_done()
[all …]
H A Dtnet.c693 const ip6_t *ip6h; in tsol_get_pkt_label() local
711 src = &ip6h->ip6_src; in tsol_get_pkt_label()
778 proto = ip6h->ip6_nxt; in tsol_get_pkt_label()
1130 const ip6_t *ip6h; in tsol_can_reply_error() local
1456 ip6_t *ip6h; in tsol_ip_forward() local
1481 ip6h = NULL; in tsol_ip_forward()
1495 psrc = &ip6h->ip6_src; in tsol_ip_forward()
1496 pdst = &ip6h->ip6_dst; in tsol_ip_forward()
1497 proto = ip6h->ip6_nxt; in tsol_ip_forward()
1744 ip6_t *ip6h; in tsol_pmtu_adjust() local
[all …]
H A Dipclassifier.c1674 ip6_t *ip6h; in ipcl_classify_v6() local
1684 ip6h = (ip6_t *)mp->b_rptr; in ipcl_classify_v6()
1699 ip6h->ip6_src, ip6h->ip6_dst, ports) && in ipcl_classify_v6()
1730 ip6h->ip6_dst, lport) && in ipcl_classify_v6()
1767 fport, ip6h->ip6_src) && in ipcl_classify_v6()
1799 &ip6h->ip6_dst, ipst)); in ipcl_classify_v6()
1839 dst = (const void *)&ip6h->ip6_dst; in ipcl_classify_raw()
1858 ip6h->ip6_src, ip6h->ip6_dst, ports)) in ipcl_classify_raw()
1868 ip6h->ip6_dst, lport)) in ipcl_classify_raw()
2464 ip6h->ip6_dst, ip6h->ip6_src, ports) && in ipcl_conn_tcp_lookup_reversed_ipv6()
[all …]
H A Dip_output.c426 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ip_verify_src() local
537 ip6_t *ip6h = NULL; in ip_verify_nce() local
542 ip6h = (ip6_t *)mp->b_rptr; in ip_verify_nce()
2117 (*ill->ill_inputfn)(mp, ip6h, &ip6h->ip6_dst, &iras, &rtc); in ip_postfrag_loopback()
2184 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ip_postfrag_loopcheck() local
2186 if (ip6h->ip6_hops == 0) { in ip_postfrag_loopcheck()
2431 ip6_t *ip6h = NULL; in ip_output_process_local() local
2504 ip6h = (ip6_t *)mp->b_rptr; in ip_output_process_local()
2530 ip6h, int, 1); in ip_output_process_local()
2558 ip6h, int, 1); in ip_output_process_local()
[all …]
H A Digmp.c2079 if (ip6h->ip6_hlim != 1) { in mld_input()
2135 &ip6h->ip6_src)) { in mld_input()
2450 ip6_t *ip6h; in mld_sendpkt() local
2475 ip6h = (ip6_t *)mp->b_rptr; in mld_sendpkt()
2498 ip6h->ip6_hops = MLD_HOP_LIMIT; in mld_sendpkt()
2502 ip6h->ip6_dst = *v6addr; in mld_sendpkt()
2504 ip6h->ip6_src = ipv6_all_zeros; in mld_sendpkt()
2528 ip6_t *ip6h; in mldv2_sendrpt() local
2632 ip6h = (ip6_t *)mp->b_rptr; in mldv2_sendrpt()
2641 ip6h->ip6_hops = MLD_HOP_LIMIT; in mldv2_sendrpt()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.inet_ntop.d40 struct in6_addr *ip6h; variable
67 ip6h = this->buf6h;
102 ip6h->_S6_un._S6_u8[0] = 0xff;
103 ip6h->_S6_un._S6_u8[1] = 0xff;
104 ip6h->_S6_un._S6_u8[2] = 0xff;
105 ip6h->_S6_un._S6_u8[3] = 0xff;
106 ip6h->_S6_un._S6_u8[4] = 0xff;
107 ip6h->_S6_un._S6_u8[5] = 0xff;
108 ip6h->_S6_un._S6_u8[6] = 0xff;
109 ip6h->_S6_un._S6_u8[7] = 0xff;
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c265 ip6_t *ip6h; in check_reply6() local
451 (void *)&ip6h->ip6_dst, in check_reply6()
483 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
560 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
574 ((char *)ip6h + ip6hdr_len); in check_reply6()
595 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
617 ((char *)ip6h + ip6hdr_len); in check_reply6()
638 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
666 ((char *)ip6h + ip6hdr_len); in check_reply6()
958 endptr = ((uint8_t *)ip6h) + pkt_len; in IPv6_hdrlen()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_shutdown.c230 ip6_t *ip6h = NULL; in sctp_ootb_shutdown_ack() local
293 ip6h = (ip6_t *)mp->b_rptr; in sctp_ootb_shutdown_ack()
299 ovbcopy(ip6h, to, IPV6_HDR_LEN); in sctp_ootb_shutdown_ack()
302 ip6h = (ip6_t *)mp->b_rptr; in sctp_ootb_shutdown_ack()
303 ip6h->ip6_nxt = IPPROTO_SCTP; in sctp_ootb_shutdown_ack()
306 v6addr = ip6h->ip6_src; in sctp_ootb_shutdown_ack()
307 ip6h->ip6_src = ip6h->ip6_dst; in sctp_ootb_shutdown_ack()
308 ip6h->ip6_dst = v6addr; in sctp_ootb_shutdown_ack()
309 ip6h->ip6_hops = (uchar_t)sctps->sctps_ipv6_hoplimit; in sctp_ootb_shutdown_ack()
312 if (IN6_IS_ADDR_LINKSCOPE(&ip6h->ip6_dst)) { in sctp_ootb_shutdown_ack()
[all …]
H A Dsctp_error.c329 ip6_t *ip6h = NULL; in sctp_ootb_send_abort() local
383 ip6h = (ip6_t *)mp->b_rptr; in sctp_ootb_send_abort()
389 ovbcopy(ip6h, to, IPV6_HDR_LEN); in sctp_ootb_send_abort()
392 ip6h = (ip6_t *)mp->b_rptr; in sctp_ootb_send_abort()
393 ip6h->ip6_nxt = IPPROTO_SCTP; in sctp_ootb_send_abort()
396 ip6h->ip6_plen = htons(ahlen - IPV6_HDR_LEN); in sctp_ootb_send_abort()
397 v6addr = ip6h->ip6_src; in sctp_ootb_send_abort()
398 ip6h->ip6_src = ip6h->ip6_dst; in sctp_ootb_send_abort()
399 ip6h->ip6_dst = v6addr; in sctp_ootb_send_abort()
403 if (IN6_IS_ADDR_LINKSCOPE(&ip6h->ip6_dst)) { in sctp_ootb_send_abort()
[all …]
H A Dsctp_common.c394 ip6_t *ip6h; in sctp_set_iplen() local
408 ip6h = (ip6_t *)mp->b_rptr; in sctp_set_iplen()
925 ip6_t *ip6h; in sctp_build_hdrs() local
1009 ip6h = (ip6_t *)hdrs; in sctp_build_hdrs()
1010 sctp->sctp_ip6h = ip6h; in sctp_build_hdrs()
1012 ip6h->ip6_src = v6src; in sctp_build_hdrs()
1013 ip6h->ip6_dst = v6dst; in sctp_build_hdrs()
1261 ip6_t *ip6h; in sctp_get_addrparams() local
1286 ip6h = (ip6_t *)pkt->b_rptr; in sctp_get_addrparams()
1518 ip6_t *ip6h; in sctp_secure_restart_check() local
[all …]
H A Dsctp_conn.c140 ip6_t *ip6h; in sctp_conn_request() local
206 ip6h = (ip6_t *)mp->b_rptr; in sctp_conn_request()
210 ipha = (ipha_t *)ip6h; in sctp_conn_request()
214 laddr = ip6h->ip6_dst; in sctp_conn_request()
215 faddr = ip6h->ip6_src; in sctp_conn_request()
287 if (IN6_IS_ADDR_LINKLOCAL(&ip6h->ip6_src) || in sctp_conn_request()
288 IN6_IS_ADDR_LINKLOCAL(&ip6h->ip6_dst)) { in sctp_conn_request()
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.c507 ip6_t *ip6h = (ip6_t *)iph; in get_port_info() local
514 whereptr = ((uint8_t *)&ip6h[1]); in get_port_info()
516 nexthdrp = &ip6h->ip6_nxt; in get_port_info()
550 if (((uchar_t *)ip6h + length + in get_port_info()
556 up = (uint16_t *)((uchar_t *)ip6h + length); in get_port_info()
637 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in parse_packet6() local
641 sizeof (ip6h->ip6_src.s6_addr32)); in parse_packet6()
643 sizeof (ip6h->ip6_dst.s6_addr32)); in parse_packet6()
645 packet->proto = ip6h->ip6_nxt; in parse_packet6()
658 ip6h = (ip6_t *)mp->b_rptr; in parse_packet6()
[all …]
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_nat.c464 ip6_t *ip6h; in ilb_full_nat() local
466 ip6h = iph; in ilb_full_nat()
468 ip6h->ip6_src = info->nat_src; in ilb_full_nat()
469 ip6h->ip6_dst = info->nat_dst; in ilb_full_nat()
473 ip6h->ip6_src = info->vip; in ilb_full_nat()
474 ip6h->ip6_dst = info->src; in ilb_full_nat()
534 ip6_t *ip6h; in ilb_half_nat() local
536 ip6h = iph; in ilb_half_nat()
538 ip6h->ip6_dst = info->nat_dst; in ilb_half_nat()
541 ip6h->ip6_src = info->vip; in ilb_half_nat()
[all …]
/illumos-gate/usr/src/uts/common/ipp/flowacct/
H A Dflowacct.c128 ip6_t *ip6h = (ip6_t *)iph; in flowacct_port_info() local
136 whereptr = ((uint8_t *)&ip6h[1]); in flowacct_port_info()
138 nexthdrp = &ip6h->ip6_nxt; in flowacct_port_info()
172 if (((uchar_t *)ip6h + length + in flowacct_port_info()
232 ip6_t *ip6h; in flowacct_extract_header() local
268 ip6h = (ip6_t *)mp->b_rptr; in flowacct_extract_header()
270 sizeof (ip6h->ip6_src.s6_addr32)); in flowacct_extract_header()
272 sizeof (ip6h->ip6_dst.s6_addr32)); in flowacct_extract_header()
274 header->proto = ip6h->ip6_nxt; in flowacct_extract_header()
275 header->pktlen = ntohs(ip6h->ip6_plen) + in flowacct_extract_header()
[all …]
/illumos-gate/usr/src/common/inet/
H A Dinet_hash.c57 inet_pkthash_ip_hdr_length_v6(ip6_t *ip6h, uint8_t *endptr, in inet_pkthash_ip_hdr_length_v6() argument
68 if (((uchar_t *)ip6h + IPV6_HDR_LEN) > endptr) in inet_pkthash_ip_hdr_length_v6()
70 ASSERT(IPH_HDR_VERSION(ip6h) == IPV6_VERSION); in inet_pkthash_ip_hdr_length_v6()
72 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in inet_pkthash_ip_hdr_length_v6()
77 nexthdrp = &ip6h->ip6_nxt; in inet_pkthash_ip_hdr_length_v6()
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_protect.c887 hdrp = (uchar_t *)ip6h + hdrlen; in get_ra_info()
1310 if (get_dhcpv6_info(ip6h, end, &dh6) != 0) in intercept_dhcpv6_outbound()
1521 if (ip6h->ip6_hlim != 255) { in intercept_ra_inbound()
1693 ip6_t *ip6h = (ip6_t *)start; in mac_protect_intercept_dynamic_one() local
1701 intercept_ra_inbound(mcip, ip6h, end, ra); in mac_protect_intercept_dynamic_one()
1820 ip6_t *ip6h, uchar_t *end) in ipnospoof_check_ndp() argument
1822 icmp6_t *icmp_nd = (icmp6_t *)&ip6h[1]; in ipnospoof_check_ndp()
1833 if (ip6h->ip6_nxt != IPPROTO_ICMPV6) in ipnospoof_check_ndp()
1992 ip6_t *ip6h = (ip6_t *)start; in ipnospoof_check() local
2064 ip6_t *ip6h, uchar_t *end) in dhcpnospoof_check_v6() argument
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ip.c312 interpret_ipv6(int flags, const ip6_t *ip6h, int fraglen) in interpret_ipv6() argument
330 iplen = ntohs(ip6h->ip6_plen); in interpret_ipv6()
335 data = ((uint8_t *)ip6h) + hdrlen; in interpret_ipv6()
337 proto = ip6h->ip6_nxt; in interpret_ipv6()
339 src_name = addrtoname(AF_INET6, &ip6h->ip6_src); in interpret_ipv6()
340 dst_name = addrtoname(AF_INET6, &ip6h->ip6_dst); in interpret_ipv6()
348 flow = ntohl(ip6h->ip6_vcf & IPV6_FLOWINFO_FLOWLABEL); in interpret_ipv6()
361 (void) inet_ntop(AF_INET6, &ip6h->ip6_src, src_addrstr, in interpret_ipv6()
363 (void) inet_ntop(AF_INET6, &ip6h->ip6_dst, dst_addrstr, in interpret_ipv6()
366 version = ntohl(ip6h->ip6_vcf) >> 28; in interpret_ipv6()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dip_cksum.c445 ip_hdr_length_nexthdr_v6(mblk_t *mp, ip6_t *ip6h, uint16_t *hdr_length_ptr, in ip_hdr_length_nexthdr_v6() argument
457 if (IPH_HDR_VERSION(ip6h) != IPV6_VERSION) in ip_hdr_length_nexthdr_v6()
460 whereptr = ((uint8_t *)&ip6h[1]); /* point to next hdr */ in ip_hdr_length_nexthdr_v6()
463 nexthdrp = &ip6h->ip6_nxt; in ip_hdr_length_nexthdr_v6()

123