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

Diff for /src/usr.bin/systat/pftop.c between version 1.14 and 1.15

version 1.14, 2009/11/23 21:30:14 version 1.15, 2010/07/22 12:33:29
Line 708 
Line 708 
 void  void
 tb_print_addr(struct pf_addr * addr, struct pf_addr * mask, int af)  tb_print_addr(struct pf_addr * addr, struct pf_addr * mask, int af)
 {  {
         static char buf[48];                  switch (af) {
         const char *bf;                  case AF_INET: {
                           tbprintf("%s", inetname(addr->v4));
         bf = inet_ntop(af, addr, buf, sizeof(buf));                          break;
         tbprintf("%s", bf);                  }
                   case AF_INET6: {
                           tbprintf("%s", inet6name(&addr->v6));
                           break;
                   }
           }
   
         if (mask != NULL) {          if (mask != NULL) {
                 if (!PF_AZERO(mask, af))                  if (!PF_AZERO(mask, af))

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15