Hello, everyone
I have a hub and several computers connected to it, e.g.
HUB |----B A ---| | |----C
Now, when A sends a packet to B, C will also receive the packet on datalink layer. But the packet is discarded before it reaches ip_input(). I think it's discarded in datalink layer because the MAC address is not matched.
Now I tried to find the function discarding the unmatched packets, but I failed because I'm not familiar to the code in datalink layer.
I use FreeBSD 4.5 system and can anyone give me some advice?
If the NIC is in promiscuous mode it will receive the packet regardless of destination ethernet address. Try marking the interface promiscuous and see if that makes a difference.
Are you sure the packet is even reaching the NIC? Is your hub a 10/100 hub or a single-speed hub? 10/100 hubs are actually bridges.
-- Jefferson Ogata <[EMAIL PROTECTED]> NOAA Computer Incident Response Team (N-CIRT) <[EMAIL PROTECTED]>
