Lines Matching refs:iffam

99 struct iffam {  struct
103 typedef const struct iffam *iffam_p; argument
106 const static struct iffam gFamilies[] = {
136 static hook_p *get_hook_from_iffam(priv_p priv, iffam_p iffam);
171 iffam_p iffam; in get_iffam_from_af() local
175 iffam = &gFamilies[k]; in get_iffam_from_af()
176 if (iffam->family == family) in get_iffam_from_af()
177 return (iffam); in get_iffam_from_af()
201 get_hook_from_iffam(priv_p priv, iffam_p iffam) in get_hook_from_iffam() argument
203 return (&priv->hooks[iffam - gFamilies]); in get_hook_from_iffam()
212 iffam_p iffam; in get_iffam_from_name() local
216 iffam = &gFamilies[k]; in get_iffam_from_name()
217 if (!strcmp(iffam->hookname, name)) in get_iffam_from_name()
218 return (iffam); in get_iffam_from_name()
252 iffam_p iffam; in ng_gif_demux_newhook() local
258 iffam = get_iffam_from_name(name); in ng_gif_demux_newhook()
259 if (iffam == NULL) in ng_gif_demux_newhook()
261 hookptr = get_hook_from_iffam(NG_NODE_PRIVATE(node), iffam); in ng_gif_demux_newhook()
308 iffam_p iffam; in ng_gif_demux_rcvdata() local
331 iffam = get_iffam_from_af(*mtod(m, sa_family_t *)); in ng_gif_demux_rcvdata()
332 if (iffam == NULL) { in ng_gif_demux_rcvdata()
337 outhook = *get_hook_from_iffam(priv, iffam); in ng_gif_demux_rcvdata()
343 iffam = get_iffam_from_hook(priv, hook); in ng_gif_demux_rcvdata()
344 M_PREPEND(m, sizeof (iffam->family), M_NOWAIT); in ng_gif_demux_rcvdata()
350 bcopy(&iffam->family, mtod(m, sa_family_t *), in ng_gif_demux_rcvdata()
351 sizeof(iffam->family)); in ng_gif_demux_rcvdata()
384 iffam_p iffam; in ng_gif_demux_disconnect() local
389 iffam = get_iffam_from_hook(priv, hook); in ng_gif_demux_disconnect()
390 if (iffam == NULL) in ng_gif_demux_disconnect()
392 *get_hook_from_iffam(priv, iffam) = NULL; in ng_gif_demux_disconnect()