diff options
author | 2019-02-03 23:04:49 +0000 | |
---|---|---|
committer | 2019-02-03 23:04:49 +0000 | |
commit | a3e3357943f526c88edcf1bc178dbeaeefda0f9f (patch) | |
tree | 65aaa79d426026d7ef5ef7ca08803a3dfb130fe6 | |
parent | add 6.6 base key (diff) | |
download | wireguard-openbsd-a3e3357943f526c88edcf1bc178dbeaeefda0f9f.tar.xz wireguard-openbsd-a3e3357943f526c88edcf1bc178dbeaeefda0f9f.zip |
let tun read AF_MPLS packets from userland.
-rw-r--r-- | sys/net/if_tun.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 5675650c7b3..b8b0146bd6c 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.183 2018/12/11 01:34:10 dlg Exp $ */ +/* $OpenBSD: if_tun.c,v 1.184 2019/02/03 23:04:49 dlg Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -74,6 +74,10 @@ #include <net/bpf.h> #endif +#ifdef MPLS +#include <netmpls/mpls.h> +#endif /* MPLS */ + #include <net/if_tun.h> struct tun_softc { @@ -935,6 +939,11 @@ tun_dev_write(struct tun_softc *tp, struct uio *uio, int ioflag) ipv6_input(ifp, top); break; #endif +#ifdef MPLS + case AF_MPLS: + mpls_input(ifp, top); + break; +#endif default: m_freem(top); error = EAFNOSUPPORT; |