Lines Matching refs:desc
493 nstat_route_descriptor *desc = (nstat_route_descriptor*)data;
494 if (len < sizeof(*desc))
498 bzero(desc, sizeof(*desc));
501 desc->id = (uintptr_t)rt;
502 desc->parent_id = (uintptr_t)rt->rt_parent;
503 desc->gateway_id = (uintptr_t)rt->rt_gwroute;
509 nstat_copy_sa_out(sa, &desc->dst.sa, sizeof(desc->dst));
512 if ((sa = rt_mask(rt)) && sa->sa_len <= sizeof(desc->mask))
513 memcpy(&desc->mask, sa, sa->sa_len);
517 nstat_copy_sa_out(sa, &desc->gateway.sa, sizeof(desc->gateway));
520 desc->ifindex = rt->rt_ifp->if_index;
522 desc->flags = rt->rt_flags;
997 nstat_tcp_descriptor *desc = (nstat_tcp_descriptor*)data;
1004 bzero(desc, sizeof(*desc));
1009 &desc->local.v6, sizeof(desc->local));
1011 &desc->remote.v6, sizeof(desc->remote));
1016 &desc->local.v4, sizeof(desc->local));
1018 &desc->remote.v4, sizeof(desc->remote));
1021 desc->state = intotcpcb(inp)->t_state;
1022 desc->ifindex = (inp->inp_last_outifp == NULL) ? 0 :
1026 desc->txunacked = tp->snd_max - tp->snd_una;
1027 desc->txwindow = tp->snd_wnd;
1028 desc->txcwindow = tp->snd_cwnd;
1035 desc->upid = so->last_upid;
1036 desc->pid = so->last_pid;
1037 desc->traffic_class = so->so_traffic_class;
1039 proc_name(desc->pid, desc->pname, sizeof(desc->pname));
1040 desc->pname[sizeof(desc->pname) - 1] = 0;
1042 desc->sndbufsize = so->so_snd.sb_hiwat;
1043 desc->sndbufused = so->so_snd.sb_cc;
1044 desc->rcvbufsize = so->so_rcv.sb_hiwat;
1045 desc->rcvbufused = so->so_rcv.sb_cc;
1196 nstat_udp_descriptor *desc = (nstat_udp_descriptor*)data;
1202 bzero(desc, sizeof(*desc));
1207 &desc->local.v6, sizeof(desc->local));
1209 &desc->remote.v6, sizeof(desc->remote));
1214 &desc->local.v4, sizeof(desc->local));
1216 &desc->remote.v4, sizeof(desc->remote));
1219 desc->ifindex = (inp->inp_last_outifp == NULL) ? 0 :
1227 desc->upid = so->last_upid;
1228 desc->pid = so->last_pid;
1230 desc->rcvbufsize = so->so_rcv.sb_hiwat;
1231 desc->rcvbufused = so->so_rcv.sb_cc;
1232 desc->traffic_class = so->so_traffic_class;
1234 proc_name(desc->pid, desc->pname, sizeof(desc->pname));
1235 desc->pname[sizeof(desc->pname) - 1] = 0;
1543 nstat_msg_src_description *desc = (nstat_msg_src_description*)mbuf_data(msg);
1548 errno_t result = src->provider->nstat_copy_descriptor(src->cookie, desc->data, src->provider->nstat_descriptor_length);
1556 desc->hdr.context = context;
1557 desc->hdr.type = NSTAT_MSG_TYPE_SRC_DESC;
1558 desc->srcref = src->srcref;
1559 desc->provider = src->provider->nstat_provider_id;