Ouch!!  An embarrassing error!  It is now fixed, thank you.

Eddie


Pierre-Emmanuel Le Roux wrote:
> 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.
_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to