diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-10 15:00:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 13:18:46 +0100 |
commit | cc5f4b27059007c215513df730bdd132e6a979f0 (patch) | |
tree | 501c4c022f8f66fa0adfccd794db8d848b044069 /freebsd/sys/net/if_tap.c | |
parent | Disable alternative routing tables (diff) | |
download | rtems-libbsd-cc5f4b27059007c215513df730bdd132e6a979f0.tar.bz2 |
Use default PID value for all process identifiers
Diffstat (limited to 'freebsd/sys/net/if_tap.c')
-rw-r--r-- | freebsd/sys/net/if_tap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/net/if_tap.c b/freebsd/sys/net/if_tap.c index 9e27b809..cd775369 100644 --- a/freebsd/sys/net/if_tap.c +++ b/freebsd/sys/net/if_tap.c @@ -491,7 +491,11 @@ tapopen(struct cdev *dev, int flag, int mode, struct thread *td) } bcopy(IF_LLADDR(tp->tap_ifp), tp->ether_addr, sizeof(tp->ether_addr)); +#ifndef __rtems__ tp->tap_pid = td->td_proc->p_pid; +#else /* __rtems__ */ + tp->tap_pid = BSD_DEFAULT_PID; +#endif /* __rtems__ */ tp->tap_flags |= TAP_OPEN; ifp = tp->tap_ifp; |