MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vnet_ether_init

Function vnet_ether_init

freebsd/net/if_ethersubr.c:764–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

762SYSINIT(ether, SI_SUB_INIT_IF, SI_ORDER_ANY, ether_init, NULL);
763
764static void
765vnet_ether_init(__unused void *arg)
766{
767 struct pfil_head_args args;
768
769 args.pa_version = PFIL_VERSION;
770 args.pa_flags = PFIL_IN | PFIL_OUT;
771 args.pa_type = PFIL_TYPE_ETHERNET;
772 args.pa_headname = PFIL_ETHER_NAME;
773 V_link_pfil_head = pfil_head_register(&args);
774
775#ifdef VIMAGE
776 netisr_register_vnet(&ether_nh);
777#endif
778}
779VNET_SYSINIT(vnet_ether_init, SI_SUB_PROTO_IF, SI_ORDER_ANY,
780 vnet_ether_init, NULL);
781

Callers

nothing calls this directly

Calls 2

pfil_head_registerFunction · 0.85
netisr_register_vnetFunction · 0.85

Tested by

no test coverage detected