Needless to say, I've been having some issues.
1) Is it even possible to do something like this? I notice that tcpdump shows
the packets outgoing (and properly formatted) but the packets don't seem to come
back to me. Even if I send it out with the broadcast address, I don't seem to
get the packet back to the interface that sent it. Is this standard behaviour?
Is there any way to send out a packet addressed to myself and have it come back
2) Using ETH_P_LOOP as the protocol in the call to socket(), I can't seem to
receive any messages whatsoever. If I set this to ETH_P_ALL, then I get all
messages (including ones with protocol set to ETH_P_LOOP). It almost seems
like ETH_P_LOOP isn't properly handled by the kernel. Is this the case?
The nitty-gritty on this is that I have a machine that has two NICs but only one
IP address. I want to do some kind of packet loopback at the ethernet layer to
verify that my NIC transceiver is working properly.
If anyone has any bright ideas, I'd be glad to hear them.
-- Chris Friesen | MailStop: 043/33/F10 Nortel Networks | work: (613) 765-0557 3500 Carling Avenue | fax: (613) 765-2986 Nepean, ON K2H 8E9 Canada | email: firstname.lastname@example.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/