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

Diff for /src/usr.bin/netstat/Attic/ipx.c between version 1.17 and 1.18

version 1.17, 2005/03/30 06:45:34 version 1.18, 2005/10/17 19:09:36
Line 98 
Line 98 
         isspx = strcmp(name, "spx") == 0;          isspx = strcmp(name, "spx") == 0;
         kread(off, &table, sizeof (table));          kread(off, &table, sizeof (table));
         prev = head = (struct ipxpcb *)          prev = head = (struct ipxpcb *)
                 &((struct ipxpcbtable *)off)->ipxpt_queue.cqh_first;                  &CIRCLEQ_FIRST(&((struct ipxpcbtable *)off)->ipxpt_queue);
         next = table.ipxpt_queue.cqh_first;          next = CIRCLEQ_FIRST(&table.ipxpt_queue);
   
         while (next != head) {          while (next != head) {
                 kread((u_long)next, &ipxpcb, sizeof (ipxpcb));                  kread((u_long)next, &ipxpcb, sizeof (ipxpcb));
                 if (ipxpcb.ipxp_queue.cqe_prev != prev) {                  if (CIRCLEQ_PREV(&ipxpcb, ipxp_queue) != prev) {
                         printf("???\n");                          printf("???\n");
                         break;                          break;
                 }                  }
                 prev = next;                  prev = next;
                 next = ipxpcb.ipxp_queue.cqe_next;                  next = CIRCLEQ_NEXT(&ipxpcb, ipxp_queue);
   
                 if (!aflag && ipx_nullhost(ipxpcb.ipxp_faddr) )                  if (!aflag && ipx_nullhost(ipxpcb.ipxp_faddr) )
                         continue;                          continue;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18