7 * Copyright (c) 1996-2000 Whistle Communications, Inc.
10 * Subject to the following obligations and disclaimer of warranty, use and
11 * redistribution of this software, in source or object code forms, with or
12 * without modifications are expressly permitted by Whistle Communications;
13 * provided, however, that:
14 * 1. Any and all reproductions of the source or object code must include the
15 * copyright notice above and the following disclaimer of warranties; and
16 * 2. No rights are granted, in any manner or form, to use Whistle
17 * Communications, Inc. trademarks, including the mark "WHISTLE
18 * COMMUNICATIONS" on advertising, endorsements, or otherwise except as
19 * such appears in the above copyright notice or in the software.
21 * THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "AS IS", AND
22 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO
23 * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,
24 * INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF
25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
26 * WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY
27 * REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS
28 * SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.
29 * IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES
30 * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING
31 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
32 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
33 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
36 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
39 * Authors: Archie Cobbs <archie@freebsd.org>
40 * Julian Elischer <julian@freebsd.org>
46 * ng_ether(4) netgraph node type
49 #include <sys/param.h>
50 #include <sys/systm.h>
51 #include <sys/kernel.h>
52 #include <sys/malloc.h>
54 #include <sys/errno.h>
56 #include <sys/syslog.h>
57 #include <sys/socket.h>
58 #include <sys/taskqueue.h>
61 #include <net/if_dl.h>
62 #include <net/if_types.h>
63 #include <net/if_arp.h>
64 #include <net/if_var.h>
65 #include <net/ethernet.h>
66 #include <net/if_bridgevar.h>
69 #include <netgraph/ng_message.h>
70 #include <netgraph/netgraph.h>
71 #include <netgraph/ng_parse.h>
72 #include <netgraph/ng_ether.h>
74 MODULE_VERSION(ng_ether, 1);
76 #define IFP2NG(ifp) (IFP2AC((ifp))->ac_netgraph)
78 /* Per-node private data */
80 struct ifnet *ifp; /* associated interface */
81 hook_p upper; /* upper hook connection */
82 hook_p lower; /* lower hook connection */
83 hook_p orphan; /* orphan hook connection */
84 u_char autoSrcAddr; /* always overwrite source address */
85 u_char promisc; /* promiscuous mode enabled */
86 u_long hwassist; /* hardware checksum capabilities */
87 u_int flags; /* flags e.g. really die */
89 typedef struct private *priv_p;
91 /* Hook pointers used by if_ethersubr.c to callback to netgraph */
92 extern void (*ng_ether_input_p)(struct ifnet *ifp, struct mbuf **mp);
93 extern void (*ng_ether_input_orphan_p)(struct ifnet *ifp, struct mbuf *m);
94 extern int (*ng_ether_output_p)(struct ifnet *ifp, struct mbuf **mp);
95 extern void (*ng_ether_attach_p)(struct ifnet *ifp);
96 extern void (*ng_ether_detach_p)(struct ifnet *ifp);
97 extern void (*ng_ether_link_state_p)(struct ifnet *ifp, int state);
99 /* Functional hooks called from if_ethersubr.c */
100 static void ng_ether_input(struct ifnet *ifp, struct mbuf **mp);
101 static void ng_ether_input_orphan(struct ifnet *ifp, struct mbuf *m);
102 static int ng_ether_output(struct ifnet *ifp, struct mbuf **mp);
103 static void ng_ether_attach(struct ifnet *ifp);
104 static void ng_ether_detach(struct ifnet *ifp);
105 static void ng_ether_link_state(struct ifnet *ifp, int state);
107 /* Other functions */
108 static int ng_ether_rcv_lower(hook_p node, item_p item);
109 static int ng_ether_rcv_upper(hook_p node, item_p item);
111 /* Netgraph node methods */
112 static ng_constructor_t ng_ether_constructor;
113 static ng_rcvmsg_t ng_ether_rcvmsg;
114 static ng_shutdown_t ng_ether_shutdown;
115 static ng_newhook_t ng_ether_newhook;
116 static ng_rcvdata_t ng_ether_rcvdata;
117 static ng_disconnect_t ng_ether_disconnect;
118 static int ng_ether_mod_event(module_t mod, int event, void *data);
120 static eventhandler_tag ng_ether_ifnet_arrival_cookie;
122 /* List of commands and how to convert arguments to/from ASCII */
123 static const struct ng_cmdlist ng_ether_cmdlist[] = {
126 NGM_ETHER_GET_IFNAME,
129 &ng_parse_string_type
133 NGM_ETHER_GET_IFINDEX,
140 NGM_ETHER_GET_ENADDR,
143 &ng_parse_enaddr_type
147 NGM_ETHER_SET_ENADDR,
149 &ng_parse_enaddr_type,
154 NGM_ETHER_GET_PROMISC,
161 NGM_ETHER_SET_PROMISC,
163 &ng_parse_int32_type,
168 NGM_ETHER_GET_AUTOSRC,
175 NGM_ETHER_SET_AUTOSRC,
177 &ng_parse_int32_type,
184 &ng_parse_enaddr_type,
191 &ng_parse_enaddr_type,
204 static struct ng_type ng_ether_typestruct = {
205 .version = NG_ABI_VERSION,
206 .name = NG_ETHER_NODE_TYPE,
207 .mod_event = ng_ether_mod_event,
208 .constructor = ng_ether_constructor,
209 .rcvmsg = ng_ether_rcvmsg,
210 .shutdown = ng_ether_shutdown,
211 .newhook = ng_ether_newhook,
212 .rcvdata = ng_ether_rcvdata,
213 .disconnect = ng_ether_disconnect,
214 .cmdlist = ng_ether_cmdlist,
216 NETGRAPH_INIT(ether, &ng_ether_typestruct);
218 /******************************************************************
220 ******************************************************************/
222 ng_ether_sanitize_ifname(const char *ifname, char *name)
226 for (i = 0; i < IFNAMSIZ; i++) {
227 if (ifname[i] == '.' || ifname[i] == ':')
236 /******************************************************************
237 ETHERNET FUNCTION HOOKS
238 ******************************************************************/
241 * Handle a packet that has come in on an interface. We get to
242 * look at it here before any upper layer protocols do.
244 * NOTE: this function will get called at splimp()
247 ng_ether_input(struct ifnet *ifp, struct mbuf **mp)
249 const node_p node = IFP2NG(ifp);
250 const priv_p priv = NG_NODE_PRIVATE(node);
253 /* If "lower" hook not connected, let packet continue */
254 if (priv->lower == NULL)
256 NG_SEND_DATA_ONLY(error, priv->lower, *mp); /* sets *mp = NULL */
260 * Handle a packet that has come in on an interface, and which
261 * does not match any of our known protocols (an ``orphan'').
263 * NOTE: this function will get called at splimp()
266 ng_ether_input_orphan(struct ifnet *ifp, struct mbuf *m)
268 const node_p node = IFP2NG(ifp);
269 const priv_p priv = NG_NODE_PRIVATE(node);
272 /* If "orphan" hook not connected, discard packet */
273 if (priv->orphan == NULL) {
277 NG_SEND_DATA_ONLY(error, priv->orphan, m);
281 * Handle a packet that is going out on an interface.
282 * The Ethernet header is already attached to the mbuf.
285 ng_ether_output(struct ifnet *ifp, struct mbuf **mp)
287 const node_p node = IFP2NG(ifp);
288 const priv_p priv = NG_NODE_PRIVATE(node);
291 /* If "upper" hook not connected, let packet continue */
292 if (priv->upper == NULL)
295 /* Send it out "upper" hook */
296 NG_OUTBOUND_THREAD_REF();
297 NG_SEND_DATA_ONLY(error, priv->upper, *mp);
298 NG_OUTBOUND_THREAD_UNREF();
303 * A new Ethernet interface has been attached.
304 * Create a new node for it, etc.
307 ng_ether_attach(struct ifnet *ifp)
314 * Do not create / attach an ether node to this ifnet if
315 * a netgraph node with the same name already exists.
316 * This should prevent ether nodes to become attached to
317 * eiface nodes, which may be problematic due to naming
320 if ((node = ng_name2noderef(NULL, ifp->if_xname)) != NULL) {
326 KASSERT(!IFP2NG(ifp), ("%s: node already exists?", __func__));
327 if (ng_make_node_common(&ng_ether_typestruct, &node) != 0) {
328 log(LOG_ERR, "%s: can't %s for %s\n",
329 __func__, "create node", ifp->if_xname);
333 /* Allocate private data */
334 priv = malloc(sizeof(*priv), M_NETGRAPH, M_NOWAIT | M_ZERO);
336 log(LOG_ERR, "%s: can't %s for %s\n",
337 __func__, "allocate memory", ifp->if_xname);
341 NG_NODE_SET_PRIVATE(node, priv);
344 priv->hwassist = ifp->if_hwassist;
346 /* Try to give the node the same name as the interface */
347 ng_ether_sanitize_ifname(ifp->if_xname, name);
348 if (ng_name_node(node, name) != 0)
349 log(LOG_WARNING, "%s: can't name node %s\n", __func__, name);
353 * An Ethernet interface is being detached.
354 * REALLY Destroy its node.
357 ng_ether_detach(struct ifnet *ifp)
359 const node_p node = IFP2NG(ifp);
360 const priv_p priv = NG_NODE_PRIVATE(node);
362 taskqueue_drain(taskqueue_swi, &ifp->if_linktask);
363 NG_NODE_REALLY_DIE(node); /* Force real removal of node */
365 * We can't assume the ifnet is still around when we run shutdown
366 * So zap it now. XXX We HOPE that anything running at this time
367 * handles it (as it should in the non netgraph case).
370 priv->ifp = NULL; /* XXX race if interrupted an output packet */
371 ng_rmnode_self(node); /* remove all netgraph parts */
375 * Notify graph about link event.
376 * if_link_state_change() has already checked that the state has changed.
379 ng_ether_link_state(struct ifnet *ifp, int state)
381 const node_p node = IFP2NG(ifp);
382 const priv_p priv = NG_NODE_PRIVATE(node);
384 int cmd, dummy_error = 0;
386 if (state == LINK_STATE_UP)
387 cmd = NGM_LINK_IS_UP;
388 else if (state == LINK_STATE_DOWN)
389 cmd = NGM_LINK_IS_DOWN;
393 if (priv->lower != NULL) {
394 NG_MKMESSAGE(msg, NGM_FLOW_COOKIE, cmd, 0, M_NOWAIT);
396 NG_SEND_MSG_HOOK(dummy_error, node, msg, priv->lower, 0);
398 if (priv->orphan != NULL) {
399 NG_MKMESSAGE(msg, NGM_FLOW_COOKIE, cmd, 0, M_NOWAIT);
401 NG_SEND_MSG_HOOK(dummy_error, node, msg, priv->orphan, 0);
406 * Interface arrival notification handler.
407 * The notification is produced in two cases:
408 * o a new interface arrives
409 * o an existing interface got renamed
410 * Currently the first case is handled by ng_ether_attach via special
411 * hook ng_ether_attach_p.
414 ng_ether_ifnet_arrival_event(void *arg __unused, struct ifnet *ifp)
419 /* Only ethernet interfaces are of interest. */
420 if (ifp->if_type != IFT_ETHER
421 && ifp->if_type != IFT_L2VLAN)
425 * Just return if it's a new interface without an ng_ether companion.
431 /* Try to give the node the same name as the new interface name */
432 ng_ether_sanitize_ifname(ifp->if_xname, name);
433 if (ng_name_node(node, name) != 0)
434 log(LOG_WARNING, "%s: can't re-name node %s\n", __func__, name);
437 /******************************************************************
438 NETGRAPH NODE METHODS
439 ******************************************************************/
442 * It is not possible or allowable to create a node of this type.
443 * Nodes get created when the interface is attached (or, when
444 * this node type's KLD is loaded).
447 ng_ether_constructor(node_p node)
453 * Check for attaching a new hook.
456 ng_ether_newhook(node_p node, hook_p hook, const char *name)
458 const priv_p priv = NG_NODE_PRIVATE(node);
461 /* Divert hook is an alias for lower */
462 if (strcmp(name, NG_ETHER_HOOK_DIVERT) == 0)
463 name = NG_ETHER_HOOK_LOWER;
466 if (strcmp(name, NG_ETHER_HOOK_UPPER) == 0) {
467 hookptr = &priv->upper;
468 NG_HOOK_SET_RCVDATA(hook, ng_ether_rcv_upper);
469 NG_HOOK_SET_TO_INBOUND(hook);
470 } else if (strcmp(name, NG_ETHER_HOOK_LOWER) == 0) {
471 hookptr = &priv->lower;
472 NG_HOOK_SET_RCVDATA(hook, ng_ether_rcv_lower);
473 } else if (strcmp(name, NG_ETHER_HOOK_ORPHAN) == 0) {
474 hookptr = &priv->orphan;
475 NG_HOOK_SET_RCVDATA(hook, ng_ether_rcv_lower);
479 /* Check if already connected (shouldn't be, but doesn't hurt) */
480 if (*hookptr != NULL)
483 /* Disable hardware checksums while 'upper' hook is connected */
484 if (hookptr == &priv->upper)
485 priv->ifp->if_hwassist = 0;
486 NG_HOOK_HI_STACK(hook);
493 * Receive an incoming control message.
496 ng_ether_rcvmsg(node_p node, item_p item, hook_p lasthook)
498 const priv_p priv = NG_NODE_PRIVATE(node);
499 struct ng_mesg *resp = NULL;
503 NGI_GET_MSG(item, msg);
504 switch (msg->header.typecookie) {
505 case NGM_ETHER_COOKIE:
506 switch (msg->header.cmd) {
507 case NGM_ETHER_GET_IFNAME:
508 NG_MKRESPONSE(resp, msg, IFNAMSIZ, M_NOWAIT);
513 strlcpy(resp->data, priv->ifp->if_xname, IFNAMSIZ);
515 case NGM_ETHER_GET_IFINDEX:
516 NG_MKRESPONSE(resp, msg, sizeof(u_int32_t), M_NOWAIT);
521 *((u_int32_t *)resp->data) = priv->ifp->if_index;
523 case NGM_ETHER_GET_ENADDR:
524 NG_MKRESPONSE(resp, msg, ETHER_ADDR_LEN, M_NOWAIT);
529 bcopy(IF_LLADDR(priv->ifp),
530 resp->data, ETHER_ADDR_LEN);
532 case NGM_ETHER_SET_ENADDR:
534 if (msg->header.arglen != ETHER_ADDR_LEN) {
538 error = if_setlladdr(priv->ifp,
539 (u_char *)msg->data, ETHER_ADDR_LEN);
540 EVENTHANDLER_INVOKE(iflladdr_event, priv->ifp);
543 case NGM_ETHER_GET_PROMISC:
544 NG_MKRESPONSE(resp, msg, sizeof(u_int32_t), M_NOWAIT);
549 *((u_int32_t *)resp->data) = priv->promisc;
551 case NGM_ETHER_SET_PROMISC:
555 if (msg->header.arglen != sizeof(u_int32_t)) {
559 want = !!*((u_int32_t *)msg->data);
560 if (want ^ priv->promisc) {
561 if ((error = ifpromisc(priv->ifp, want)) != 0)
563 priv->promisc = want;
567 case NGM_ETHER_GET_AUTOSRC:
568 NG_MKRESPONSE(resp, msg, sizeof(u_int32_t), M_NOWAIT);
573 *((u_int32_t *)resp->data) = priv->autoSrcAddr;
575 case NGM_ETHER_SET_AUTOSRC:
576 if (msg->header.arglen != sizeof(u_int32_t)) {
580 priv->autoSrcAddr = !!*((u_int32_t *)msg->data);
582 case NGM_ETHER_ADD_MULTI:
584 struct sockaddr_dl sa_dl;
585 struct ifmultiaddr *ifma;
587 if (msg->header.arglen != ETHER_ADDR_LEN) {
591 bzero(&sa_dl, sizeof(struct sockaddr_dl));
592 sa_dl.sdl_len = sizeof(struct sockaddr_dl);
593 sa_dl.sdl_family = AF_LINK;
594 sa_dl.sdl_alen = ETHER_ADDR_LEN;
595 bcopy((void *)msg->data, LLADDR(&sa_dl),
598 * Netgraph is only permitted to join groups once
599 * via the if_addmulti() KPI, because it cannot hold
600 * struct ifmultiaddr * between calls. It may also
601 * lose a race while we check if the membership
604 if_maddr_rlock(priv->ifp);
605 ifma = if_findmulti(priv->ifp,
606 (struct sockaddr *)&sa_dl);
607 if_maddr_runlock(priv->ifp);
611 error = if_addmulti(priv->ifp,
612 (struct sockaddr *)&sa_dl, &ifma);
616 case NGM_ETHER_DEL_MULTI:
618 struct sockaddr_dl sa_dl;
620 if (msg->header.arglen != ETHER_ADDR_LEN) {
624 bzero(&sa_dl, sizeof(struct sockaddr_dl));
625 sa_dl.sdl_len = sizeof(struct sockaddr_dl);
626 sa_dl.sdl_family = AF_LINK;
627 sa_dl.sdl_alen = ETHER_ADDR_LEN;
628 bcopy((void *)msg->data, LLADDR(&sa_dl),
630 error = if_delmulti(priv->ifp,
631 (struct sockaddr *)&sa_dl);
634 case NGM_ETHER_DETACH:
635 ng_ether_detach(priv->ifp);
646 NG_RESPOND_MSG(error, node, item, resp);
652 * Receive data on a hook.
653 * Since we use per-hook recveive methods this should never be called.
656 ng_ether_rcvdata(hook_p hook, item_p item)
660 panic("%s: weird hook", __func__);
664 * Handle an mbuf received on the "lower" or "orphan" hook.
667 ng_ether_rcv_lower(hook_p hook, item_p item)
670 const node_p node = NG_HOOK_NODE(hook);
671 const priv_p priv = NG_NODE_PRIVATE(node);
672 struct ifnet *const ifp = priv->ifp;
677 /* Check whether interface is ready for packets */
679 if (!((ifp->if_flags & IFF_UP) &&
680 (ifp->if_drv_flags & IFF_DRV_RUNNING))) {
685 /* Make sure header is fully pulled up */
686 if (m->m_pkthdr.len < sizeof(struct ether_header)) {
690 if (m->m_len < sizeof(struct ether_header)
691 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL)
694 /* Drop in the MAC address if desired */
695 if (priv->autoSrcAddr) {
697 /* Make the mbuf writable if it's not already */
699 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL)
702 /* Overwrite source MAC address */
703 bcopy(IF_LLADDR(ifp),
704 mtod(m, struct ether_header *)->ether_shost,
708 /* Send it on its way */
709 return ether_output_frame(ifp, m);
713 * Handle an mbuf received on the "upper" hook.
716 ng_ether_rcv_upper(hook_p hook, item_p item)
719 const node_p node = NG_HOOK_NODE(hook);
720 const priv_p priv = NG_NODE_PRIVATE(node);
721 struct ifnet *ifp = priv->ifp;
726 /* Check length and pull off header */
727 if (m->m_pkthdr.len < sizeof(struct ether_header)) {
731 if (m->m_len < sizeof(struct ether_header) &&
732 (m = m_pullup(m, sizeof(struct ether_header))) == NULL)
735 m->m_pkthdr.rcvif = ifp;
737 /* Pass the packet to the bridge, it may come back to us */
738 if (ifp->if_bridge) {
739 BRIDGE_INPUT(ifp, m);
744 /* Route packet back in */
750 * Shutdown node. This resets the node but does not remove it
751 * unless the REALLY_DIE flag is set.
754 ng_ether_shutdown(node_p node)
756 const priv_p priv = NG_NODE_PRIVATE(node);
758 if (node->nd_flags & NGF_REALLY_DIE) {
760 * WE came here because the ethernet card is being unloaded,
761 * so stop being persistant.
762 * Actually undo all the things we did on creation.
763 * Assume the ifp has already been freed.
765 NG_NODE_SET_PRIVATE(node, NULL);
766 free(priv, M_NETGRAPH);
767 NG_NODE_UNREF(node); /* free node itself */
770 if (priv->promisc) { /* disable promiscuous mode */
771 (void)ifpromisc(priv->ifp, 0);
774 NG_NODE_REVIVE(node); /* Signal ng_rmnode we are persisant */
780 * Hook disconnection.
783 ng_ether_disconnect(hook_p hook)
785 const priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
787 if (hook == priv->upper) {
789 if (priv->ifp != NULL) /* restore h/w csum */
790 priv->ifp->if_hwassist = priv->hwassist;
791 } else if (hook == priv->lower)
793 else if (hook == priv->orphan)
796 panic("%s: weird hook", __func__);
797 if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0)
798 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook))))
799 ng_rmnode_self(NG_HOOK_NODE(hook)); /* reset node */
803 /******************************************************************
805 ******************************************************************/
808 * Handle loading and unloading for this node type.
811 ng_ether_mod_event(module_t mod, int event, void *data)
820 /* Register function hooks */
821 if (ng_ether_attach_p != NULL) {
825 ng_ether_attach_p = ng_ether_attach;
826 ng_ether_detach_p = ng_ether_detach;
827 ng_ether_output_p = ng_ether_output;
828 ng_ether_input_p = ng_ether_input;
829 ng_ether_input_orphan_p = ng_ether_input_orphan;
830 ng_ether_link_state_p = ng_ether_link_state;
832 ng_ether_ifnet_arrival_cookie =
833 EVENTHANDLER_REGISTER(ifnet_arrival_event,
834 ng_ether_ifnet_arrival_event, NULL, EVENTHANDLER_PRI_ANY);
840 * Note that the base code won't try to unload us until
841 * all nodes have been removed, and that can't happen
842 * until all Ethernet interfaces are removed. In any
843 * case, we know there are no nodes left if the action
844 * is MOD_UNLOAD, so there's no need to detach any nodes.
847 EVENTHANDLER_DEREGISTER(ifnet_arrival_event,
848 ng_ether_ifnet_arrival_cookie);
850 /* Unregister function hooks */
851 ng_ether_attach_p = NULL;
852 ng_ether_detach_p = NULL;
853 ng_ether_output_p = NULL;
854 ng_ether_input_p = NULL;
855 ng_ether_input_orphan_p = NULL;
856 ng_ether_link_state_p = NULL;
868 vnet_ng_ether_init(const void *unused)
872 /* If module load was rejected, don't attach to vnets. */
873 if (ng_ether_attach_p != ng_ether_attach)
876 /* Create nodes for any already-existing Ethernet interfaces. */
878 TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
879 if (ifp->if_type == IFT_ETHER
880 || ifp->if_type == IFT_L2VLAN)
881 ng_ether_attach(ifp);
885 VNET_SYSINIT(vnet_ng_ether_init, SI_SUB_PSEUDO, SI_ORDER_ANY,
886 vnet_ng_ether_init, NULL);