home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / tcpdumpb.zip / igrp.h < prev    next >
C/C++ Source or Header  |  1996-07-15  |  1KB  |  37 lines

  1. /* Cisco IGRP definitions */
  2.  
  3. /* IGRP Header */
  4.  
  5. struct igrphdr {
  6. #if BYTE_ORDER == LITTLE_ENDIAN
  7.     u_char ig_op:4;        /* opcode */
  8.     u_char ig_v:4;        /* protocol version number */
  9. #else
  10.     u_char ig_v:4;        /* protocol version number */
  11.     u_char ig_op:4;        /* opcode */
  12. #endif
  13.     u_char ig_ed;        /* edition number */
  14.     u_short ig_as;        /* autonomous system number */
  15.     u_short ig_ni;        /* number of subnet in local net */
  16.     u_short ig_ns;        /* number of networks in AS */
  17.     u_short ig_nx;        /* number of networks ouside AS */
  18.     u_short ig_sum;        /* checksum of IGRP header & data */
  19. };
  20.  
  21. #define IGRP_UPDATE    1
  22. #define IGRP_REQUEST    2
  23.  
  24. /* IGRP routing entry */
  25.  
  26. struct igrprte {
  27.     u_char igr_net[3];    /* 3 significant octets of IP address */
  28.     u_char igr_dly[3];    /* delay in tens of microseconds */
  29.     u_char igr_bw[3];    /* bandwidth in units of 1 kb/s */
  30.     u_char igr_mtu[2];    /* MTU in octets */
  31.     u_char igr_rel;        /* percent packets successfully tx/rx */
  32.     u_char igr_ld;        /* percent of channel occupied */
  33.     u_char igr_hct;        /* hop count */
  34. };
  35.  
  36. #define IGRP_RTE_SIZE    14    /* don't believe sizeof ! */
  37.