Lines Matching defs:outer4
2299 iptun_find_headers(mblk_t *mp, size_t outer_hlen, ipha_t **outer4,
2317 *outer4 = ipha;
2323 *outer4 = NULL;
2381 * And "outer4" will get set to IPv4(1), and inner[46] will correspond to
2389 ipha_t *outer4, *inner4;
2407 outer_hlen = iptun_find_headers(data_mp, 0, &outer4, &inner4, &outer6,
2417 ASSERT(outer4->ipha_protocol == IPPROTO_ENCAP ||
2418 outer4->ipha_protocol == IPPROTO_IPV6);
2421 inner4, inner6, outer4, outer6, -outer_hlen, iptun->iptun_ns);
2430 data_mp->b_rptr = (uint8_t *)outer4 + outer_hlen;
2562 ipha_t *outer4, *inner4;
2581 outer_hlen = iptun_find_headers(data_mp, 0, &outer4, &inner4, &outer6,
2583 ASSERT(outer4 == NULL);
2591 inner4, inner6, outer4, outer6, -outer_hlen, iptun->iptun_ns);
2720 iptun_in_6to4_ok(iptun_t *iptun, ipha_t *outer4, ip6_t *inner6)
2737 if (outer4->ipha_dst != v4addr)
2749 if (outer4->ipha_src != v4addr)
2776 ipha_t *outer4, *inner4;
2783 &outer4, &inner4, &outer6, &inner6);
2797 if (tsol_check_dest(ira->ira_tsl, (outer4 != NULL ?
2798 (void *)&outer4->ipha_dst : (void *)&outer6->ip6_dst),
2799 (outer4 != NULL ? IPV4_VERSION : IPV6_VERSION),
2805 inner4, inner6, outer4, outer6, outer_hlen, iptun->iptun_ns);
2812 !iptun_in_6to4_ok(iptun, outer4, inner6))
2842 iptun_out_process_6to4(iptun_t *iptun, ipha_t *outer4, ip6_t *inner6)
2862 if (outer4->ipha_src != v4addr)
2892 (struct in_addr *)&outer4->ipha_dst);
2895 if (outer4->ipha_dst == INADDR_ANY)
2905 outer4->ipha_dst = iptun->iptun_iptuns->iptuns_relay_rtr_addr;
2914 return (outer4->ipha_src != outer4->ipha_dst);
2922 iptun_out_process_ipv4(iptun_t *iptun, mblk_t *mp, ipha_t *outer4,
2930 ASSERT(outer4->ipha_protocol == IPPROTO_ENCAP);
2938 outer4->ipha_type_of_service =
2941 ASSERT(outer4->ipha_protocol == IPPROTO_IPV6 &&
2945 outer4->ipha_fragment_offset_and_flags |= IPH_DF_HTONS;
2947 outer4->ipha_fragment_offset_and_flags &= ~IPH_DF_HTONS;
2958 outer4->ipha_fragment_offset_and_flags = 0;
2965 ixa->ixa_ip_hdr_length = IPH_HDR_LENGTH(outer4);
2967 ixa->ixa_protocol = outer4->ipha_protocol;
2969 outer4->ipha_length = htons(ixa->ixa_pktlen);
3180 ipha_t *outer4, *inner4;
3192 (void) iptun_find_headers(mp, 0, &outer4, &inner4, &outer6, &inner6);
3193 ASSERT(outer4 != NULL);
3194 if (!iptun_out_process_6to4(iptun, outer4, inner6)) {
3219 if (connp->conn_v4lastdst == outer4->ipha_dst) {
3240 IN6_IPADDR_TO_V4MAPPED(outer4->ipha_dst, &v6dst);
3265 if (connp->conn_v4lastdst != outer4->ipha_dst) {
3355 ipha_t *outer4, *inner4;
3362 outer_hlen = iptun_find_headers(mp, 0, &outer4, &inner4, &outer6,
3373 if (outer4 != NULL) {
3374 mp = iptun_out_process_ipv4(iptun, mp, outer4, inner4, inner6,
3388 mp = ipsec_tun_outbound(mp, iptun, inner4, inner6, outer4,
3464 mp = ip_output_attach_policy(mp, outer4, outer6, NULL, ixa);