]> The Tcpdump Group git mirrors - tcpdump/blob - igrp.h
corrected bitfield fix (careless char -> int rewrite broke struct for
[tcpdump] / igrp.h
1 /* Cisco IGRP definitions */
2
3 /* IGRP Header */
4
5 struct igrphdr {
6 u_int8_t ig_vop; /* protocol version number / opcode */
7 #define IGRP_V(x) (((x) & 0xf0) >> 4)
8 #define IGRP_OP(x) ((x) & 0x0f)
9 u_int8_t ig_ed; /* edition number */
10 u_int16_t ig_as; /* autonomous system number */
11 u_int16_t ig_ni; /* number of subnet in local net */
12 u_int16_t ig_ns; /* number of networks in AS */
13 u_int16_t ig_nx; /* number of networks ouside AS */
14 u_int16_t ig_sum; /* checksum of IGRP header & data */
15 };
16
17 #define IGRP_UPDATE 1
18 #define IGRP_REQUEST 2
19
20 /* IGRP routing entry */
21
22 struct igrprte {
23 u_int8_t igr_net[3]; /* 3 significant octets of IP address */
24 u_int8_t igr_dly[3]; /* delay in tens of microseconds */
25 u_int8_t igr_bw[3]; /* bandwidth in units of 1 kb/s */
26 u_int8_t igr_mtu[2]; /* MTU in octets */
27 u_int8_t igr_rel; /* percent packets successfully tx/rx */
28 u_int8_t igr_ld; /* percent of channel occupied */
29 u_int8_t igr_hct; /* hop count */
30 };
31
32 #define IGRP_RTE_SIZE 14 /* don't believe sizeof ! */