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

Diff for /src/usr.bin/netstat/Attic/iso.c between version 1.10 and 1.11

version 1.10, 2002/05/27 01:50:36 version 1.11, 2003/02/01 01:51:31
Line 120 
Line 120 
  *      Dump esis stats   *      Dump esis stats
  */   */
 void  void
 esis_stats(off, name)  esis_stats(u_long off, char *name)
         u_long  off;  
         char    *name;  
 {  {
         struct esis_stat esis_stat;          struct esis_stat esis_stat;
   
Line 149 
Line 147 
  * Dump clnp statistics structure.   * Dump clnp statistics structure.
  */   */
 void  void
 clnp_stats(off, name)  clnp_stats(u_long off, char *name)
         u_long off;  
         char *name;  
 {  {
         struct clnp_stat clnp_stat;          struct clnp_stat clnp_stat;
   
Line 184 
Line 180 
  * Dump CLTP statistics structure.   * Dump CLTP statistics structure.
  */   */
 void  void
 cltp_stats(off, name)  cltp_stats(u_long off, char *name)
         u_long off;  
         char *name;  
 {  {
         struct cltpstat cltpstat;          struct cltpstat cltpstat;
   
Line 220 
Line 214 
  * -a (all) flag is specified.   * -a (all) flag is specified.
  */   */
 void  void
 iso_protopr(off, name)  iso_protopr(u_long off, char *name)
         u_long off;  
         char *name;  
 {  {
         struct isopcb cb;          struct isopcb cb;
         struct isopcb *prev, *next;          struct isopcb *prev, *next;
Line 257 
Line 249 
 }  }
   
 void  void
 iso_protopr1(kern_addr, istp)  iso_protopr1(u_long kern_addr, int istp)
         u_long kern_addr;  
         int istp;  
 {  {
         if (first) {          if (first) {
                 printf("Active ISO net connections");                  printf("Active ISO net connections");
Line 284 
Line 274 
         printf("%-5.5s %6ld %6ld ", "tp", sockb.so_rcv.sb_cc,          printf("%-5.5s %6ld %6ld ", "tp", sockb.so_rcv.sb_cc,
             sockb.so_snd.sb_cc);              sockb.so_snd.sb_cc);
         if (istp && tpcb.tp_lsuffixlen) {          if (istp && tpcb.tp_lsuffixlen) {
                         hexprint(tpcb.tp_lsuffixlen, tpcb.tp_lsuffix, "()");                  hexprint(tpcb.tp_lsuffixlen, tpcb.tp_lsuffix, "()");
                         printf("\t");                  printf("\t");
         } else if (isopcb.isop_laddr == 0)          } else if (isopcb.isop_laddr == 0)
                         printf("*.*\t");                  printf("*.*\t");
         else {          else {
                 if ((char *)isopcb.isop_laddr == ((char *)kern_addr) +                  if ((char *)isopcb.isop_laddr == ((char *)kern_addr) +
                     _offsetof(struct isopcb, isop_sladdr))                      _offsetof(struct isopcb, isop_sladdr))
Line 312 
Line 302 
 }  }
   
 void  void
 tp_protopr(off, name)  tp_protopr(u_long off, char *name)
         u_long off;  
         char *name;  
 {  {
         extern char *tp_sstring[];          extern char *tp_sstring[];
         struct tp_ref *tpr, *tpr_base;          struct tp_ref *tpr, *tpr_base;
Line 358 
Line 346 
 }  }
   
 void  void
 tp_inproto(pcb)  tp_inproto(u_long pcb)
         u_long pcb;  
 {  {
         struct inpcb inpcb;          struct inpcb inpcb;
   
Line 381 
Line 368 
   
 #ifdef notdef  #ifdef notdef
 char *  char *
 isonetname(iso)  isonetname(struct iso_addr *iso)
         struct iso_addr *iso;  
 {  {
         struct sockaddr_iso sa;          struct sockaddr_iso sa;
         struct iso_hostent *ihe = 0;          struct iso_hostent *ihe = 0;
Line 413 
Line 399 
 }  }
   
 static void  static void
 isonetprint(iso, sufx, sufxlen, islocal)  isonetprint(struct iso_addr *iso, char *sufx, u_short sufxlen, int islocal)
         struct iso_addr *iso;  
         char *sufx;  
         u_short sufxlen;  
         int islocal;  
 {  {
         struct iso_hostent *iso_getserventrybytsel(), *ihe;          struct iso_hostent *iso_getserventrybytsel(), *ihe;
         struct iso_hostent Ihe;          struct iso_hostent Ihe;
Line 457 
Line 439 
                 }                  }
         } else          } else
                 snprintf(cp, line + sizeof line - cp, "*");                  snprintf(cp, line + sizeof line - cp, "*");
         /*  
         fprintf(stdout, Aflag?" %-18.18s":" %-22.22s", line);  
         */  
   
         if (strlen(line) > Alen ) {          if (strlen(line) > Alen ) {
                 fprintf(stdout, " %s", line);                  fprintf(stdout, " %s", line);
Line 472 
Line 451 
   
 #ifdef notdef  #ifdef notdef
 static void  static void
 x25_protopr(off, name)  x25_protopr(u_long off, char *name)
         u_long off;  
         char *name;  
 {  {
         static char *xpcb_states[] = {          static char *xpcb_states[] = {
                 "CLOSED",                  "CLOSED",
Line 546 
Line 523 
 struct  tp_stat tp_stat;  struct  tp_stat tp_stat;
   
 void  void
 tp_stats(off, name)  tp_stats(caddr_t off, char *name)
         caddr_t off, name;  
 {  {
         if (off == 0) {          if (off == 0) {
                 printf("TP not configured\n\n");                  printf("TP not configured\n\n");
Line 561 
Line 537 
 #define OUT stdout  #define OUT stdout
   
 static void  static void
 tprintstat(s, indent)  tprintstat(struct tp_stat *s, int indent)
         struct tp_stat *s;  
         int indent;  
 {  {
         fprintf(OUT,          fprintf(OUT,
             "%*sReceiving:\n",indent," ");              "%*sReceiving:\n",indent," ");
Line 806 
Line 780 
 #endif  #endif
   
 static void  static void
 isonetprint(siso, islocal)  isonetprint(struct sockaddr_iso *siso, int islocal)
         struct sockaddr_iso *siso;  
         int islocal;  
 {  {
         hexprint(siso->siso_nlen, siso->siso_addr.isoa_genaddr, "{}");          hexprint(siso->siso_nlen, siso->siso_addr.isoa_genaddr, "{}");
         if (siso->siso_tlen || siso->siso_slen || siso->siso_plen)          if (siso->siso_tlen || siso->siso_slen || siso->siso_plen)
Line 823 
Line 795 
 static char hexlist[] = "0123456789abcdef", obuf[128];  static char hexlist[] = "0123456789abcdef", obuf[128];
   
 static void  static void
 hexprint(n, buf, delim)  hexprint(int n, char *buf, char *delim)
         int n;  
         char *buf, *delim;  
 {  {
         u_char *in = (u_char *)buf, *top = in + n;          u_char *in = (u_char *)buf, *top = in + n;
         char *out = obuf;          char *out = obuf;

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