From: guy Date: Thu, 8 Aug 2002 09:09:58 +0000 (+0000) Subject: Token Ring multicasts are handled the same way other 802.x multicasts X-Git-Tag: libpcap-0.8-bp~138 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/32bfe4054737240b427abb11b66a65a8422693fd Token Ring multicasts are handled the same way other 802.x multicasts are handled, with an I/G bit at the bottom (when handed to the host) of the first byte of the destination address. --- diff --git a/gencode.c b/gencode.c index e296afda..71aec3d9 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.176 2002-08-08 08:22:45 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.177 2002-08-08 09:09:58 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -4343,13 +4343,19 @@ gen_multicast(proto) } if (linktype == DLT_FDDI) { - /* XXX TEST THIS: MIGHT NOT PORT PROPERLY XXX */ + /* + * XXX TEST THIS: MIGHT NOT PORT PROPERLY XXX + * + * XXX - was that referring to bit-order issues? + */ /* fddi[1] & 1 != 0 */ return gen_mac_multicast(1); } - /* TODO - check how token ring handles multicast */ - /* if (linktype == DLT_IEEE802) ... */ + if (linktype == DLT_IEEE802) { + /* tr[2] & 1 != 0 */ + return gen_mac_multicast(2); + } if (linktype == DLT_IEEE802_11) { /*