summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-06-24 09:40:53 +0000
committermpi <mpi@openbsd.org>2015-06-24 09:40:53 +0000
commitdb4dc9aafbed936e879d4362ca141e998a6e925c (patch)
treedf98e73a3cab3c7738c665fd003541280cfc7446 /sys/netinet
parentIntroduce Linux work queue APIs and use them. As a side-effect, this will (diff)
downloadwireguard-openbsd-db4dc9aafbed936e879d4362ca141e998a6e925c.tar.xz
wireguard-openbsd-db4dc9aafbed936e879d4362ca141e998a6e925c.zip
Increment if_ipackets in if_input().
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 76bd3a3367d..5916e1b2fa7 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.260 2015/06/16 11:09:40 mpi Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.261 2015/06/24 09:40:55 mpi Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -1456,7 +1456,6 @@ carp_input(struct mbuf *m)
ml_enqueue(&ml, m0);
if_input(&vh->sc_if, &ml);
- vh->sc_if.if_ipackets++;
}
return (0);
@@ -1476,7 +1475,6 @@ carp_input(struct mbuf *m)
ml_enqueue(&ml, m);
if_input(ifp, &ml);
- ifp->if_ipackets++;
return (1);
}