Skip to content

Commit d4218cd

Browse files
committed
Add comments about the IGRP/EIGRP protocol number and #define mess.
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. Recent FreeBSD and DragonFly BSD <netinet/in.h> headers define IP_PROTO_IGRP as 9 and IP_PROTO_IGRP as 88. We define IP_PROTO_PIGP ("private interior gateway protocol") as 9 and IP_PROTO_EIGRP as 88; those names* better match what the current protocol number assignments say.
1 parent 4b7d5a2 commit d4218cd

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

ipproto.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ extern const char *netdb_protoname (const uint8_t);
5959
#ifndef IPPROTO_EGP
6060
#define IPPROTO_EGP 8 /* exterior gateway protocol */
6161
#endif
62+
/*
63+
* XXX - the current IANA protocol number assignments page lists 9 as
64+
* "any private interior gateway (used by Cisco for their IGRP)" and
65+
* 88 as "EIGRP" from Cisco.
66+
*
67+
* Recent FreeBSD and DragonFly BSD <netinet/in.h> headers define
68+
* IP_PROTO_IGRP as 9 and IP_PROTO_IGRP as 88. We define IP_PROTO_PIGP
69+
* ("private interior gateway protocol") as 9 and IP_PROTO_EIGRP as 88;
70+
* those names* better match what the current protocol number
71+
* assignments say.
72+
*/
6273
#ifndef IPPROTO_PIGP
6374
#define IPPROTO_PIGP 9
6475
#endif

print-ip-demux.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ ip_demux_print(netdissect_options *ndo,
127127
* (used by Cisco for their IGRP)" and 88 as
128128
* "EIGRP" from Cisco.
129129
*
130-
* Recent BSD <netinet/in.h> headers define
131-
* IP_PROTO_PIGP as 9 and IP_PROTO_IGRP as 88.
132-
* We define IP_PROTO_PIGP as 9 and
133-
* IP_PROTO_EIGRP as 88; those names better
134-
* match was the current protocol number
130+
* Recent FreeBSD and DragonFly BSD <netinet/in.h> headers
131+
* define IP_PROTO_IGRP as 9 and IP_PROTO_IGRP as 88.
132+
* We define IP_PROTO_PIGP ("private interior gateway
133+
* protocol") as 9 and IP_PROTO_EIGRP as 88; those names
134+
* better match what the current protocol number
135135
* assignments say.
136136
*/
137137
igrp_print(ndo, bp, length);

0 commit comments

Comments
 (0)