[BACK]Return to if.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / net

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/net/if.c between version 1.188 and 1.189

version 1.188, 2007/05/30 21:02:03 version 1.189, 2007/05/31 02:56:50
Line 1618  ifconf(u_long cmd, void *data)
Line 1618  ifconf(u_long cmd, void *data)
         struct ifaddr *ifa;          struct ifaddr *ifa;
         struct ifreq ifr, *ifrp;          struct ifreq ifr, *ifrp;
         int space = ifc->ifc_len, error = 0;          int space = ifc->ifc_len, error = 0;
         const int sz = (int)sizeof(ifr);          const size_t sz = offsetof(struct ifreq, ifr_ifru) +
               sizeof(sizeof (struct sockaddr));
         int sign;          int sign;
   
         if ((ifrp = ifc->ifc_req) == NULL) {          if ((ifrp = ifc->ifc_req) == NULL) {
Line 1640  ifconf(u_long cmd, void *data)
Line 1641  ifconf(u_long cmd, void *data)
                                         break;                                          break;
                                 ifrp++;                                  ifrp++;
                         }                          }
                         space -= sizeof(ifr) * sign;                          space -= sz * sign;
                         continue;                          continue;
                 }                  }
   

Legend:
Removed from v.1.188  
changed lines
  Added in v.1.189

CVSweb <webmaster@jp.NetBSD.org>