]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/tcpdump/igrp.h
This commit was generated by cvs2svn to compensate for changes in r51292,
[FreeBSD/FreeBSD.git] / contrib / tcpdump / igrp.h
1 /* Cisco IGRP definitions */
2
3 /* IGRP Header */
4
5 struct igrphdr {
6 #ifdef WORDS_BIGENDIAN
7         u_char ig_v:4;          /* protocol version number */
8         u_char ig_op:4;         /* opcode */
9 #else
10         u_char ig_op:4;         /* opcode */
11         u_char ig_v:4;          /* protocol version number */
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 ! */