Typically this hook would be connected to a ng_ether(4) node, using the lower hook.
nomatch
Typically this hook would also be connected to an ng_ether(4) type node using the upper hook.
<"any legal name">
Any other hook name will be accepted and can be used as the match target of an ethertype. Typically this hook would be attached to a protocol handling node that requires and generates packets with a particular set of ethertypes.
This command returns a .Vt "struct ng_etfstat" containing node statistics for packet counts.
NGM_ETF_SET_FILTER
Sets the a new ethertype filter into the node and specifies the hook to and from which packets of that type should use. The hook and ethertype are specified in a structure of type .Vt "struct ng_etffilter" :
struct ng_etffilter {
char matchhook[NG_HOOKSIZ];/* hook name */
u_int16_t ethertype; /* catch these */
};