Home
last modified time | relevance | path

Searched refs:hook1 (Results 1 – 4 of 4) sorted by relevance

/freebsd/tests/sys/netgraph/
H A Dutil.c70 _ng_connect(char const *path1, char const *hook1, in _ng_connect() argument
76 strncpy(c.ourhook, hook1, sizeof(c.ourhook)); in _ng_connect()
86 _ng_mkpeer(char const *path1, char const *hook1, in _ng_mkpeer() argument
92 strncpy(p.ourhook, hook1, sizeof(p.ourhook)); in _ng_mkpeer()
H A Dutil.h38 _ng_connect(char const *path1, char const *hook1,
45 _ng_mkpeer(char const *path1, char const *hook1,
/freebsd/sys/netgraph/
H A Dng_base.c1241 ng_bypass(hook_p hook1, hook_p hook2) in ng_bypass() argument
1243 if (hook1->hk_node != hook2->hk_node) { in ng_bypass()
1248 if (NG_HOOK_NOT_VALID(hook1) || NG_HOOK_NOT_VALID(hook2)) { in ng_bypass()
1252 hook1->hk_peer->hk_peer = hook2->hk_peer; in ng_bypass()
1253 hook2->hk_peer->hk_peer = hook1->hk_peer; in ng_bypass()
1255 hook1->hk_peer = &ng_deadhook; in ng_bypass()
1259 NG_HOOK_UNREF(hook1); in ng_bypass()
1263 ng_destroy_hook(hook1); in ng_bypass()
1548 hook_p hook1, hook2; in ng_mkpeer() local
1555 if ((error = ng_add_hook(node, name, &hook1))) { /* gives us a ref */ in ng_mkpeer()
[all …]
H A Dnetgraph.h1143 int ng_bypass(hook_p hook1, hook_p hook2);