MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ngd_connect

Function ngd_connect

freebsd/netgraph/ng_socket.c:485–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485static int
486ngd_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

Callers

nothing calls this directly

Calls 1

ng_connect_dataFunction · 0.85

Tested by

no test coverage detected