It seems that with rev 1.72 of /src/sys/net/if_tun.c, if_ibytes and
if_ipackets are no long updated in tunread().  I don't know why this was
taken out, but these stats were nice for programs like wmnet.  The
following patch restores this function and works for me, although I may
be missing something; the commit log for 1.72 is rather terse =-)

Thanks!

Scott


Index: if_tun.c
===================================================================
RCS file: /usr1/ncvs/src/sys/net/if_tun.c,v
retrieving revision 1.73
diff -u -r1.73 if_tun.c
--- if_tun.c    2000/01/29 01:10:24     1.73
+++ if_tun.c    2000/02/09 06:12:36
@@ -674,6 +674,9 @@
        } else
                family = AF_INET;
 
+       ifp->if_ibytes += tlen;
+       ifp->if_ipackets++;
+
        return family_enqueue(family, top);
 }


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to