Lines Matching refs:esol
1859 struct nstat_extended_sock_locus *esol; in nstat_sock_locus_alloc_internal() local
1860 esol = kalloc_type(struct nstat_extended_sock_locus, Z_WAITOK | Z_ZERO); in nstat_sock_locus_alloc_internal()
1861 if (!esol) { in nstat_sock_locus_alloc_internal()
1869 kfree_type(struct nstat_extended_sock_locus, esol); in nstat_sock_locus_alloc_internal()
1873 sol = &esol->nesl_sock_locus; in nstat_sock_locus_alloc_internal()
1920 struct nstat_extended_sock_locus *esol = NULL; in nstat_sock_locus_release() local
1924 esol = (struct nstat_extended_sock_locus *)sol; in nstat_sock_locus_release()
1927 if (esol != NULL) { in nstat_sock_locus_release()
1929 kfree_type(struct nstat_extended_sock_locus, esol); in nstat_sock_locus_release()
2311 struct nstat_extended_sock_locus *esol = (struct nstat_extended_sock_locus *)inp->inp_nstat_locus; in nstat_udp_pcb_cache() local
2312 if (esol != NULL) { in nstat_udp_pcb_cache()
2313 assert(esol->nesl_sock_locus.nsl_magic == NSTAT_SOCK_LOCUS_MAGIC); in nstat_udp_pcb_cache()
2318 &esol->nesl_local.v6, in nstat_udp_pcb_cache()
2319 sizeof(esol->nesl_local)); in nstat_udp_pcb_cache()
2323 &esol->nesl_remote.v6, in nstat_udp_pcb_cache()
2324 sizeof(esol->nesl_remote)); in nstat_udp_pcb_cache()
2328 &esol->nesl_local.v4, in nstat_udp_pcb_cache()
2329 sizeof(esol->nesl_local)); in nstat_udp_pcb_cache()
2332 &esol->nesl_remote.v4, in nstat_udp_pcb_cache()
2333 sizeof(esol->nesl_remote)); in nstat_udp_pcb_cache()
2335 bzero(&esol->nesl_local, sizeof(esol->nesl_local)); in nstat_udp_pcb_cache()
2336 bzero(&esol->nesl_remote, sizeof(esol->nesl_remote)); in nstat_udp_pcb_cache()
2339 esol->nesl_if_index = inp->inp_last_outifp->if_index; in nstat_udp_pcb_cache()
2341 esol->nesl_if_index = 0; in nstat_udp_pcb_cache()
2343 esol->nesl_sock_locus.nsl_ifnet_properties = nstat_inpcb_to_flags(inp); in nstat_udp_pcb_cache()
2344 esol->nesl_cached = true; in nstat_udp_pcb_cache()
2356 struct nstat_extended_sock_locus *esol = (struct nstat_extended_sock_locus *)inp->inp_nstat_locus; in nstat_udp_pcb_invalidate_cache() local
2358 if (esol != NULL) { in nstat_udp_pcb_invalidate_cache()
2359 assert(esol->nesl_sock_locus.nsl_magic == NSTAT_SOCK_LOCUS_MAGIC); in nstat_udp_pcb_invalidate_cache()
2360 if (esol->nesl_cached) { in nstat_udp_pcb_invalidate_cache()
2362 esol->nesl_cached = false; in nstat_udp_pcb_invalidate_cache()
2828 struct nstat_extended_sock_locus *esol = (struct nstat_extended_sock_locus *)cookie; in nstat_udp_copy_descriptor() local
2830 struct inpcb *inp = esol->nesl_sock_locus.nsl_inp; in nstat_udp_copy_descriptor()
2834 if (esol->nesl_cached == false) { in nstat_udp_copy_descriptor()
2849 memcpy(&desc->local.v6, &esol->nesl_local.v6, in nstat_udp_copy_descriptor()
2851 memcpy(&desc->remote.v6, &esol->nesl_remote.v6, in nstat_udp_copy_descriptor()
2854 memcpy(&desc->local.v4, &esol->nesl_local.v4, in nstat_udp_copy_descriptor()
2856 memcpy(&desc->remote.v4, &esol->nesl_remote.v4, in nstat_udp_copy_descriptor()
2859 desc->ifnet_properties = esol->nesl_sock_locus.nsl_ifnet_properties; in nstat_udp_copy_descriptor()
2865 desc->ifindex = esol->nesl_if_index; in nstat_udp_copy_descriptor()
2877 desc->ifnet_properties |= esol->nesl_sock_locus.nsl_ifnet_properties; in nstat_udp_copy_descriptor()
2879 if (desc->pid == esol->nesl_sock_locus.nsl_pid) { in nstat_udp_copy_descriptor()
2881 strbufcpy(desc->pname, esol->nesl_sock_locus.nsl_pname); in nstat_udp_copy_descriptor()
2888 strbufcpy(esol->nesl_sock_locus.nsl_pname, desc->pname); in nstat_udp_copy_descriptor()
2889 esol->nesl_sock_locus.nsl_pid = desc->pid; in nstat_udp_copy_descriptor()