| 363 | } |
| 364 | |
| 365 | static int |
| 366 | ngc_bind(struct socket *so, struct sockaddr *nam, struct thread *td) |
| 367 | { |
| 368 | struct ngpcb *const pcbp = sotongpcb(so); |
| 369 | |
| 370 | if (pcbp == NULL) |
| 371 | return (EINVAL); |
| 372 | return (ng_bind(nam, pcbp)); |
| 373 | } |
| 374 | |
| 375 | static int |
| 376 | ngc_connect(struct socket *so, struct sockaddr *nam, struct thread *td) |