diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-21 14:35:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-23 09:24:06 +0200 |
commit | e846288593f42b90aa4b726badafc747a5ecdbf4 (patch) | |
tree | 40518df299a5a185f981a22477aefb3d7c6372a9 /freebsd/sys/net/if_var.h | |
parent | dpaa: Get c45 ids (diff) | |
download | rtems-libbsd-e846288593f42b90aa4b726badafc747a5ecdbf4.tar.bz2 |
Add rtems_bsd_set_if_input()
Diffstat (limited to 'freebsd/sys/net/if_var.h')
-rw-r--r-- | freebsd/sys/net/if_var.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/freebsd/sys/net/if_var.h b/freebsd/sys/net/if_var.h index e5d5c760..c4601694 100644 --- a/freebsd/sys/net/if_var.h +++ b/freebsd/sys/net/if_var.h @@ -354,13 +354,27 @@ struct ifnet { if_snd_tag_query_t *if_snd_tag_query; if_snd_tag_free_t *if_snd_tag_free; +#ifndef __rtems__ /* * Spare fields to be added before branching a stable branch, so * that structure can be enhanced without changing the kernel * binary interface. */ int if_ispare[4]; /* general use */ +#else /* __rtems__ */ + void *if_input_arg; +#endif /* __rtems__ */ }; +#ifdef __rtems__ +struct rtems_ifinputreq { + char ifr_name[IFNAMSIZ]; + void *arg; + void (*init)(struct ifnet *, void *); + void (*new_if_input)(struct ifnet *, struct mbuf *); + void (*old_if_input)(struct ifnet *, struct mbuf *); +}; +#define RTEMS_SIOSIFINPUT _IOWR('i', 255, struct rtems_ifinputreq) +#endif /* __rtems__ */ /* for compatibility with other BSDs */ #define if_name(ifp) ((ifp)->if_xname) |