From owner-freebsd-net Sat Oct 20 13:55:50 2001 Delivered-To: freebsd-net@freebsd.org Received: from hotmail.com (f89.pav2.hotmail.com [64.4.37.89]) by hub.freebsd.org (Postfix) with ESMTP id E128737B40A for ; Sat, 20 Oct 2001 13:55:45 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 20 Oct 2001 13:55:45 -0700 Received: from 204.178.20.14 by pv2fd.pav2.hotmail.msn.com with HTTP; Sat, 20 Oct 2001 20:55:45 GMT X-Originating-IP: [204.178.20.14] From: "murthy kn" To: net@freebsd.org Subject: Re: netgraph one2many question Date: Sun, 21 Oct 2001 02:25:45 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 20 Oct 2001 20:55:45.0844 (UTC) FILETIME=[96DC2740:01C159A9] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I am a newbie to netgraph and have started looking at the sources and manpages. 1.In the context of one2many, in the manpage example, I see that it puts the interfaces into promiscuous mode. My question is, instead of turning on the promiscuous mode, will it not work if we use the "ifconfig lladdr" to temporarily change the MAC address (hardware receive filter) of the cards to that of the master card (fxp0 in the manpage example). 2. Are the messages like "arp: something was on fxp0 got the reply from fxp1...." kind of messages harmful - can I turn it off if in any way. I get lot of such messages when I enable multiple cards connected on the same segment on a FreeBSD machine. 3. Is it possible to have multiple cards with the same IP address on a FreeBSD machine. Thanks for your time. Bye, murthy >From: Julian Elischer >To: Archie Cobbs >CC: Milon Papezik , "'hackers@freebsd.org'" >, "'net@freebsd.org'" >Subject: Re: netgraph one2many question >Date: Sat, 20 Oct 2001 13:23:16 -0700 (PDT) > >Bill Paul has written a specific NETGRAPH FEC module... > >he has failover as well.. > >(it is only PART a netgraph module as it doesn;t use the netgraph hooks to >talk to teh ethernet driver.. (strange)) > >I suggest you look for it in the archives or on >http://www.freebsd.org/~wpaul/ > >On Sat, 20 Oct 2001, Archie Cobbs wrote: > > > Milon Papezik writes: > > > I would like to extend ng_one2many module to include > > > automatic link failure datection, failover and FEC functionality. > > > > > > My question is: > > > Are interface nodes able to send upstream notification > > > that their state has changed or do I have to poll their status >periodically > > > as it is done in ng_fec module made kindly available by wpaul ? > > > > They don't now, but I think you could add this in a reasonably > > unoffensive way. > > > > What you would do is add a new function pointer to struct ifnet, > > say "void (*if_report)(struct ifnet *, int status)" or something. > > > > When a device driver detected link going up/down, it could call > > this function (if non-NULL). Then if_ethersubr() would set this > > function pointer to point to some function if_ether_report(). > > When if_ether_report() is called, if ng_ether was loaded, it > > would call into ng_ether() to generate a control message that > > would be passed to the node connected to the "lower" hook. > > > > Then, ng_one2many could be modified to understand this control > > message and do the right thing according to its configuration. > > > > Or, something like that. Polling might be a quicker and easier > > though less precise way to do it for starters. > > > > -Archie > > > > >__________________________________________________________________________ > > Archie Cobbs * Packet Design * >http://www.packetdesign.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-net" in the body of the message > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-net" in the body of the message _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message