| 483 | } |
| 484 | |
| 485 | static int |
| 486 | ngd_connect(struct socket *so, struct sockaddr *nam, struct thread *td) |
| 487 | { |
| 488 | struct ngpcb *const pcbp = sotongpcb(so); |
| 489 | |
| 490 | if (pcbp == NULL) |
| 491 | return (EINVAL); |
| 492 | return (ng_connect_data(nam, pcbp)); |
| 493 | } |
| 494 | |
| 495 | /* |
| 496 | * Used for both data and control sockets |
nothing calls this directly
no test coverage detected