Home
last modified time | relevance | path

Searched refs:hookname (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/netgraph/
H A Dng_macfilter.c475 macfilter_find_hook(macfilter_p mfp, const char *hookname) in macfilter_find_hook() argument
482 hookname, NG_HOOKSIZ) == 0) { in macfilter_find_hook()
495 MAC_S_ARGS(md->ether), md->hookname); in macfilter_direct()
497 int hookid = macfilter_find_hook(mfp, md->hookname); in macfilter_direct()
639 ng_macfilter_newhook(node_p node, hook_p hook, const char *hookname) in ng_macfilter_newhook() argument
643 MACFILTER_DEBUG("%s", hookname); in ng_macfilter_newhook()
645 if (strcmp(hookname, NG_MACFILTER_HOOK_ETHER) == 0) { in ng_macfilter_newhook()
649 if (strcmp(hookname, NG_MACFILTER_HOOK_DEFAULT) == 0) { in ng_macfilter_newhook()
757 strlcpy(ngm_hook->hookname, in ng_macfilter_rcvmsg()
H A Dng_macfilter.h59 u_char hookname[NG_HOOKSIZ]; /* Upper hook name*/ member
109 u_char hookname[NG_HOOKSIZ]; /* Upper hook name*/ member
H A Dng_gif_demux.c101 const char *hookname; /* Name for hook */ member
217 if (!strcmp(iffam->hookname, name)) in get_iffam_from_name()
H A Dng_socket.c422 char hookname[NG_HOOKSIZ]; in ngd_send() local
468 bcopy(sap->sg_data, hookname, len); in ngd_send()
469 hookname[len] = '\0'; in ngd_send()
472 hook = ng_findhook(pcbp->sockdata->node, hookname); in ngd_send()
H A Dng_iface.c105 const char *hookname; /* Name for hook */ member
266 if (!strcmp(iffam->hookname, name)) in get_iffam_from_name()
/freebsd/tests/sys/netgraph/
H A Dng_macfilter_test.sh212 local hookname=${1:-'[^"]*'}
215 …| perl -ne 'sub BEGIN {$c=0} $c += $1 while s/hookname="'$hookname'" hookid=\d+ maccnt=(\d+)//; su…