diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-10 14:45:09 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 13:18:46 +0100 |
commit | 549488b572aa21e4e45e8d36607ac6ea20ee8751 (patch) | |
tree | 89bb7694029fa14178df3bc99b7d1adc97a53075 /freebsd/sys/net/if_gif.c | |
parent | Delete struct proc p_mtx lock (diff) | |
download | rtems-libbsd-549488b572aa21e4e45e8d36607ac6ea20ee8751.tar.bz2 |
Disable alternative routing tables
Diffstat (limited to 'freebsd/sys/net/if_gif.c')
-rw-r--r-- | freebsd/sys/net/if_gif.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/net/if_gif.c b/freebsd/sys/net/if_gif.c index b6c6111c..d9144419 100644 --- a/freebsd/sys/net/if_gif.c +++ b/freebsd/sys/net/if_gif.c @@ -162,7 +162,11 @@ gif_clone_create(ifc, unit, params) struct gif_softc *sc; sc = malloc(sizeof(struct gif_softc), M_GIF, M_WAITOK | M_ZERO); +#ifndef __rtems__ sc->gif_fibnum = curthread->td_proc->p_fibnum; +#else /* __rtems__ */ + sc->gif_fibnum = BSD_DEFAULT_FIB; +#endif /* __rtems__ */ GIF2IFP(sc) = if_alloc(IFT_GIF); if (GIF2IFP(sc) == NULL) { free(sc, M_GIF); |