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

Function ngd_attach

freebsd/netgraph/ng_socket.c:390–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388***************************************************************/
389
390static int
391ngd_attach(struct socket *so, int proto, struct thread *td)
392{
393 struct ngpcb *const pcbp = sotongpcb(so);
394
395 if (pcbp != NULL)
396 return (EISCONN);
397 return (ng_attach_data(so));
398}
399
400static void
401ngd_detach(struct socket *so)

Callers

nothing calls this directly

Calls 1

ng_attach_dataFunction · 0.85

Tested by

no test coverage detected