Searched refs:ngpcb (Results 1 – 5 of 5) sorted by relevance
| /dragonfly/usr.bin/netstat/ |
| HD | netgraph.c | 69 struct ngpcb *this, *next; in netgraphprotopr() 70 struct ngpcb ngpcb; in netgraphprotopr() local 136 kread((u_long)this, (char *)&ngpcb, sizeof(ngpcb)); in netgraphprotopr() 137 next = LIST_NEXT(&ngpcb, socks); in netgraphprotopr() 140 kread((u_long)ngpcb.ng_socket, (char *)&sockb, sizeof(sockb)); in netgraphprotopr() 143 if (strcmp(name, "ctrl") == 0 && ngpcb.type != NG_CONTROL) in netgraphprotopr() 145 if (strcmp(name, "data") == 0 && ngpcb.type != NG_DATA) in netgraphprotopr() 166 if (ngpcb.sockdata == 0) /* unconnected data socket */ in netgraphprotopr() 168 kread((u_long)ngpcb.sockdata, (char *)&info, sizeof(info)); in netgraphprotopr()
|
| /dragonfly/sys/netgraph/socket/ |
| HD | ng_socket.c | 117 static void ng_detach_common(struct ngpcb *pcbp, int type); 120 static int ng_connect_data(struct sockaddr *nam, struct ngpcb *pcbp); 121 static int ng_connect_cntl(struct sockaddr *nam, struct ngpcb *pcbp); 122 static int ng_bind(struct sockaddr *nam, struct ngpcb *pcbp); 125 static int ship_msg(struct ngpcb *pcbp, struct ng_mesg *msg, 151 LIST_HEAD(, ngpcb) ngsocklist; 153 #define sotongpcb(so) ((struct ngpcb *)(so)->so_pcb) 169 struct ngpcb *const pcbp = sotongpcb(so); in ngc_attach() 188 struct ngpcb *const pcbp = sotongpcb(so); in ngc_detach() 207 struct ngpcb *const pcbp = sotongpcb(so); in ngc_send() [all …]
|
| HD | ng_socketvar.h | 48 struct ngpcb { struct 51 LIST_ENTRY(ngpcb) socks; /* linked list of sockets */ argument 58 struct ngpcb *datasock; /* optional data socket */ argument 59 struct ngpcb *ctlsock; /* optional control socket */
|
| /dragonfly/sys/netgraph7/socket/ |
| HD | ng_socket.c | 128 static void ng_detach_common(struct ngpcb *pcbp, int type); 133 static int ng_connect_data(struct sockaddr *nam, struct ngpcb *pcbp); 134 static int ng_bind(struct sockaddr *nam, struct ngpcb *pcbp); 163 #define sotongpcb(so) ((struct ngpcb *)(so)->so_pcb) 179 struct ngpcb *const pcbp = sotongpcb(so); in ngc_attach() 198 struct ngpcb *const pcbp = sotongpcb(so); in ngc_detach() 212 struct ngpcb *const pcbp = sotongpcb(so); in ngc_send() 361 struct ngpcb *const pcbp = sotongpcb(so); in ngc_bind() 390 struct ngpcb *const pcbp = sotongpcb(so); in ngd_attach() 404 struct ngpcb *const pcbp = sotongpcb(so); in ngd_detach() [all …]
|
| HD | ng_socketvar.h | 49 struct ngpcb { struct 52 LIST_ENTRY(ngpcb) socks; /* linked list of sockets */ argument 59 struct ngpcb *datasock; /* optional data socket */ argument 60 struct ngpcb *ctlsock; /* optional control socket */
|