[Click] HostEtherFilter and Multicast
Pierre-Emmanuel Le Roux
Pierre-Emmanuel.LE-ROUX at lip6.fr
Mon May 21 05:09:13 EDT 2007
Hi all,
I think there is a problem with the HostEtherFilter module and multicast
address handling.
An ethernet address is multicast if the bit 0 of the first byte is set to '1'.
So the test done by HostEtherFilter should be:
...
} else if (e->ether_dhost[0] & 0x01) {
p->set_packet_type_anno(Packet::MULTICAST);
return p;
}
...
instead of:
...
} else if (e->ether_dhost[0] & 0x80) {
p->set_packet_type_anno(Packet::MULTICAST);
return p;
}
...
Regards.
--
Pierre-Emmanuel Le Roux
More information about the click
mailing list