diff options
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 7c166b7..ed3d873 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -934,10 +934,14 @@ sendorfree: for (m = m0; m; m = m0) { m0 = m->m_nextpkt; m->m_nextpkt = 0; - if (error == 0) + if (error == 0) { + /* Record statistics for this interface address. */ + ia->ia_ifa.if_opackets++; + ia->ia_ifa.if_obytes += m->m_pkthdr.len; + error = (*ifp->if_output)(ifp, m, (struct sockaddr *)dst, ro->ro_rt); - else + } else m_freem(m); } |