Bug 66017 - [PATCH] net/wmnet2: code cleanup for 64-bit platforms
Summary: [PATCH] net/wmnet2: code cleanup for 64-bit platforms
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-27 08:10 UTC by bel
Modified: 2004-05-13 12:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bel 2004-04-27 08:10:10 UTC
          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.
Comment 1 Ceri Davies freebsd_committer freebsd_triage 2004-04-29 18:27:47 UTC
Class Changed
From-To: sw-bug->change-request

Reassign misfiled PR. 


Comment 2 Ceri Davies freebsd_committer freebsd_triage 2004-04-29 18:27:47 UTC
Responsible Changed
From-To: gnats-admin->freebsd-ports-bugs

Reassign misfiled PR.
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2004-05-11 22:24:38 UTC
Dear maintainer, please review and either reject or approve this patch.

Volker
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2004-05-11 22:25:08 UTC
State Changed
From-To: open->feedback

Forwarded PR to maintainer.
Comment 5 Volker Stolz freebsd_committer freebsd_triage 2004-05-13 12:15:31 UTC
State Changed
From-To: feedback->closed

Committed, thanks!