wmnet2 does not show network traffic. Fix: Apply attached patch or download it from <http://www.orel.ru/~bel/patches/wmnet2.patch> --- patch-pp begins here --- --- drivers.c.orig Tue Apr 27 09:22:02 2004 +++ drivers.c Tue Apr 27 09:32:19 2004 @@ -47,7 +47,7 @@ #include <sys/errno.h> int id = 0; /* interface id */ -int len = 0; /* sizeof libmibdata */ +size_t len = 0; /* sizeof libmibdata */ struct ifmibdata *data = NULL; int sysctl_test(void); @@ -128,7 +128,7 @@ char* available_drivers(void) { int ind = 0; - int len = 0; + size_t len = 0; char *string, *ptr; while(drivers[ind].name != NULL) { len += strlen(drivers[ind].name) + 1; @@ -464,7 +464,8 @@ int sysctl_test(void) { struct ifmibdata tempndata; - int numifaces, len2; + int numifaces; + size_t len2; int mib[5], datamib[6]; int i; --- getopt.c.orig Fri Oct 9 10:59:00 1998 +++ getopt.c Tue Apr 27 09:57:46 2004 @@ -209,6 +209,8 @@ char *getenv (); extern int strncmp(const char *s1, const char *s2, size_t len); +extern int strcmp(const char *, const char *); +extern size_t strlen(const char *); static char * my_index (str, chr) --- patch-pp ends here --- How-To-Repeat: Build port and run wmnet2.
Class Changed From-To: sw-bug->change-request Reassign misfiled PR.
Responsible Changed From-To: gnats-admin->freebsd-ports-bugs Reassign misfiled PR.
Dear maintainer, please review and either reject or approve this patch. Volker
State Changed From-To: open->feedback Forwarded PR to maintainer.
State Changed From-To: feedback->closed Committed, thanks!