[BACK]Return to unix.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / netstat

Diff for /src/usr.bin/netstat/unix.c between version 1.21 and 1.22

version 1.21, 2013/10/22 16:40:28 version 1.22, 2013/11/09 20:04:13
Line 59 
Line 59 
 unixpr(kvm_t *kvmd, u_long pcbaddr)  unixpr(kvm_t *kvmd, u_long pcbaddr)
 {  {
         struct kinfo_file *kf;          struct kinfo_file *kf;
         struct socket sock, *so = &sock;  
         int i, fcnt;          int i, fcnt;
   
         kf = kvm_getfiles(kvmd, KERN_FILE_BYFILE, 0, sizeof(*kf), &fcnt);          kf = kvm_getfiles(kvmd, KERN_FILE_BYFILE, 0, sizeof(*kf), &fcnt);
Line 99 
Line 98 
         }          }
   
 #define FAKE_PTR(p)     (PLEN - ((p) ? 0 : 2)), p, ((p) ? "" : "x0")  #define FAKE_PTR(p)     (PLEN - ((p) ? 0 : 2)), p, ((p) ? "" : "x0")
         printf("%#*llx%s %-6.6s %6ld %6ld %#*llx%s %#*llx%s %#*llx%s %#*llx%s",          printf("%#*llx%s %-6.6s %6llu %6llu %#*llx%s %#*llx%s %#*llx%s %#*llx%s",
             FAKE_PTR(kf->f_data), socktype[kf->so_type],              FAKE_PTR(kf->f_data), socktype[kf->so_type],
             kf->so_rcv_cc, kf->so_snd_cc,              kf->so_rcv_cc, kf->so_snd_cc,
             FAKE_PTR(kf->v_un),              FAKE_PTR(kf->v_un),

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22