From: assar Date: Sat, 1 Apr 2000 11:44:59 +0000 (+0000) Subject: (gen_proto_abbrev): add fallback definition for IPPROTO_IGMP and use X-Git-Tag: libpcap-0.6.1~186 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/4343a38646bef0fead49efa260bca8dde4f3413c (gen_proto_abbrev): add fallback definition for IPPROTO_IGMP and use constant --- diff --git a/gencode.c b/gencode.c index 377754b2..670c9f0e 100644 --- a/gencode.c +++ b/gencode.c @@ -21,7 +21,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.104 2000-04-01 11:37:45 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.105 2000-04-01 11:44:59 assar Exp $ (LBL)"; #endif #include @@ -1200,8 +1200,12 @@ gen_proto_abbrev(proto) b1 = gen_proto(IPPROTO_ICMP, Q_IP, Q_DEFAULT); break; +#ifndef IPPROTO_IGMP +#define IPPROTO_IGMP 2 +#endif + case Q_IGMP: - b1 = gen_proto(2, Q_IP, Q_DEFAULT); + b1 = gen_proto(IPPROTO_IGMP, Q_IP, Q_DEFAULT); break; #ifndef IPPROTO_IGRP