diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-08-09 10:09:13 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-08-09 10:09:13 +0000 |
commit | 2890459c5b942e808a4a0b8a5f352cb21e345748 (patch) | |
tree | 84cf4a4a566c6a39bd0a14c1623c57db36fe9f82 /sys/net | |
parent | 2cacc0e92101097ac0b919311f0b33aa268c8170 (diff) |
Tag packets into correct rdomain in tunwrite(). For L2 traffic this will be
done in ether_input() but L3 traffic needs to do it self.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_tun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 1f3f28d69a9..ad5507edf6f 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.98 2009/08/02 19:50:16 mpf Exp $ */ +/* $OpenBSD: if_tun.c,v 1.99 2009/08/09 10:09:12 claudio Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -931,6 +931,7 @@ tunwrite(dev_t dev, struct uio *uio, int ioflag) top->m_data += sizeof(*th); top->m_len -= sizeof(*th); top->m_pkthdr.len -= sizeof(*th); + top->m_pkthdr.rdomain = ifp->if_rdomain; switch (ntohl(*th)) { #ifdef INET |