Lines Matching refs:ira

736 ah_inbound_restart(mblk_t *mp, ip_recv_attr_t *ira)
742 ns = ira->ira_ill->ill_ipst->ips_netstack;
746 mp = ipsec_inbound_ah_sa(mp, ira, &ah);
751 ASSERT(ira->ira_flags & IRAF_IPSEC_SECURE);
752 ASSERT(ira->ira_ipsec_ah_sa != NULL);
754 mp = ira->ira_ipsec_ah_sa->ipsa_input_func(mp, ah, ira);
762 ip_input_post_ipsec(mp, ira);
2032 ah_icmp_error_v6(mblk_t *mp, ip_recv_attr_t *ira, ipsecah_stack_t *ahstack)
2054 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2065 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2090 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2112 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2134 ah_icmp_error_v4(mblk_t *mp, ip_recv_attr_t *ira, ipsecah_stack_t *ahstack)
2169 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2199 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2238 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2263 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2302 ipsecah_icmp_error(mblk_t *data_mp, ip_recv_attr_t *ira)
2304 netstack_t *ns = ira->ira_ill->ill_ipst->ips_netstack;
2307 if (ira->ira_flags & IRAF_IS_IPV4)
2308 return (ah_icmp_error_v4(data_mp, ira, ahstack));
2310 return (ah_icmp_error_v6(data_mp, ira, ahstack));
2632 ah_log_bad_auth(mblk_t *mp, ip_recv_attr_t *ira, ipsec_crypto_t *ic)
2634 boolean_t isv4 = (ira->ira_flags & IRAF_IS_IPV4);
2635 ipsa_t *assoc = ira->ira_ipsec_ah_sa;
2638 netstack_t *ns = ira->ira_ill->ill_ipst->ips_netstack;
2667 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
2865 ah_submit_req_inbound(mblk_t *phdr_mp, ip_recv_attr_t *ira,
2877 ahstack = ira->ira_ill->ill_ipst->ips_netstack->netstack_ipsecah;
2884 if ((mp = ip_recv_attr_to_mblk(ira)) == NULL ||
2886 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
2888 ira->ira_ill);
2926 phdr_mp = ah_auth_in_done(phdr_mp, ira, ic);
2940 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
2941 ah_log_bad_auth(phdr_mp, ira, ic);
2954 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
2955 ah_crypto_failed(phdr_mp, B_TRUE, kef_rc, ira->ira_ill, ahstack);
3521 ah_inbound(mblk_t *data_mp, void *arg, ip_recv_attr_t *ira)
3524 ipsa_t *assoc = ira->ira_ipsec_ah_sa;
3529 netstack_t *ns = ira->ira_ill->ill_ipst->ips_netstack;
3549 ip_drop_packet(data_mp, B_TRUE, ira->ira_ill,
3552 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
3580 ip_drop_packet(data_mp, B_TRUE, ira->ira_ill,
3583 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
3592 if (ira->ira_flags & IRAF_IS_IPV4) {
3602 ip_drop_packet(data_mp, B_TRUE, ira->ira_ill,
3603 ((ira->ira_flags & IRAF_IS_IPV4) ?
3607 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
3616 return (ah_submit_req_inbound(data_mp, ira, length_to_skip, ah_offset,
3627 ah_auth_in_done(mblk_t *phdr_mp, ip_recv_attr_t *ira, ipsec_crypto_t *ic)
3642 netstack_t *ns = ira->ira_ill->ill_ipst->ips_netstack;
3646 isv4 = (ira->ira_flags & IRAF_IS_IPV4);
3647 assoc = ira->ira_ipsec_ah_sa;
3651 ip_drop_packet(phdr_mp, B_TRUE, ira->ira_ill,
3654 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
3660 ip_drop_packet(phdr_mp, B_TRUE, ira->ira_ill,
3663 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
3833 if (!ip_recv_attr_replace_label(ira, assoc->ipsa_tsl)) {
3834 ip_drop_packet(mp, B_TRUE, ira->ira_ill,
3836 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
3846 sadb_buf_pkt(assoc, mp, ira);
3854 ip_drop_packet(phdr_mp, B_TRUE, ira->ira_ill, counter,
3856 BUMP_MIB(ira->ira_ill->ill_ip_mib, ipIfStatsInDiscards);
3986 uint32_t spi, void *addr, int af, ip_recv_attr_t *ira)
3988 netstack_t *ns = ira->ira_ill->ill_ipst->ips_netstack;
3997 ip_drop_packet(mp, B_TRUE, ira->ira_ill,