Fix comment.
[dragonfly/port-amd64.git] / contrib / tcpdump-3.9 / igrp.h
blob78876d3d84286d0f3e6520a74568ccd0e12ca94d
1 /* @(#) $Header: /tcpdump/master/tcpdump/igrp.h,v 1.6 2002/12/11 07:13:52 guy Exp $ (LBL) */
2 /* Cisco IGRP definitions */
4 /* IGRP Header */
6 struct 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 */
18 #define IGRP_UPDATE 1
19 #define IGRP_REQUEST 2
21 /* IGRP routing entry */
23 struct 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 */
33 #define IGRP_RTE_SIZE 14 /* don't believe sizeof ! */