]>
Commit | Line | Data |
---|---|---|
b7080c8e A |
1 | /* |
2 | * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights | |
7 | * Reserved. This file contains Original Code and/or Modifications of | |
8 | * Original Code as defined in and that are subject to the Apple Public | |
9 | * Source License Version 1.0 (the 'License'). You may not use this file | |
10 | * except in compliance with the License. Please obtain a copy of the | |
11 | * License at http://www.apple.com/publicsource and read it before using | |
12 | * this file. | |
13 | * | |
14 | * The Original Code and all software distributed under the License are | |
15 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
16 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
17 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
18 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the | |
19 | * License for the specific language governing rights and limitations | |
20 | * under the License." | |
21 | * | |
22 | * @APPLE_LICENSE_HEADER_END@ | |
23 | */ | |
24 | /* Cisco IGRP definitions */ | |
25 | ||
26 | /* IGRP Header */ | |
27 | ||
28 | struct igrphdr { | |
29 | #ifdef WORDS_BIGENDIAN | |
30 | u_char ig_v:4; /* protocol version number */ | |
31 | u_char ig_op:4; /* opcode */ | |
32 | #else | |
33 | u_char ig_op:4; /* opcode */ | |
34 | u_char ig_v:4; /* protocol version number */ | |
35 | #endif | |
36 | u_char ig_ed; /* edition number */ | |
37 | u_short ig_as; /* autonomous system number */ | |
38 | u_short ig_ni; /* number of subnet in local net */ | |
39 | u_short ig_ns; /* number of networks in AS */ | |
40 | u_short ig_nx; /* number of networks ouside AS */ | |
41 | u_short ig_sum; /* checksum of IGRP header & data */ | |
42 | }; | |
43 | ||
44 | #define IGRP_UPDATE 1 | |
45 | #define IGRP_REQUEST 2 | |
46 | ||
47 | /* IGRP routing entry */ | |
48 | ||
49 | struct igrprte { | |
50 | u_char igr_net[3]; /* 3 significant octets of IP address */ | |
51 | u_char igr_dly[3]; /* delay in tens of microseconds */ | |
52 | u_char igr_bw[3]; /* bandwidth in units of 1 kb/s */ | |
53 | u_char igr_mtu[2]; /* MTU in octets */ | |
54 | u_char igr_rel; /* percent packets successfully tx/rx */ | |
55 | u_char igr_ld; /* percent of channel occupied */ | |
56 | u_char igr_hct; /* hop count */ | |
57 | }; | |
58 | ||
59 | #define IGRP_RTE_SIZE 14 /* don't believe sizeof ! */ |