Skip to contentSkip to conversation

net_device and multicast

DISCUSSION Matteo Pelati 1 participant 1 message Apr 23, 2002

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I'm new to Linux kernel development and I have a question about networking. I have a linux box acting as a multicast router and I've to write some code that intercepts whenever a network interface is added or removed to a multicast address. That seemed preatty straightforward since I noticed in the net_device structure there is a pointer to IPv4 infos where i can find a linked list of multicast addresses assigned to that interface. The addresses in this list are the same shown doing a cat /proc/net/igmp ?

Since the strange fact is that I've my mcast router with two network interfaces (eth0, eth1). When both my router and the other two hosts join the same multicast group all the three bozes are receiving mcast traffic but if I take a look at /proc/net/igmp on the router only one interface (eth0) is assigned that mcast group.

Could anyone please give me a clue? I guess I'm missing something here...

Thanks
Matteo