From owner-freebsd-hackers Thu Dec 7 06:28:48 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA15931 for hackers-outgoing; Thu, 7 Dec 1995 06:28:48 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA15926 for ; Thu, 7 Dec 1995 06:28:45 -0800 (PST) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id GAA09391 for ; Thu, 7 Dec 1995 06:22:48 -0800 Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id NAA19486; Thu, 7 Dec 1995 13:04:00 +0100 From: Luigi Rizzo Message-Id: <199512071204.NAA19486@labinfo.iet.unipi.it> Subject: if_lnc and multicast To: hackers@freebsd.org, paul@freefall.FreeBSD.org Date: Thu, 7 Dec 1995 13:04:00 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk Hi, I am trying to set up multicast support in the if_lnc driver, which is not present yet. All the hooks seem to be there, the only missing bit of information is how to compute the bit to be set in the multicast mask (ladrf[]) from within lnc_setladrf() A quick hack could be to set the if to receive all multicasts when sc->arpcom.ac_multicnt>0 (i.e. at least one address is in use). However, this is undesirable for performance reasons; moreover, as soon as the default multicast route is added (224.0.0.0), the counter bumps to 1 and thus would effectively cause the interface to be in promiscuous mode. Do you have access to the docs of the LANCE chip, which should report the hashing algorithm used in the chip ? Thanks Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 http://www.iet.unipi.it/~luigi/ ====================================================================