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

Diff for /src/usr.bin/netstat/main.c between version 1.11 and 1.12

version 1.11, 1997/06/29 20:18:01 version 1.12, 1997/07/23 04:38:33
Line 147 
Line 147 
         { "_espstat"},          { "_espstat"},
 #define N_IP4STAT       38  #define N_IP4STAT       38
         { "_ip4stat"},          { "_ip4stat"},
   #define N_DDPSTAT       39
           { "_ddpstat"},
   #define N_DDPCB         40
           { "_ddpcb"},
         { ""},          { ""},
 };  };
   
Line 213 
Line 217 
           0,            0 }            0,            0 }
 };  };
   
 struct protox *protoprotox[] = { protox, ipxprotox, nsprotox, isoprotox, NULL };  struct protox atalkprotox[] = {
           { N_DDPCB,      N_DDPSTAT,      1,      atalkprotopr,
             ddp_stats,    "ddp" },
           { -1,           -1,             0,      0,
             0,            0 }
   };
   
   struct protox *protoprotox[] = { protox, ipxprotox, nsprotox, isoprotox, atalkprotox, NULL };
   
 static void printproto __P((struct protox *, char *));  static void printproto __P((struct protox *, char *));
 static void usage __P((void));  static void usage __P((void));
 static struct protox *name2protox __P((char *));  static struct protox *name2protox __P((char *));
Line 263 
Line 274 
                                 af = AF_ISO;                                  af = AF_ISO;
                         else if (strcmp(optarg, "encap") == 0)                          else if (strcmp(optarg, "encap") == 0)
                                 af = AF_ENCAP;                                  af = AF_ENCAP;
                           else if (strcmp(optarg, "atalk") == 0)
                                   af = AF_APPLETALK;
                         else {                          else {
                                 (void)fprintf(stderr,                                  (void)fprintf(stderr,
                                     "%s: %s: unknown address family\n",                                      "%s: %s: unknown address family\n",
Line 429 
Line 442 
                         printproto(tp, tp->pr_name);                          printproto(tp, tp->pr_name);
         if ((af == AF_UNIX || af == AF_UNSPEC) && !sflag)          if ((af == AF_UNIX || af == AF_UNSPEC) && !sflag)
                 unixpr(nl[N_UNIXSW].n_value);                  unixpr(nl[N_UNIXSW].n_value);
           if (af == AF_APPLETALK || af == AF_UNSPEC)
                   for (tp = atalkprotox; tp->pr_name; tp++)
                           printproto(tp, tp->pr_name);
         exit(0);          exit(0);
 }  }
   

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12