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

Diff for /src/usr.bin/netstat/inet.c between version 1.87 and 1.88

version 1.87, 2004/04/28 01:53:45 version 1.88, 2004/09/09 10:30:23
Line 225 
Line 225 
                         else                          else
                                 printf(" %s", tcpstates[tcpcb.t_state]);                                  printf(" %s", tcpstates[tcpcb.t_state]);
                 } else if (israw) {                  } else if (israw) {
                         struct protoent *pe = NULL;  
                         u_int8_t proto;                          u_int8_t proto;
 #ifdef INET6  #ifdef INET6
                         if (inpcb.inp_flags & INP_IPV6)                          if (inpcb.inp_flags & INP_IPV6)
Line 233 
Line 232 
                         else                          else
 #endif  #endif
                                 proto = inpcb.inp_ip.ip_p;                                  proto = inpcb.inp_ip.ip_p;
                         if (!nflag)                          printf(" %u", proto);
                                 pe = getprotobynumber(proto);  
                         if (pe)  
                                 printf(" %s", pe->p_name);  
                         else  
                                 printf(" %u", proto);  
                 }                  }
                 putchar('\n');                  putchar('\n');
         }          }

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.88