ng_hook
struct ng_hook;
struct ng_hook *hook; /* downstream hook */
struct ng_hook;
struct ng_hook *hook; /* downstream hook */
struct ng_hook *hk_peer; /* the other end of this link */
LIST_ENTRY(ng_hook) hk_hooks; /* linked list of all hooks on node */
SLIST_ENTRY(ng_hook) hk_all; /* all existing items */
LIST_HEAD(hooks, ng_hook) nd_hooks; /* linked list of node hooks */
struct ng_hook ;
typedef struct ng_hook *hook_p;
typedef struct ng_hook const *hook_cp;
struct ng_hook ng_deadhook = {
SLIST_ENTRY(ng_hook) temp;
bzero(hook, sizeof(struct ng_hook));
static SLIST_HEAD(, ng_hook) ng_allhooks;
static LIST_HEAD(, ng_hook) ng_freehooks; /* in debug, we never free() them */
struct ng_hook *hook;