summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/igrp.h
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-08-19 20:34:12 +0000
committerpst <pst@FreeBSD.org>1996-08-19 20:34:12 +0000
commit97a804ef88319863cfa8146c068ec895f4ad8316 (patch)
treea0e1430e0d74185364854779b70e6d96aba9cf47 /contrib/tcpdump/igrp.h
downloadFreeBSD-src-97a804ef88319863cfa8146c068ec895f4ad8316.zip
FreeBSD-src-97a804ef88319863cfa8146c068ec895f4ad8316.tar.gz
Virgin import of unmodified tcpdump v3.2.1 distribution from LBL.
Obtained from: ftp://ftp.ee.lbl.gov/tcpdump.tar.Z on 19-Aug-1996.
Diffstat (limited to 'contrib/tcpdump/igrp.h')
-rw-r--r--contrib/tcpdump/igrp.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/contrib/tcpdump/igrp.h b/contrib/tcpdump/igrp.h
new file mode 100644
index 0000000..cf4c1a4
--- /dev/null
+++ b/contrib/tcpdump/igrp.h
@@ -0,0 +1,36 @@
+/* Cisco IGRP definitions */
+
+/* IGRP Header */
+
+struct igrphdr {
+#if BYTE_ORDER == LITTLE_ENDIAN
+ u_char ig_op:4; /* opcode */
+ u_char ig_v:4; /* protocol version number */
+#else
+ u_char ig_v:4; /* protocol version number */
+ u_char ig_op:4; /* opcode */
+#endif
+ u_char ig_ed; /* edition number */
+ u_short ig_as; /* autonomous system number */
+ u_short ig_ni; /* number of subnet in local net */
+ u_short ig_ns; /* number of networks in AS */
+ u_short ig_nx; /* number of networks ouside AS */
+ u_short ig_sum; /* checksum of IGRP header & data */
+};
+
+#define IGRP_UPDATE 1
+#define IGRP_REQUEST 2
+
+/* IGRP routing entry */
+
+struct igrprte {
+ u_char igr_net[3]; /* 3 significant octets of IP address */
+ u_char igr_dly[3]; /* delay in tens of microseconds */
+ u_char igr_bw[3]; /* bandwidth in units of 1 kb/s */
+ u_char igr_mtu[2]; /* MTU in octets */
+ u_char igr_rel; /* percent packets successfully tx/rx */
+ u_char igr_ld; /* percent of channel occupied */
+ u_char igr_hct; /* hop count */
+};
+
+#define IGRP_RTE_SIZE 14 /* don't believe sizeof ! */
OpenPOWER on IntegriCloud