From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 8 Dec 2006 07:17:15 -0800 From: Stephen Hemminger Message-ID: <20061208071715.67d18616@localhost.localdomain> In-Reply-To: <34d8b2fe0612080119v5989fe08m800137d27b9f9508@mail.gmail.com> References: <34d8b2fe0612070918k63845693hd57936ad17e2e53b@mail.gmail.com> <34d8b2fe0612080119v5989fe08m800137d27b9f9508@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] Help needed about IP class finding in a bridge netfilter module List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Louis Croisez Cc: bridge@lists.osdl.org On Fri, 8 Dec 2006 10:19:57 +0100 "Louis Croisez" wrote: > Hi Eric, > first, thx for your responses. > I have tried to hping on destination IP 239.255.255.250 (a Multicast > ip used for example in the uPnP discovery process). > The inet_addr_type() function detect multicast well. > > For the question of the broadcast, your idea of using the mac dest > address is great. I will check this and give a feedback. > Cheers, > LOUIS You could also look at the destination ethernet address using is_multicast_ether_addr() and is_broadcast_ether_addr()