Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] Help needed about IP class finding in a bridge netfilter module
@ 2006-12-07 17:18 Louis Croisez
  2006-12-07 19:33 ` Eric Brower
  0 siblings, 1 reply; 6+ messages in thread
From: Louis Croisez @ 2006-12-07 17:18 UTC (permalink / raw)
  To: bridge

Hi,
i am currently trying to code a little netfilter plugin, to be placed
into the bridge forwarding path.
In such plugin, i would like to test if a packet is:
- unicast
- multicast
- broadcast

The starting condition is that the bridge has no knowledge of the IP
configuration of the sending and receiving stations. It does not know
about their netmask e.g.

I have tried the following function (from 2.6 kernel):
inet_addr_type(u32 addr), but it always return RTN_UNICAST, and never
RTN_MULTICAST, RTN_BROADCAST.
 For example, for this address: 10.255.255.255 it returns RTN_UNICAST.

How could the bridge decide in which class is the destination IP of a
skb, and what is my error?

Thx in advance.
LOUIS

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-12-08 16:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07 17:18 [Bridge] Help needed about IP class finding in a bridge netfilter module Louis Croisez
2006-12-07 19:33 ` Eric Brower
2006-12-08  2:31   ` Eric Brower
2006-12-08  9:19     ` Louis Croisez
2006-12-08 15:17       ` Stephen Hemminger
2006-12-08 16:35         ` Louis Croisez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox