Home
last modified time | relevance | path

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

123

/titanic_44/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.inet_ntop.d42 struct in6_addr *ip6h; variable
69 ip6h = this->buf6h;
104 ip6h->_S6_un._S6_u8[0] = 0xff;
105 ip6h->_S6_un._S6_u8[1] = 0xff;
106 ip6h->_S6_un._S6_u8[2] = 0xff;
107 ip6h->_S6_un._S6_u8[3] = 0xff;
108 ip6h->_S6_un._S6_u8[4] = 0xff;
109 ip6h->_S6_un._S6_u8[5] = 0xff;
110 ip6h->_S6_un._S6_u8[6] = 0xff;
111 ip6h->_S6_un._S6_u8[7] = 0xff;
[all …]
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip6_input.c198 ip6_t *ip6h; in ip_input_common_v6() local
295 ip6h = (ip6_t *)mp->b_rptr; in ip_input_common_v6()
296 if (!OK_32PTR(ip6h) || MBLKL(mp) < IPV6_HDR_LEN) { in ip_input_common_v6()
300 ip6h = (ip6_t *)mp->b_rptr; in ip_input_common_v6()
304 if (IPH_HDR_VERSION(ip6h) != IPV6_VERSION) { in ip_input_common_v6()
318 if (IN6_IS_ADDR_UNSPECIFIED(&ip6h->ip6_dst)) { in ip_input_common_v6()
346 iras.ira_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ip_input_common_v6()
356 (*ill->ill_inputfn)(mp, ip6h, &ip6h->ip6_dst, &iras, &rtc); in ip_input_common_v6()
411 ip6_t *ip6h = (ip6_t *)iph_arg; in ill_input_full_v6() local
439 ip6h = (ip6_t *)mp->b_rptr; in ill_input_full_v6()
[all …]
H A Dip6_output.c106 ip6_t *ip6h; in ip_output_simple_v6() local
123 ip6h = (ip6_t *)mp->b_rptr; in ip_output_simple_v6()
124 ASSERT(IPH_HDR_VERSION(ip6h) == IPV6_VERSION); in ip_output_simple_v6()
128 ixa->ixa_pktlen = ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN; in ip_output_simple_v6()
130 if (!ip_hdr_length_nexthdr_v6(mp, ip6h, &ixa->ixa_ip_hdr_length, in ip_output_simple_v6()
147 firsthop = ip6h->ip6_dst; in ip_output_simple_v6()
148 dst = ip_get_dst_v6(ip6h, mp, NULL); in ip_output_simple_v6()
153 ire = ip_select_route_v6(&firsthop, ip6h->ip6_src, ixa, NULL, &setsrc, in ip_output_simple_v6()
167 ip6h->ip6_src = ipv6_loopback; in ip_output_simple_v6()
172 error = (ire->ire_sendfn)(ire, mp, ip6h, ixa, in ip_output_simple_v6()
[all …]
H A Dip6.c200 ip6_t *ip6h; /* Outer header */ in icmp_inbound_v6() local
207 ip6h = (ip6_t *)mp->b_rptr; in icmp_inbound_v6()
212 if (IN6_IS_ADDR_MULTICAST(&ip6h->ip6_src)) { in icmp_inbound_v6()
231 ip6h = ip_pullup(mp, ip_hdr_length + ICMP6_MINLEN, ira); in icmp_inbound_v6()
232 if (ip6h == NULL) { in icmp_inbound_v6()
240 DTRACE_PROBE2(icmp__inbound__v6, ip6_t *, ip6h, icmp6_t *, icmp6); in icmp_inbound_v6()
271 if (IN6_IS_ADDR_MULTICAST(&ip6h->ip6_dst) && in icmp_inbound_v6()
293 ip6h = (ip6_t *)mp->b_rptr; in icmp_inbound_v6()
298 icmp_send_reply_v6(mp, ip6h, icmp6, ira); in icmp_inbound_v6()
402 ip6h = (ip6_t *)mp->b_rptr; in icmp_inbound_v6()
[all …]
H A Dtn_ipopt.c217 const ip6_t *ip6h; in tsol_get_option_v6() local
221 ip6h = (const ip6_t *)mp->b_rptr; in tsol_get_option_v6()
222 if (ip6h->ip6_nxt != IPPROTO_HOPOPTS) in tsol_get_option_v6()
224 ip6hbh = (const uchar_t *)&ip6h[1]; in tsol_get_option_v6()
1163 tsol_remove_secopt_v6(ip6_t *ip6h, int buflen) in tsol_remove_secopt_v6() argument
1177 if (ip6h->ip6_nxt != IPPROTO_HOPOPTS) in tsol_remove_secopt_v6()
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()
1240 (uchar_t *)ip6h + buflen - after_secopt); in tsol_remove_secopt_v6()
[all …]
H A Dip_sadb.c619 ip6_t *ip6h = (ip6_t *)data_mp->b_rptr; in ipsec_outbound_sa() local
621 ASSERT(IPH_HDR_VERSION(ip6h) == IPV6_VERSION); in ipsec_outbound_sa()
622 dst6 = ip_get_dst_v6(ip6h, data_mp, NULL); in ipsec_outbound_sa()
630 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
[all …]
H A Dspd.c101 struct ipsec_action_s *, ipha_t *ipha, ip6_t *ip6h, const char **,
1023 ipsec_log_policy_failure(int type, char *func_name, ipha_t *ipha, ip6_t *ip6h, in ipsec_log_policy_failure() argument
1032 ASSERT((ipha == NULL && ip6h != NULL) || in ipsec_log_policy_failure()
1033 (ip6h == NULL && ipha != NULL)); in ipsec_log_policy_failure()
1039 s = inet_ntop(AF_INET6, &ip6h->ip6_src, sbuf, sizeof (sbuf)); in ipsec_log_policy_failure()
1040 d = inet_ntop(AF_INET6, &ip6h->ip6_dst, dbuf, sizeof (dbuf)); in ipsec_log_policy_failure()
1566 ipha_t *ipha, ip6_t *ip6h, const char **reason, kstat_named_t **counter, in ipsec_check_ipsecin_action() argument
1576 ASSERT((ipha == NULL && ip6h != NULL) || in ipsec_check_ipsecin_action()
1577 (ip6h == NULL && ipha != NULL)); in ipsec_check_ipsecin_action()
1631 ip6h); in ipsec_check_ipsecin_action()
[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.c2034 ip6_t *ip6h, *oip6h; in ah_icmp_error_v6() local
2062 ip6h = (ip6_t *)(icmp6 + 1); in ah_icmp_error_v6()
2063 if (!ip_hdr_length_nexthdr_v6(mp, ip6h, &hdr_length, &nexthdrp)) { in ah_icmp_error_v6()
2070 ah = (ah_t *)((uint8_t *)ip6h + hdr_length); in ah_icmp_error_v6()
2072 isaf = OUTBOUND_BUCKET_V6(&ahstack->ah_sadb.s_v6, ip6h->ip6_dst); in ah_icmp_error_v6()
2075 (uint32_t *)&ip6h->ip6_src, (uint32_t *)&ip6h->ip6_dst, AF_INET6); in ah_icmp_error_v6()
2118 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - ah_length); in ah_icmp_error_v6()
2392 ah_fix_phdr_v6(ip6_t *ip6h, ip6_t *oip6h, boolean_t outbound, in ah_fix_phdr_v6() argument
2426 pi_opt = (uchar_t *)&ip6h[1]; in ah_fix_phdr_v6()
2434 prev_nexthdr = (uint8_t *)&ip6h->ip6_nxt; in ah_fix_phdr_v6()
[all …]
H A Dtnet.c693 const ip6_t *ip6h; in tsol_get_pkt_label() local
710 ip6h = (const ip6_t *)mp->b_rptr; in tsol_get_pkt_label()
711 src = &ip6h->ip6_src; in tsol_get_pkt_label()
778 proto = ip6h->ip6_nxt; in tsol_get_pkt_label()
1052 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in tsol_can_accept_raw() local
1054 src_rhtp = find_tpc(&ip6h->ip6_src, IPV6_VERSION, in tsol_can_accept_raw()
1058 dst_rhtp = find_tpc(&ip6h->ip6_dst, IPV6_VERSION, in tsol_can_accept_raw()
1130 const ip6_t *ip6h; in tsol_can_reply_error() local
1136 sizeof (*ipha) : sizeof (*ip6h))); in tsol_can_reply_error()
1161 ip6h = (const ip6_t *)mp->b_rptr; in tsol_can_reply_error()
[all …]
H A Dipclassifier.c1671 ip6_t *ip6h; in ipcl_classify_v6() local
1681 ip6h = (ip6_t *)mp->b_rptr; in ipcl_classify_v6()
1690 &ipst->ips_ipcl_conn_fanout[IPCL_CONN_HASH_V6(ip6h->ip6_src, in ipcl_classify_v6()
1696 ip6h->ip6_src, ip6h->ip6_dst, ports) && in ipcl_classify_v6()
1727 ip6h->ip6_dst, lport) && in ipcl_classify_v6()
1737 !tsol_receive_local(mp, &ip6h->ip6_dst, IPV6_VERSION, in ipcl_classify_v6()
1763 if (IPCL_UDP_MATCH_V6(connp, lport, ip6h->ip6_dst, in ipcl_classify_v6()
1764 fport, ip6h->ip6_src) && in ipcl_classify_v6()
1774 !tsol_receive_local(mp, &ip6h->ip6_dst, IPV6_VERSION, in ipcl_classify_v6()
1795 return (ipcl_iptun_classify_v6(&ip6h->ip6_src, in ipcl_classify_v6()
[all …]
H A Dip_output.c424 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ip_verify_src() local
427 if (IN6_IS_ADDR_UNSPECIFIED(&ip6h->ip6_src)) in ip_verify_src()
435 return (ip_laddr_verify_v6(&ip6h->ip6_src, ixa->ixa_zoneid, in ip_verify_src()
535 ip6_t *ip6h = NULL; in ip_verify_nce() local
540 ip6h = (ip6_t *)mp->b_rptr; in ip_verify_nce()
542 nce = ire_handle_condemned_nce(ixa->ixa_nce, ire, ipha, ip6h, B_TRUE); in ip_verify_nce()
2102 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ip_postfrag_loopback() local
2106 (*ill->ill_inputfn)(mp, ip6h, &ip6h->ip6_dst, &iras, &rtc); in ip_postfrag_loopback()
2173 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ip_postfrag_loopcheck() local
2175 if (ip6h->ip6_hops == 0) { in ip_postfrag_loopcheck()
[all …]
H A Digmp.c2060 ip6_t *ip6h = (ip6_t *)(mp->b_rptr); in mld_input() local
2074 if (!(IN6_IS_ADDR_LINKLOCAL(&ip6h->ip6_src))) { in mld_input()
2080 if (ip6h->ip6_hlim != 1) { in mld_input()
2090 mldlen = ntohs(ip6h->ip6_plen) - exthdr_length; in mld_input()
2136 &ip6h->ip6_src)) { in mld_input()
2145 inet_ntop(AF_INET6, &ip6h->ip6_src, in mld_input()
2451 ip6_t *ip6h; in mld_sendpkt() local
2476 ip6h = (ip6_t *)mp->b_rptr; in mld_sendpkt()
2477 ip6hbh = (struct ip6_hbh *)&ip6h[1]; in mld_sendpkt()
2496 ip6h->ip6_vcf = IPV6_DEFAULT_VERS_AND_FLOW; in mld_sendpkt()
[all …]
H A Dip_ndp.c1641 ip6_t *ip6h; in ndp_input_solicit() local
1652 ip6h = (ip6_t *)mp->b_rptr; in ndp_input_solicit()
1655 src = ip6h->ip6_src; in ndp_input_solicit()
1680 if (!IN6_IS_ADDR_MC_SOLICITEDNODE(&ip6h->ip6_dst)) { in ndp_input_solicit()
1686 &ip6h->ip6_dst); in ndp_input_solicit()
1731 if (!IN6_IS_ADDR_MULTICAST(&ip6h->ip6_dst)) in ndp_input_solicit()
1748 if (haddr == NULL && IN6_IS_ADDR_MULTICAST(&ip6h->ip6_dst)) { in ndp_input_solicit()
1870 ip6_t *ip6h; in ndp_input_advert() local
1878 ip6h = (ip6_t *)mp->b_rptr; in ndp_input_advert()
1883 if (IN6_IS_ADDR_MULTICAST(&ip6h->ip6_dst) && in ndp_input_advert()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c263 ip6_t *ip6h; in check_reply6() local
338 ip6h = (ip6_t *)((char *)icmp6 + ICMP6_MINLEN); in check_reply6()
354 ip6hdr_len = IPv6_hdrlen(ip6h, cc_left, &last_hdr); in check_reply6()
359 up = (struct udphdr *)((char *)ip6h + ip6hdr_len); in check_reply6()
449 (void *)&ip6h->ip6_dst, in check_reply6()
481 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
500 pr_name((char *)&ip6h->ip6_src, AF_INET6)); in check_reply6()
501 Printf(" to %s", pr_name((char *)&ip6h->ip6_dst, in check_reply6()
547 ip6h = (ip6_t *)((char *)icmp6 + ICMP6_MINLEN); in check_reply6()
556 ip6hdr_len = IPv6_hdrlen(ip6h, cc_left, &last_hdr); in check_reply6()
[all …]
/titanic_44/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()
305 ip6h->ip6_plen = htons(ixas.ixa_pktlen - IPV6_HDR_LEN); 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()
[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()
400 ip6h->ip6_hops = (uchar_t)sctps->sctps_ipv6_hoplimit; 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()
409 ip6h->ip6_plen = htons(sum - IPV6_HDR_LEN); in sctp_set_iplen()
923 ip6_t *ip6h; in sctp_build_hdrs() local
1007 ip6h = (ip6_t *)hdrs; in sctp_build_hdrs()
1008 sctp->sctp_ip6h = ip6h; in sctp_build_hdrs()
1010 ip6h->ip6_src = v6src; in sctp_build_hdrs()
1011 ip6h->ip6_dst = v6dst; in sctp_build_hdrs()
1014 ip6h->ip6_plen = htons(hdrs_len - IPV6_HDR_LEN); in sctp_build_hdrs()
1020 end = (uint8_t *)ip6h + ip_hdr_length; in sctp_build_hdrs()
[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()
/titanic_44/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
640 bcopy(ip6h->ip6_src.s6_addr32, packet->saddr.s6_addr32, in parse_packet6()
641 sizeof (ip6h->ip6_src.s6_addr32)); in parse_packet6()
642 bcopy(ip6h->ip6_dst.s6_addr32, packet->daddr.s6_addr32, in parse_packet6()
643 sizeof (ip6h->ip6_dst.s6_addr32)); in parse_packet6()
[all …]
/titanic_44/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 …]
H A Dilb.c1605 ilb_icmp_v6(ilb_stack_t *ilbs, ill_t *ill, mblk_t *mp, ip6_t *ip6h, in ilb_icmp_v6() argument
1610 if (!ilb_rule_match_vip_v6(ilbs, &ip6h->ip6_dst, &rule)) in ilb_icmp_v6()
1627 icmp6->icmp6_cksum = ip6h->ip6_plen; in ilb_icmp_v6()
1628 hdr_len = (char *)icmp6 - (char *)ip6h; in ilb_icmp_v6()
1630 ilb_pseudo_sum_v6(ip6h, IPPROTO_ICMPV6)); in ilb_icmp_v6()
1631 ip6h->ip6_vcf &= ~IPV6_FLOWINFO_FLOWLABEL; in ilb_icmp_v6()
1632 ip6h->ip6_hops = in ilb_icmp_v6()
1634 *lb_dst = ip6h->ip6_src; in ilb_icmp_v6()
1635 ip6h->ip6_src = ip6h->ip6_dst; in ilb_icmp_v6()
1636 ip6h->ip6_dst = *lb_dst; in ilb_icmp_v6()
[all …]
/titanic_44/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()
178 up = (uint16_t *)((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()
269 bcopy(ip6h->ip6_src.s6_addr32, header->saddr.s6_addr32, in flowacct_extract_header()
270 sizeof (ip6h->ip6_src.s6_addr32)); in flowacct_extract_header()
271 bcopy(ip6h->ip6_dst.s6_addr32, header->daddr.s6_addr32, in flowacct_extract_header()
[all …]
/titanic_44/usr/src/uts/common/io/mac/
H A Dmac_protect.c807 get_dhcpv6_info(ip6_t *ip6h, uchar_t *end, dhcpv6_message_t **dh6) in get_dhcpv6_info() argument
816 if (!mac_ip_hdr_length_v6(ip6h, end, &hdrlen, &proto, &frag)) in get_dhcpv6_info()
834 udph = (struct udphdr *)((uchar_t *)ip6h + hdrlen); in get_dhcpv6_info()
857 get_ra_info(ip6_t *ip6h, uchar_t *end, nd_router_advert_t **ra) in get_ra_info() argument
865 if (!mac_ip_hdr_length_v6(ip6h, end, &hdrlen, &proto, &frag)) in get_ra_info()
887 hdrp = (uchar_t *)ip6h + hdrlen; in get_ra_info()
1301 intercept_dhcpv6_outbound(mac_client_impl_t *mcip, ip6_t *ip6h, uchar_t *end) in intercept_dhcpv6_outbound() argument
1310 if (get_dhcpv6_info(ip6h, end, &dh6) != 0) in intercept_dhcpv6_outbound()
1515 intercept_ra_inbound(mac_client_impl_t *mcip, ip6_t *ip6h, uchar_t *end, in intercept_ra_inbound() argument
1521 if (ip6h->ip6_hlim != 255) { in intercept_ra_inbound()
[all …]
/titanic_44/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()
347 class = ntohl((ip6h->ip6_vcf & IPV6_FLOWINFO_TCLASS) >> 20); in interpret_ipv6()
348 flow = ntohl(ip6h->ip6_vcf & IPV6_FLOWINFO_FLOWLABEL); in interpret_ipv6()
358 src_name, dst_name, iplen, ip6h->ip6_hops, class, flow); in interpret_ipv6()
361 (void) inet_ntop(AF_INET6, &ip6h->ip6_src, src_addrstr, in interpret_ipv6()
[all …]

123