Home
last modified time | relevance | path

Searched refs:netstack_t (Results 1 – 25 of 95) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/os/
H A Dnetstack.c83 static netstack_t *netstack_head;
114 typedef boolean_t applyfn_t(kmutex_t *, netstack_t *, int);
117 static void apply_all_modules(netstack_t *, applyfn_t *);
118 static void apply_all_modules_reverse(netstack_t *, applyfn_t *);
119 static boolean_t netstack_apply_create(kmutex_t *, netstack_t *, int);
120 static boolean_t netstack_apply_shutdown(kmutex_t *, netstack_t *, int);
121 static boolean_t netstack_apply_destroy(kmutex_t *, netstack_t *, int);
122 static boolean_t wait_for_zone_creator(netstack_t *, kmutex_t *);
123 static boolean_t wait_for_nms_inprogress(netstack_t *, nm_state_t *,
126 static void netstack_hold_locked(netstack_t *);
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Dipsec_impl.h111 extern boolean_t keysock_extended_reg(netstack_t *);
112 extern uint32_t keysock_next_seq(netstack_t *);
418 netstack_t *ipsp_netstack; /* No netstack_hold */
731 netstack_t *ipsec_netstack; /* Common netstack */
854 netstack_t *);
859 ip6_t *, ip_recv_attr_t *, netstack_t *ns);
868 netstack_t *);
879 extern void ipsec_polhead_free(ipsec_policy_head_t *, netstack_t *);
881 netstack_t *);
883 extern ipsec_policy_head_t *ipsec_system_policy(netstack_t *);
[all …]
H A Dsadb.h317 netstack_t *ipsa_netstack; /* Does not have a netstack_hold */
734 void sadbp_init(const char *name, sadbp_t *, int, int, netstack_t *);
735 void sadbp_flush(sadbp_t *, netstack_t *);
736 void sadbp_destroy(sadbp_t *, netstack_t *);
751 int sadb_addrcheck(queue_t *, mblk_t *, sadb_ext_t *, uint_t, netstack_t *);
752 boolean_t sadb_addrfix(keysock_in_t *, queue_t *, mblk_t *, netstack_t *);
760 netstack_t *, sadbp_t *);
764 int *, queue_t *, int (*)(mblk_t *, keysock_in_t *, int *, netstack_t *),
765 netstack_t *, uint8_t);
774 void sadb_destroy_acquire(ipsacq_t *, netstack_t *);
[all …]
H A Dtunables.c76 mod_set_boolean(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_boolean()
101 mod_get_boolean(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_boolean()
150 mod_set_uint32(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_uint32()
167 mod_set_aligned(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_aligned()
190 mod_get_uint32(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_uint32()
238 mod_set_buf_prop(mod_prop_info_t ptbl[], netstack_t *stack, cred_t *cr, in mod_set_buf_prop()
268 mod_get_buf_prop(mod_prop_info_t ptbl[], netstack_t *stack, in mod_get_buf_prop()
289 mod_get_allprop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_allprop()
346 mod_set_extra_privports(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_extra_privports()
464 mod_get_extra_privports(netstack_t *stack, mod_prop_info_t *pinfo, in mod_get_extra_privports()
H A Dtunables.h92 typedef int mod_prop_setf_t(netstack_t *, cred_t *, mod_prop_info_t *,
94 typedef int mod_prop_getf_t(netstack_t *, mod_prop_info_t *, const char *,
166 extern int mod_set_buf_prop(mod_prop_info_t[], netstack_t *,
168 extern int mod_get_buf_prop(mod_prop_info_t[], netstack_t *,
H A Dkeysock.h51 netstack_t *keystack_netstack; /* Common netstack */
155 extern int keysock_plumb_ipsec(netstack_t *);
H A Dipnet.h161 netstack_t *ipnet_ns; /* netstack of zone we were opened in */
197 netstack_t *ips_netstack;
H A Dip_netinfo.h40 extern void ip_net_init(ip_stack_t *, netstack_t *);
H A Dtcp_stack.h47 netstack_t *tcps_netstack; /* Common netstack */
H A Dspdsock.h38 netstack_t *spds_netstack; /* Common netstack */
/illumos-gate/usr/src/uts/common/sys/
H A Dnetstack.h204 typedef struct netstack netstack_t; typedef
221 void *(*nr_create)(netstackid_t, netstack_t *);
238 extern void netstack_hold(netstack_t *);
239 extern netstack_t *netstack_hold_if_active(netstack_t *);
240 extern void netstack_rele(netstack_t *);
241 extern netstack_t *netstack_find_by_cred(const cred_t *);
242 extern netstack_t *netstack_find_by_stackid(netstackid_t);
243 extern netstack_t *netstack_find_by_zoneid(zoneid_t);
247 extern zoneid_t netstack_get_zoneid(netstack_t *);
250 extern netstack_t *netstack_get_current(void);
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dnetstack.c57 netstack_t nss; in netstack_walk_step()
62 if (mdb_vread(&nss, sizeof (netstack_t), wsp->walk_addr) == -1) { in netstack_walk_step()
81 netstack_t nss; in netstack()
125 netstackid_lookup_cb(uintptr_t addr, const netstack_t *ns, void *arg) in netstackid_lookup_cb()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c53 tcp_set_1948phrase(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_set_1948phrase()
72 tcp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo, in tcp_listener_conf_get()
116 tcp_listener_conf_add(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_listener_conf_add()
165 tcp_listener_conf_del(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_listener_conf_del()
194 tcp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_set_buf_prop()
202 tcp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in tcp_get_buf_prop()
215 tcp_smallest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_smallest_anon_set()
233 tcp_largest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_largest_anon_set()
251 tcp_set_cc_algorithm(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_set_cc_algorithm()
287 tcp_get_cc_algorithm(netstack_t *stack, mod_prop_info_t *pinfo, in tcp_get_cc_algorithm()
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp_tunables.c34 udp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_set_buf_prop()
42 udp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in udp_get_buf_prop()
55 udp_smallest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_smallest_anon_set()
73 udp_largest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_largest_anon_set()
/illumos-gate/usr/src/uts/common/inet/iptun/
H A Diptun_impl.h113 netstack_t *iptun_ns;
168 netstack_t *iptuns_netstack; /* Common netstack */
187 extern int iptun_set_6to4relay(netstack_t *, ipaddr_t);
188 extern void iptun_get_6to4relay(netstack_t *, ipaddr_t *);
H A Diptun_ctl.c71 netstack_t *ns = netstack_find_by_cred(cred); in iptun_ioc_set_6to4relay()
85 netstack_t *ns = netstack_find_by_cred(cred); in iptun_ioc_get_6to4relay()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_tunables.c49 ip_set_forwarding(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in ip_set_forwarding()
99 ip_get_forwarding(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in ip_get_forwarding()
161 ip_set_debug(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in ip_set_debug()
183 ip_get_debug(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in ip_get_debug()
213 ip_set_cgtp_filter(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in ip_set_cgtp_filter()
270 ip_get_mtu(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in ip_get_mtu()
357 ip_set_src_multihoming(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in ip_set_src_multihoming()
378 ip_set_hostmodel(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in ip_set_hostmodel()
451 ip_get_hostmodel(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in ip_get_hostmodel()
H A Dip_netinfo.c253 ip_net_init(ip_stack_t *ipst, netstack_t *ns) in ip_net_init()
670 netstack_t *ns; in ip_getmtu()
683 netstack_t *ns; in ipv6_getmtu()
732 netstack_t *ns; in ip_getpmtuenabled()
745 netstack_t *ns; in ip_phygetnext()
758 netstack_t *ns; in ipv6_phygetnext()
771 netstack_t *ns; in ip_phylookup()
784 netstack_t *ns; in ipv6_phylookup()
819 netstack_t *ns; in ip_lifgetnext()
833 netstack_t *ns; in ipv6_lifgetnext()
[all …]
H A Dspd.c80 netstack_t *);
82 ipha_t *, ip6_t *, uint64_t, ip_recv_attr_t *, netstack_t *);
86 static void ipsid_init(netstack_t *);
87 static void ipsid_fini(netstack_t *);
105 kstat_named_t **, netstack_t *);
107 static void ipsec_prov_update_callback_stack(uint32_t, void *, netstack_t *);
367 netstack_t *ns = ipss->ipsec_netstack; in ipsec_stack_fini()
478 boolean_t global_cleanup, netstack_t *ns) in ipsec_alloc_table()
501 ipsec_alloc_tables(int kmflag, netstack_t *ns) in ipsec_alloc_tables()
589 ipsec_stack_init(netstackid_t stackid, netstack_t *ns) in ipsec_stack_init()
[all …]
H A Dipsecesp.c112 static void *ipsecesp_stack_init(netstackid_t stackid, netstack_t *ns);
115 static void esp_prepare_udp(netstack_t *, mblk_t *, ipha_t *);
212 netstack_t *ns; in esp_kstat_update()
305 netstack_t *ns = espstack->ipsecesp_netstack; in esp_ager()
380 ipsecesp_fill_defs(sadb_x_ecomb_t *ecomb, netstack_t *ns) in ipsecesp_fill_defs()
442 ipsecesp_stack_init(netstackid_t stackid, netstack_t *ns) in ipsecesp_stack_init()
519 netstack_t *ns; in ipsecesp_open()
586 netstack_t *ns = assoc->ipsa_netstack; in esp_age_bytes()
982 netstack_t *ns = assoc->ipsa_netstack; in esp_set_usetime()
1071 netstack_t *ns = ira->ira_ill->ill_ipst->ips_netstack; in esp_inbound()
[all …]
H A Dipsecah.c142 static void *ipsecah_stack_init(netstackid_t stackid, netstack_t *ns);
219 netstack_t *ns; in ah_kstat_update()
256 netstack_t *ns = ahstack->ipsecah_netstack; in ah_ager()
331 ipsecah_fill_defs(sadb_x_ecomb_t *ecomb, netstack_t *ns) in ipsecah_fill_defs()
393 ipsecah_stack_init(netstackid_t stackid, netstack_t *ns) in ipsecah_stack_init()
469 netstack_t *ns; in ipsecah_open()
683 ipsecah_algs_changed(netstack_t *ns) in ipsecah_algs_changed()
727 netstack_t *ns; in ah_inbound_restart()
772 netstack_t *ns = ahstack->ipsecah_netstack; in ah_add_sa_finish()
994 netstack_t *ns = ixa->ixa_ipst->ips_netstack; in ah_outbound_finish()
[all …]
H A Dip_srcid.c200 netstack_t *ns) in ip_srcid_find_addr()
238 boolean_t v4mapped, netstack_t *ns) in ip_srcid_find_id()
H A Dspdsock.c160 static void *spdsock_stack_init(netstackid_t stackid, netstack_t *ns);
165 static void spdsock_flush_one(ipsec_policy_head_t *, netstack_t *);
315 spdsock_stack_init(netstackid_t stackid, netstack_t *ns) in spdsock_stack_init()
574 spdsock_flush_node(ipsec_tun_pol_t *itp, void *cookie, netstack_t *ns) in spdsock_flush_node()
596 spdsock_flush_one(ipsec_policy_head_t *iph, netstack_t *ns) in spdsock_flush_one()
610 netstack_t *ns = ss->spdsock_spds->spds_netstack; in spdsock_flush()
1205 netstack_t *ns = ss->spdsock_spds->spds_netstack; in spdsock_deleterule()
1303 spdsock_flip_node(ipsec_tun_pol_t *itp, void *ignoreme, netstack_t *ns) in spdsock_flip_node()
1319 netstack_t *ns = ss->spdsock_spds->spds_netstack; in spdsock_flip()
1450 netstack_t *ns = ss->spdsock_spds->spds_netstack; in spdsock_dump_finish()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c46 sctp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo, in sctp_listener_conf_get()
90 sctp_listener_conf_add(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_listener_conf_add()
139 sctp_listener_conf_del(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_listener_conf_del()
168 sctp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_set_buf_prop()
176 sctp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in sctp_get_buf_prop()
/illumos-gate/usr/src/uts/common/inet/ipnet/
H A Dipnet.c170 static void *ipnet_stack_init(netstackid_t, netstack_t *);
244 netstack_t *ns; in ipnetif_init()
512 netstack_t *ns = NULL; in ipnet_open()
1185 ips = ((netstack_t *)hdr->hpo_ctx)->netstack_ipnet; in ipnet_dispatch()
1252 ips = ((netstack_t *)hdr->hpo_ctx)->netstack_ipnet; in ipnet_input()
1590 netstack_t *ns; in ipnet_nicevent_task()
1628 netstack_t *ns; in ipnet_if_getdev()
1700 ipnet_stack_init(netstackid_t stackid, netstack_t *ns) in ipnet_stack_init()
1831 netstack_t *ns; in ipnet_walk_if()
1954 netstack_t *ns = hdr->hpo_ctx; in ipobs_bounce_func()
[all …]

1234