Skip to content

Commit b1e5b9e

Browse files
committed
Fix comments. [skip ci]
Yes, the offending set of *BSDs (FreeBSD, DragonFly BSD, and CupertinoBSD) all do define IPPROTO_PIGP. And the #defines are IPPROTO_xxx, not IP_PROTO_xxx.
1 parent 5df44a5 commit b1e5b9e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ipproto.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ extern const char *netdb_protoname (const uint8_t);
6565
* 88 as "EIGRP" from Cisco.
6666
*
6767
* Recent FreeBSD, DragonFly BSD, and macOS <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
68+
* IPPROTO_PIGP as 9 and IPPROTO_IGRP as 88. We define IPPROTO_PIGP
69+
* ("private interior gateway protocol") as 9 and IPPROTO_EIGRP as 88;
70+
* those names better match what the current protocol number
7171
* assignments say.
7272
*/
7373
#ifndef IPPROTO_PIGP

print-ip-demux.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ ip_demux_print(netdissect_options *ndo,
128128
* "EIGRP" from Cisco.
129129
*
130130
* Recent FreeBSD, DragonFly BSD, and macOS <netinet/in.h>
131-
* headers define IP_PROTO_IGRP as 9 and IP_PROTO_IGRP
132-
* as 88. We define IP_PROTO_PIGP ("private interior
133-
* gateway protocol") as 9 and IP_PROTO_EIGRP as 88;
131+
* headers define IPPROTO_PIGP as 9 and IPPROTO_IGRP
132+
* as 88. We define IPPROTO_PIGP ("private interior
133+
* gateway protocol") as 9 and IPPROTO_EIGRP as 88;
134134
* those names better match what the current protocol
135135
* number assignments say.
136136
*/

0 commit comments

Comments
 (0)