diff options
author | 2010-09-23 04:47:02 +0000 | |
---|---|---|
committer | 2010-09-23 04:47:02 +0000 | |
commit | 7ebb11bac44109e680a0d212a15853ac0127801b (patch) | |
tree | 360a26b1db0f324dd765dfeb76f82d2a04dfa8d1 | |
parent | add a new IP level socket option IP_PIPEX. This option is used for L2TP (diff) | |
download | wireguard-openbsd-7ebb11bac44109e680a0d212a15853ac0127801b.tar.xz wireguard-openbsd-7ebb11bac44109e680a0d212a15853ac0127801b.zip |
If tunread() fails, we should increment if_oerrors, not if_ierrors.
"yup" deraadt@
-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 ba9ce52790d..d9f6e7a27c0 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.108 2010/09/22 05:44:27 matthew Exp $ */ +/* $OpenBSD: if_tun.c,v 1.109 2010/09/23 04:47:02 matthew Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -818,7 +818,7 @@ tunread(dev_t dev, struct uio *uio, int ioflag) m_freem(m0); } if (error) - ifp->if_ierrors++; + ifp->if_oerrors++; return (error); } |