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

Diff for /src/usr.bin/netstat/route.c between version 1.47 and 1.48

version 1.47, 2002/07/25 03:58:56 version 1.48, 2002/09/19 16:22:33
Line 1058 
Line 1058 
   
                 kget(sen3.sen_ipsp, ipo);                  kget(sen3.sen_ipsp, ipo);
   
                 getnameinfo(&ipo.ipo_dst.sa, ipo.ipo_dst.sa.sa_len,                  if (getnameinfo(&ipo.ipo_dst.sa, ipo.ipo_dst.sa.sa_len,
                     hostn, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);                      hostn, NI_MAXHOST, NULL, 0, NI_NUMERICHOST) != 0)
                           strlcpy (hostn, "none", NI_MAXHOST);
   
                 printf("%s", hostn);                  printf("%s", hostn);
                 printf("/%-u", ipo.ipo_sproto);                  printf("/%-u", ipo.ipo_sproto);
   

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48