Lines Matching refs:iptun_t

50  * The contents of each iptun_t is protected by an iptun_mutex which is held
55 * iptun_t is deleted safely.
131 * iptun_hash is an iptun_t lookup table by link ID protected by
134 * so that an iptun_t cannot be deleted after a hash lookup has returned an
135 * iptun_t and before iptun_lock has been entered. As such, we use
158 static void iptun_task_dispatch(iptun_t *, iptun_task_t);
159 static int iptun_enter(iptun_t *);
160 static void iptun_exit(iptun_t *);
161 static void iptun_headergen(iptun_t *, boolean_t);
165 static void iptun_output(iptun_t *, mblk_t *);
166 static uint32_t iptun_get_maxmtu(iptun_t *, ip_xmit_attr_t *, uint32_t);
167 static uint32_t iptun_update_mtu(iptun_t *, ip_xmit_attr_t *, uint32_t);
168 static uint32_t iptun_get_dst_pmtu(iptun_t *, ip_xmit_attr_t *);
169 static void iptun_update_dst_pmtu(iptun_t *, ip_xmit_attr_t *);
170 static int iptun_setladdr(iptun_t *, const struct sockaddr_storage *);
172 static void iptun_output_6to4(iptun_t *, mblk_t *);
173 static void iptun_output_common(iptun_t *, ip_xmit_attr_t *, mblk_t *);
185 iptun_t *iptun = arg;
223 iptun_t *iptun = arg;
237 iptun_t *iptun = arg;
272 iptun_t *iptun = arg;
303 iptun_t *iptun = arg;
324 iptun_t *iptun = barg;
329 * We need to enter this iptun_t since we'll be modifying the outer
384 iptun_t *iptun = barg;
412 iptun_t *iptun = barg;
443 * Enter an iptun_t exclusively. This is essentially just a mutex, but we
448 iptun_enter(iptun_t *iptun)
464 iptun_exit(iptun_t *iptun)
473 iptun_enter_by_linkid(datalink_id_t linkid, iptun_t **iptun)
496 * iptun_t. The reason is that upcalls may try and enter the mac perimeter,
499 * the iptun_t. You can see the lock ordering problem with this; this will
502 * The safe way to do this is to enter the iptun_t in question and copy the
507 * delete the iptun_t and thus the mac handle required to issue the upcall.
509 * iptun_t. This flag is the condition associated with iptun_upcall_cv, which
513 * exited the iptun_t.
521 iptun_t *iptun;
591 iptun_task_dispatch(iptun_t *iptun, iptun_task_t iptun_task)
674 iptun_setladdr(iptun_t *iptun, const struct sockaddr_storage *laddr)
681 iptun_setraddr(iptun_t *iptun, const struct sockaddr_storage *raddr)
690 iptun_canbind(iptun_t *iptun)
705 iptun_bind(iptun_t *iptun)
852 iptun_unbind(iptun_t *iptun)
868 iptun_headergen(iptun_t *iptun, boolean_t update_mac)
958 iptun_set_sec_simple(iptun_t *iptun, const ipsec_req_t *ipsr)
1093 iptun_setparams(iptun_t *iptun, const iptun_kparams_t *ik)
1178 iptun_register(iptun_t *iptun)
1209 iptun_unregister(iptun_t *iptun)
1220 iptun_conn_create(iptun_t *iptun, netstack_t *ns, cred_t *credp)
1297 static iptun_t *
1300 iptun_t *iptun;
1310 iptun_free(iptun_t *iptun)
1340 * Remove from the AVL tree, AND release the reference iptun_t
1352 * the iptun_t.
1367 iptun_t *iptun = NULL;
1509 iptun_t *iptun = NULL;
1558 * Now that we know the fate of this iptun_t, we need to clear
1559 * IPTUN_DELETE_PENDING, and set IPTUN_CONDEMNED if the iptun_t is
1577 * lock in order to remove the iptun_t from the hash table.
1588 iptun_t *iptun;
1645 iptun_t *iptun;
1710 iptun_t *iptun;
1732 iptun_get_dst_pmtu(iptun_t *iptun, ip_xmit_attr_t *ixa)
1783 iptun_update_dst_pmtu(iptun_t *iptun, ip_xmit_attr_t *ixa)
1848 iptun_t *iptun = (iptun_t *)arg;
1874 iptun_get_ipsec_overhead(iptun_t *iptun)
1956 iptun_get_maxmtu(iptun_t *iptun, ip_xmit_attr_t *ixa, uint32_t new_pmtu)
2024 iptun_update_mtu(iptun_t *iptun, ip_xmit_attr_t *ixa, uint32_t new_pmtu)
2093 iptun_sendicmp_v4(iptun_t *iptun, icmph_t *icmp, ipha_t *orig_ipha, mblk_t *mp,
2150 iptun_sendicmp_v6(iptun_t *iptun, icmp6_t *icmp6, ip6_t *orig_ip6h, mblk_t *mp,
2203 iptun_icmp_error_v4(iptun_t *iptun, ipha_t *orig_ipha, mblk_t *mp,
2216 iptun_icmp_fragneeded_v4(iptun_t *iptun, uint32_t newmtu, ipha_t *orig_ipha,
2230 iptun_icmp_error_v6(iptun_t *iptun, ip6_t *orig_ip6h, mblk_t *mp,
2245 iptun_icmp_toobig_v6(iptun_t *iptun, uint32_t newmtu, ip6_t *orig_ip6h,
2387 iptun_input_icmp_v4(iptun_t *iptun, mblk_t *data_mp, icmph_t *icmph,
2560 iptun_input_icmp_v6(iptun_t *iptun, mblk_t *data_mp, icmp6_t *icmp6h,
2683 iptun_t *iptun = connp->conn_iptun;
2722 iptun_in_6to4_ok(iptun_t *iptun, ipha_t *outer4, ip6_t *inner6)
2776 iptun_t *iptun = connp->conn_iptun;
2844 iptun_out_process_6to4(iptun_t *iptun, ipha_t *outer4, ip6_t *inner6)
2924 iptun_out_process_ipv4(iptun_t *iptun, mblk_t *mp, ipha_t *outer4,
2980 iptun_insert_encaplimit(iptun_t *iptun, mblk_t *mp, ip6_t *outer6,
3021 iptun_out_process_ipv6(iptun_t *iptun, mblk_t *mp, ip6_t *outer6,
3105 iptun_output(iptun_t *iptun, mblk_t *mp)
3179 iptun_output_6to4(iptun_t *iptun, mblk_t *mp)
3352 iptun_output_common(iptun_t *iptun, ip_xmit_attr_t *ixa, mblk_t *mp)