diff options
author | 2015-10-05 15:52:46 +0000 | |
---|---|---|
committer | 2015-10-05 15:52:46 +0000 | |
commit | 68d93c8ba5f873fb00eaee65be1e3d85a34a176a (patch) | |
tree | 10b979218f1e58e5fa19204349ad4ef59ff1f14a /sys/netinet | |
parent | Remove unused errstr variable. (diff) | |
download | wireguard-openbsd-68d93c8ba5f873fb00eaee65be1e3d85a34a176a.tar.xz wireguard-openbsd-68d93c8ba5f873fb00eaee65be1e3d85a34a176a.zip |
Don't count IF_DROP()'ed packets as if_oerrors too.
mpi@ plans to clean-up IF_DROP()'s, but fix consistent use of it for now.
OK dlg@
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_carp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index e62a6497db8..3d1382797e5 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.273 2015/09/28 08:36:24 mpi Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.274 2015/10/05 15:52:46 uebayasi Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -2390,7 +2390,6 @@ carp_start(struct ifnet *ifp) if ((ifp->if_carpdev->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) { IF_DROP(&ifp->if_carpdev->if_snd); - ifp->if_oerrors++; m_freem(m); continue; } |