Home
last modified time | relevance | path

Searched refs:NG_HOOKSIZ (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/sys/netgraph/
H A Dng_message.h50 #define NG_HOOKSIZ 32 /* max hook name len (including null) */ macro
175 char ourhook[NG_HOOKSIZ]; /* hook name */
176 char peerhook[NG_HOOKSIZ]; /* peer hook name */
190 char ourhook[NG_HOOKSIZ]; /* hook name */
191 char peerhook[NG_HOOKSIZ]; /* peer hook name */
215 char ourhook[NG_HOOKSIZ]; /* hook name */
243 char ourhook[NG_HOOKSIZ]; /* hook name */
244 char peerhook[NG_HOOKSIZ]; /* peer hook */
H A Dng_tag.h45 char thisHook[NG_HOOKSIZ]; /* name of hook */
46 char ifMatch[NG_HOOKSIZ]; /* match dest hook */
47 char ifNotMatch[NG_HOOKSIZ]; /* !match dest hook */
57 char thisHook[NG_HOOKSIZ]; /* name of hook */
H A Dng_bpf.h51 char thisHook[NG_HOOKSIZ]; /* name of hook */
52 char ifMatch[NG_HOOKSIZ]; /* match dest hook */
53 char ifNotMatch[NG_HOOKSIZ]; /* !match dest hook */
H A Dng_pppoe.h129 char hook[NG_HOOKSIZ]; /* hook to monitor on */
147 char hook[NG_HOOKSIZ]; /* hook associated with event session */
160 char hook[NG_HOOKSIZ]; /* hook associated with event session */
H A Dng_tcpmss.h60 char inHook[NG_HOOKSIZ];
61 char outHook[NG_HOOKSIZ];
H A Dng_macfilter.h59 u_char hookname[NG_HOOKSIZ]; /* Upper hook name*/
109 u_char hookname[NG_HOOKSIZ]; /* Upper hook name*/
H A Dng_bridge.h114 char hook[NG_HOOKSIZ]; /* link where addr can be found */
143 char hook[NG_HOOKSIZ]; /* link where addr can be found */
H A Dng_etf.h77 char matchhook[NG_HOOKSIZ]; /* hook name */
H A Dng_vlan.h65 char hook_name[NG_HOOKSIZ];
H A Dng_hole.c160 if (msg->header.arglen != NG_HOOKSIZ) { in ngh_rcvmsg()
H A Dng_vlan.c321 if (msg->header.arglen != NG_HOOKSIZ) { in ng_vlan_rcvmsg()
421 NG_HOOK_NAME(hook), NG_HOOKSIZ); in ng_vlan_rcvmsg()
H A Dng_socket.c422 char hookname[NG_HOOKSIZ]; in ngd_send()
459 if (len >= NG_HOOKSIZ) { in ngd_send()
1017 char *addrbuf[NG_HOOKSIZ + 4]; in ngs_rcvdata()
H A Dng_macfilter.c482 hookname, NG_HOOKSIZ) == 0) { in macfilter_find_hook()
759 NG_HOOKSIZ); in ng_macfilter_rcvmsg()
H A Dng_bridge.c402 char linkName[NG_HOOKSIZ]; in ng_bridge_newhook()
419 snprintf(NG_HOOK_NAME(hook), NG_HOOKSIZ, "%s%u", pfx->prefix, in ng_bridge_newhook()
580 char linkName[NG_HOOKSIZ]; in ng_bridge_rcvmsg()
H A Dng_tcpmss.c200 if (msg->header.arglen != NG_HOOKSIZ) in ng_tcpmss_rcvmsg()
H A Dng_pppoe.c1327 tlen = min(NG_HOOKSIZ - 1, ntohs(tag->tag_len)); in send_acname()
1369 strncpy(maxp->hook, NG_HOOK_NAME(sp->hook), NG_HOOKSIZ); in send_maxp()
2226 strncpy(sts->hook, NG_HOOK_NAME(sp->hook), NG_HOOKSIZ); in pppoe_send_event()
H A Dng_ksocket.c546 char *s1, *s2, name[NG_HOOKSIZ]; in ng_ksocket_newhook()
/freebsd/lib/libnetgraph/
H A Dsock.c215 u_char frombuf[NG_HOOKSIZ + NGSA_OVERHEAD]; in NgRecvData()
232 strlcpy(hook, from->sg_data, NG_HOOKSIZ); in NgRecvData()
272 u_char sgbuf[NG_HOOKSIZ + NGSA_OVERHEAD]; in NgSendData()
278 strlcpy(sg->sg_data, hook, NG_HOOKSIZ); in NgSendData()
/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c104 char hook[NG_HOOKSIZ];
454 char hook[NG_HOOKSIZ]; in dsock_input()
612 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect_node()
613 strlcpy(conn.peerhook, peerhook, NG_HOOKSIZ); in ng_connect_node()
623 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect_id()
624 strlcpy(conn.peerhook, peerhook, NG_HOOKSIZ); in ng_connect_id()
639 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect2_id()
640 strlcpy(conn.peerhook, peerhook, NG_HOOKSIZ); in ng_connect2_id()
659 strlcpy(conn.ourhook, "right", NG_HOOKSIZ); in ng_connect2_tee_id()
660 strlcpy(conn.peerhook, peerhook, NG_HOOKSIZ); in ng_connect2_tee_id()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dnet_backend_netgraph.c85 strncpy(ngc.ourhook, value, NG_HOOKSIZ - 1); in ng_init()
92 strncpy(ngc.peerhook, value, NG_HOOKSIZ - 1); in ng_init()
/freebsd/usr.sbin/ppp/
H A Dnetgraph.c94 char hook[NG_HOOKSIZ]; /* Our socket node hook */
236 char hook[NG_HOOKSIZ]; in ng_Read()
466 char lasthook[NG_HOOKSIZ]; in ng_Create()
467 char hook[NG_HOOKSIZ]; in ng_Create()
/freebsd/share/examples/netgraph/
H A Dngctl152 # char ourhook[NG_HOOKSIZ]; /* hook name */
153 # char peerhook[NG_HOOKSIZ]; /* peer hook */
/freebsd/tests/sys/netgraph/
H A Dutil.c178 char hook[NG_HOOKSIZ]; in handle_data()
/freebsd/usr.sbin/ngctl/
H A Dmain.c406 char hook[NG_HOOKSIZ]; in ReadSockets()
/freebsd/libexec/pppoed/
H A Dpppoed.c500 char hostname[MAXHOSTNAMELEN], *exec, rhook[NG_HOOKSIZ]; in main()

12