blob: b5f133bcb3cd7be630c92bae6c8eba12fda7e334 [file] [log] [blame]
JP Abgrall53f17a92014-02-12 14:02:41 -08001/* @(#) $Header: /tcpdump/master/tcpdump/igrp.h,v 1.6 2002-12-11 07:13:52 guy Exp $ (LBL) */
The Android Open Source Project2949f582009-03-03 19:30:46 -08002/* Cisco IGRP definitions */
3
4/* IGRP Header */
5
6struct igrphdr {
7 u_int8_t ig_vop; /* protocol version number / opcode */
8#define IGRP_V(x) (((x) & 0xf0) >> 4)
9#define IGRP_OP(x) ((x) & 0x0f)
10 u_int8_t ig_ed; /* edition number */
11 u_int16_t ig_as; /* autonomous system number */
12 u_int16_t ig_ni; /* number of subnet in local net */
13 u_int16_t ig_ns; /* number of networks in AS */
14 u_int16_t ig_nx; /* number of networks ouside AS */
15 u_int16_t ig_sum; /* checksum of IGRP header & data */
16};
17
18#define IGRP_UPDATE 1
19#define IGRP_REQUEST 2
20
21/* IGRP routing entry */
22
23struct igrprte {
24 u_int8_t igr_net[3]; /* 3 significant octets of IP address */
25 u_int8_t igr_dly[3]; /* delay in tens of microseconds */
26 u_int8_t igr_bw[3]; /* bandwidth in units of 1 kb/s */
27 u_int8_t igr_mtu[2]; /* MTU in octets */
28 u_int8_t igr_rel; /* percent packets successfully tx/rx */
29 u_int8_t igr_ld; /* percent of channel occupied */
30 u_int8_t igr_hct; /* hop count */
31};
32
33#define IGRP_RTE_SIZE 14 /* don't believe sizeof ! */