2001-04-03 07:45:48 +00:00
|
|
|
/* @(#) $Header: /tcpdump/master/tcpdump/igrp.h,v 1.4 2000/12/17 23:07:49 guy Exp $ (LBL) */
|
1996-08-19 20:34:12 +00:00
|
|
|
/* Cisco IGRP definitions */
|
|
|
|
|
|
|
|
/* IGRP Header */
|
|
|
|
|
|
|
|
struct igrphdr {
|
2001-04-03 07:45:48 +00:00
|
|
|
u_int8_t ig_vop; /* protocol version number / opcode */
|
|
|
|
#define IGRP_V(x) (((x) & 0xf0) >> 4)
|
|
|
|
#define IGRP_OP(x) ((x) & 0x0f)
|
|
|
|
u_int8_t ig_ed; /* edition number */
|
|
|
|
u_int16_t ig_as; /* autonomous system number */
|
|
|
|
u_int16_t ig_ni; /* number of subnet in local net */
|
|
|
|
u_int16_t ig_ns; /* number of networks in AS */
|
|
|
|
u_int16_t ig_nx; /* number of networks ouside AS */
|
|
|
|
u_int16_t ig_sum; /* checksum of IGRP header & data */
|
1996-08-19 20:34:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define IGRP_UPDATE 1
|
|
|
|
#define IGRP_REQUEST 2
|
|
|
|
|
|
|
|
/* IGRP routing entry */
|
|
|
|
|
|
|
|
struct igrprte {
|
2001-04-03 07:45:48 +00:00
|
|
|
u_int8_t igr_net[3]; /* 3 significant octets of IP address */
|
|
|
|
u_int8_t igr_dly[3]; /* delay in tens of microseconds */
|
|
|
|
u_int8_t igr_bw[3]; /* bandwidth in units of 1 kb/s */
|
|
|
|
u_int8_t igr_mtu[2]; /* MTU in octets */
|
|
|
|
u_int8_t igr_rel; /* percent packets successfully tx/rx */
|
|
|
|
u_int8_t igr_ld; /* percent of channel occupied */
|
|
|
|
u_int8_t igr_hct; /* hop count */
|
1996-08-19 20:34:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define IGRP_RTE_SIZE 14 /* don't believe sizeof ! */
|