Searched refs:ngpcb (Results 1 – 3 of 3) sorted by relevance
/freebsd/usr.bin/netstat/ |
H A D | netgraph.c | 66 struct ngpcb *this, *next; in netgraphprotopr() 67 struct ngpcb ngpcb; in netgraphprotopr() local 92 kread((u_long)this, (char *)&ngpcb, sizeof(ngpcb)); in netgraphprotopr() 93 next = LIST_NEXT(&ngpcb, socks); in netgraphprotopr() 96 kread((u_long)ngpcb.ng_socket, (char *)&sockb, sizeof(sockb)); in netgraphprotopr() 99 if (strcmp(name, "ctrl") == 0 && ngpcb.type != NG_CONTROL) in netgraphprotopr() 101 if (strcmp(name, "data") == 0 && ngpcb.type != NG_DATA) in netgraphprotopr() 124 if (ngpcb.node_id == 0 || csock == -1) in netgraphprotopr() 126 snprintf(path, sizeof(path), "[%x]:", ngpcb.node_id); in netgraphprotopr()
|
/freebsd/sys/netgraph/ |
H A D | ng_socket.c | 124 static void ng_detach_common(struct ngpcb *pcbp, int type); 126 static int ng_connect_data(struct sockaddr *nam, struct ngpcb *pcbp); 127 static int ng_bind(struct sockaddr *nam, struct ngpcb *pcbp); 157 static LIST_HEAD(, ngpcb) ngsocklist; 161 #define sotongpcb(so) ((struct ngpcb *)(so)->so_pcb) 177 struct ngpcb *datasock; /* optional data socket */ 178 struct ngpcb *ctlsock; /* optional control socket */ 196 struct ngpcb *const pcbp = sotongpcb(so); in ngc_attach() 210 struct ngpcb *const pcbp = sotongpcb(so); in ngc_detach() 220 struct ngpcb *const pcbp = sotongpcb(so); in ngc_send() [all …]
|
H A D | ng_socketvar.h | 46 struct ngpcb { struct 49 LIST_ENTRY(ngpcb) socks; /* linked list of sockets */ argument
|