diff options
author | glebius <glebius@FreeBSD.org> | 2014-09-19 10:18:14 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-09-19 10:18:14 +0000 |
commit | 56e9d8032968a69de5184a445d47b6f0b5636b14 (patch) | |
tree | 87fbf19915889d9fc1801b45e046376bec3ab891 /sys/netipsec/ipsec_input.c | |
parent | 2ca697202cdd049031824b81211dca7d1ad78489 (diff) | |
download | FreeBSD-src-56e9d8032968a69de5184a445d47b6f0b5636b14.zip FreeBSD-src-56e9d8032968a69de5184a445d47b6f0b5636b14.tar.gz |
Mechanically convert to if_inc_counter().
Diffstat (limited to 'sys/netipsec/ipsec_input.c')
-rw-r--r-- | sys/netipsec/ipsec_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c index 717ae9a..a305bb6 100644 --- a/sys/netipsec/ipsec_input.c +++ b/sys/netipsec/ipsec_input.c @@ -376,8 +376,8 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav, prot = ip->ip_p; #ifdef DEV_ENC - encif->if_ipackets++; - encif->if_ibytes += m->m_pkthdr.len; + if_inc_counter(encif, IFCOUNTER_IPACKETS, 1); + if_inc_counter(encif, IFCOUNTER_IBYTES, m->m_pkthdr.len); /* * Pass the mbuf to enc0 for bpf and pfil. We will filter the IPIP @@ -663,8 +663,8 @@ ipsec6_common_input_cb(struct mbuf *m, struct secasvar *sav, int skip, int proto m_copydata(m, protoff, 1, (unsigned char *) &prot); #ifdef DEV_ENC - encif->if_ipackets++; - encif->if_ibytes += m->m_pkthdr.len; + if_inc_counter(encif, IFCOUNTER_IPACKETS, 1); + if_inc_counter(encif, IFCOUNTER_IBYTES, m->m_pkthdr.len); /* * Pass the mbuf to enc0 for bpf and pfil. We will filter the IPIP |