1 /* $OpenBSD: igrp.h,v 1.5 2022/12/28 21:30:19 jmc Exp $ */ 2 3 /* Cisco IGRP definitions */ 4 5 /* IGRP Header */ 6 7 struct igrphdr { 8 #ifdef WORDS_BIGENDIAN 9 u_char ig_v:4; /* protocol version number */ 10 u_char ig_op:4; /* opcode */ 11 #else 12 u_char ig_op:4; /* opcode */ 13 u_char ig_v:4; /* protocol version number */ 14 #endif 15 u_char ig_ed; /* edition number */ 16 u_short ig_as; /* autonomous system number */ 17 u_short ig_ni; /* number of subnet in local net */ 18 u_short ig_ns; /* number of networks in AS */ 19 u_short ig_nx; /* number of networks outside AS */ 20 u_short ig_sum; /* checksum of IGRP header & data */ 21 }; 22 23 #define IGRP_UPDATE 1 24 #define IGRP_REQUEST 2 25 26 /* IGRP routing entry */ 27 28 struct igrprte { 29 u_char igr_net[3]; /* 3 significant octets of IP address */ 30 u_char igr_dly[3]; /* delay in tens of microseconds */ 31 u_char igr_bw[3]; /* bandwidth in units of 1 kb/s */ 32 u_char igr_mtu[2]; /* MTU in octets */ 33 u_char igr_rel; /* percent packets successfully tx/rx */ 34 u_char igr_ld; /* percent of channel occupied */ 35 u_char igr_hct; /* hop count */ 36 }; 37 38 #define IGRP_RTE_SIZE 14 /* don't believe sizeof ! */ 39