Index: net/bsd_tcpip/current/ChangeLog =================================================================== RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/ChangeLog,v retrieving revision 1.65 diff -u -5 -p -r1.65 ChangeLog --- net/bsd_tcpip/current/ChangeLog 11 Sep 2007 16:37:53 -0000 1.65 +++ net/bsd_tcpip/current/ChangeLog 27 Sep 2007 11:13:44 -0000 @@ -1,5 +1,10 @@ +2007-09-27 Gary Thomas + + * src/sys/net/if.c (ifioctl): Add missing ioctl functions + (SIOCGIFSTATSUD, SIOCGIFSTATS) Reported by Emmanuel Coullien. + 2007-09-11 Daniel NĂ©ri * include/sys/socketvar.h: Fix very old and subtle macro bug. From FreeBSD revision 1.141.2.3 (RELENG_6 branch): "correctly return an error if M_NOWAIT is passed to sblock() and the operation might Index: net/bsd_tcpip/current/src/sys/net/if.c =================================================================== RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/src/sys/net/if.c,v retrieving revision 1.7 diff -u -5 -p -r1.7 if.c --- net/bsd_tcpip/current/src/sys/net/if.c 30 Jul 2005 11:23:30 -0000 1.7 +++ net/bsd_tcpip/current/src/sys/net/if.c 27 Sep 2007 11:13:45 -0000 @@ -1252,10 +1252,12 @@ ifioctl(so, cmd, data, p) case SIOCGIFPSRCADDR: case SIOCGIFPDSTADDR: case SIOCGLIFPHYADDR: case SIOCGIFMEDIA: case SIOCGIFGENERIC: + case SIOCGIFSTATS: + case SIOCGIFSTATSUD: if (ifp->if_ioctl == 0) return (EOPNOTSUPP); return ((*ifp->if_ioctl)(ifp, cmd, data)); case SIOCSIFLLADDR: