Need help in changing mac for the incoming packet in kernel.
Hi,
Iam new to this linux form. Need a help in n/w in kernel..
I have a linux machine where one of the interfaces (eth2) is in L3 mode.
So, packets entering this interface should have dest-mac as that of the eth2 mac, so that it can be taken into upper layers (L3/L4). I have a case, where packets can have different dest-mac but it should be taken into Layer3/Layer4 level. Iam not sure of any configs in linux that can help here. Is there any?
I tried changing the d-mac of the packet in the ethernet driver of the kernel using skb. But, I could see the packets getting dropped in the kernel (NET_RX_DROP). I suppose, the FCS validation of the packet happens in the controller. Do I need to take care of any other field in skb also here?
Your help is really appreciated. Thanks much. !!
-thanks
Prabhu Balakannan.
|