diff options
author | guy <guy> | 2004-04-28 22:02:23 +0000 |
---|---|---|
committer | guy <guy> | 2004-04-28 22:02:23 +0000 |
commit | f06770b12d09d364109c6886d99bf022311b1ea0 (patch) | |
tree | 2557ca560154c87bfcb637778f63c89fe0af96e6 /ipproto.h | |
parent | 19670ba07cefc8c96211e26cfe485f489bc5ea26 (diff) | |
download | tcpdump-f06770b12d09d364109c6886d99bf022311b1ea0.tar.gz |
Some BSDs define IPPROTO_IGRP as 88 and don't define IPPROTO_EIGRP, so
we also define it as 88, so we can't have
case IPPROTO_IGRP:
case IPPROTO_EIGRP:
in a switch statement.
The current IANA protocol number assignments page lists 9 as "any
private interior gateway (used by Cisco for their IGRP)" and 88 as
"EIGRP" from Cisco, so we define IPPROTO_PIGP as 9 (which matches what
those BSDs do) and IPPROTO_EIGRP as 88 (so we don't bother with
IPPROTO_IGRP at all), and do
case IPPROTO_PIGP:
case IPPROTO_EIGRP:
It's not clear that we should handle both with the same print routine,
however - Cisco IGRP and Cisco EIGRP don't appear to have the same
packet format.
Diffstat (limited to 'ipproto.h')
-rw-r--r-- | ipproto.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#) $Header: /tcpdump/master/tcpdump/ipproto.h,v 1.3 2004-04-26 17:49:44 hannes Exp $ (LBL) + * @(#) $Header: /tcpdump/master/tcpdump/ipproto.h,v 1.4 2004-04-28 22:02:23 guy Exp $ (LBL) * * From: * @(#)in.h 8.3 (Berkeley) 1/3/94 @@ -60,8 +60,8 @@ extern struct tok ipproto_values[]; #ifndef IPPROTO_EGP #define IPPROTO_EGP 8 /* exterior gateway protocol */ #endif -#ifndef IPPROTO_IGRP -#define IPPROTO_IGRP 9 +#ifndef IPPROTO_PIGP +#define IPPROTO_PIGP 9 #endif #ifndef IPPROTO_UDP #define IPPROTO_UDP 17 /* user datagram protocol */ |