Lines Matching defs:outer4

2301 iptun_find_headers(mblk_t *mp, size_t outer_hlen, ipha_t **outer4,
2319 *outer4 = ipha;
2325 *outer4 = NULL;
2383 * And "outer4" will get set to IPv4(1), and inner[46] will correspond to
2391 ipha_t *outer4, *inner4;
2409 outer_hlen = iptun_find_headers(data_mp, 0, &outer4, &inner4, &outer6,
2419 ASSERT(outer4->ipha_protocol == IPPROTO_ENCAP ||
2420 outer4->ipha_protocol == IPPROTO_IPV6);
2423 inner4, inner6, outer4, outer6, -outer_hlen, iptun->iptun_ns);
2432 data_mp->b_rptr = (uint8_t *)outer4 + outer_hlen;
2564 ipha_t *outer4, *inner4;
2583 outer_hlen = iptun_find_headers(data_mp, 0, &outer4, &inner4, &outer6,
2585 ASSERT(outer4 == NULL);
2593 inner4, inner6, outer4, outer6, -outer_hlen, iptun->iptun_ns);
2722 iptun_in_6to4_ok(iptun_t *iptun, ipha_t *outer4, ip6_t *inner6)
2739 if (outer4->ipha_dst != v4addr)
2751 if (outer4->ipha_src != v4addr)
2778 ipha_t *outer4, *inner4;
2785 &outer4, &inner4, &outer6, &inner6);
2799 if (tsol_check_dest(ira->ira_tsl, (outer4 != NULL ?
2800 (void *)&outer4->ipha_dst : (void *)&outer6->ip6_dst),
2801 (outer4 != NULL ? IPV4_VERSION : IPV6_VERSION),
2807 inner4, inner6, outer4, outer6, outer_hlen, iptun->iptun_ns);
2814 !iptun_in_6to4_ok(iptun, outer4, inner6))
2844 iptun_out_process_6to4(iptun_t *iptun, ipha_t *outer4, ip6_t *inner6)
2864 if (outer4->ipha_src != v4addr)
2894 (struct in_addr *)&outer4->ipha_dst);
2897 if (outer4->ipha_dst == INADDR_ANY)
2907 outer4->ipha_dst = iptun->iptun_iptuns->iptuns_relay_rtr_addr;
2916 return (outer4->ipha_src != outer4->ipha_dst);
2924 iptun_out_process_ipv4(iptun_t *iptun, mblk_t *mp, ipha_t *outer4,
2932 ASSERT(outer4->ipha_protocol == IPPROTO_ENCAP);
2940 outer4->ipha_type_of_service =
2943 ASSERT(outer4->ipha_protocol == IPPROTO_IPV6 &&
2947 outer4->ipha_fragment_offset_and_flags |= IPH_DF_HTONS;
2949 outer4->ipha_fragment_offset_and_flags &= ~IPH_DF_HTONS;
2960 outer4->ipha_fragment_offset_and_flags = 0;
2967 ixa->ixa_ip_hdr_length = IPH_HDR_LENGTH(outer4);
2969 ixa->ixa_protocol = outer4->ipha_protocol;
2971 outer4->ipha_length = htons(ixa->ixa_pktlen);
3182 ipha_t *outer4, *inner4;
3194 (void) iptun_find_headers(mp, 0, &outer4, &inner4, &outer6, &inner6);
3195 ASSERT(outer4 != NULL);
3196 if (!iptun_out_process_6to4(iptun, outer4, inner6)) {
3221 if (connp->conn_v4lastdst == outer4->ipha_dst) {
3242 IN6_IPADDR_TO_V4MAPPED(outer4->ipha_dst, &v6dst);
3267 if (connp->conn_v4lastdst != outer4->ipha_dst) {
3357 ipha_t *outer4, *inner4;
3364 outer_hlen = iptun_find_headers(mp, 0, &outer4, &inner4, &outer6,
3375 if (outer4 != NULL) {
3376 mp = iptun_out_process_ipv4(iptun, mp, outer4, inner4, inner6,
3390 mp = ipsec_tun_outbound(mp, iptun, inner4, inner6, outer4,
3466 mp = ip_output_attach_policy(mp, outer4, outer6, NULL, ixa);