diff options
author | brian <brian@cvs.openbsd.org> | 1998-08-02 07:17:45 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-08-02 07:17:45 +0000 |
commit | b882b8621d1e8f3cf2dd67216a043e9e8b6a6d01 (patch) | |
tree | bb9ce640f1a0d7b8db4e31b1ddff664a7ca5e9a2 /sys/net/if_tun.c | |
parent | e75c0fd941120d2838bfbde34f03ecc853c9b921 (diff) |
#define TUNMRU as 16384 and allow incoming packets
of up to this size rather than restricting them based
on our MTU.
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index bc2b30af73d..94e308eea18 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.23 1998/06/26 09:14:39 deraadt Exp $ */ +/* $OpenBSD: if_tun.c,v 1.24 1998/08/02 07:17:43 brian Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -555,7 +555,7 @@ tunwrite(dev, uio, ioflag) ifp = &tunctl[unit].tun_if; TUNDEBUG(("%s: tunwrite\n", ifp->if_xname)); - if (uio->uio_resid < 0 || uio->uio_resid > ifp->if_mtu) { + if (uio->uio_resid < 0 || uio->uio_resid > TUNMRU) { TUNDEBUG(("%s: len=%d!\n", ifp->if_xname, uio->uio_resid)); return EMSGSIZE; } |