Mechanically convert to if_inc_counter().

This commit is contained in:
Gleb Smirnoff 2014-09-19 10:18:14 +00:00
parent dea4512157
commit 6ff8af1ca5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271862
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -441,8 +441,8 @@ ipsec4_process_packet(
sav = isr->sav;
#ifdef DEV_ENC
encif->if_opackets++;
encif->if_obytes += m->m_pkthdr.len;
if_inc_counter(encif, IFCOUNTER_OPACKETS, 1);
if_inc_counter(encif, IFCOUNTER_OBYTES, m->m_pkthdr.len);
/* pass the mbuf to enc0 for bpf processing */
ipsec_bpf(m, sav, AF_INET, ENC_OUT|ENC_BEFORE);
@ -641,8 +641,8 @@ ipsec6_process_packet(
dst = &sav->sah->saidx.dst;
#ifdef DEV_ENC
encif->if_opackets++;
encif->if_obytes += m->m_pkthdr.len;
if_inc_counter(encif, IFCOUNTER_OPACKETS, 1);
if_inc_counter(encif, IFCOUNTER_OBYTES, m->m_pkthdr.len);
/* pass the mbuf to enc0 for bpf processing */
ipsec_bpf(m, isr->sav, AF_INET6, ENC_OUT|ENC_BEFORE);