MAC address update
Sarbeswar Mohapatra
Sarbeswar.Mohapatra at nethawkgroup.com
Wed May 16 23:18:06 CEST 2007
Hi,
I am using netfilter hook (NF_POST_ROUTING) to create IP tunnel. In the nf
hook function, the skb is expanded and added a new IP header (IP tunnel).
When I see the packet in ethereal it does not update the MAC address
according to the new IP header, rather the MAC address is the one for the
original ip header (I am talking about the destination only, the source MAC
header is the same as both src ip addresses belong to the local machine).
Also for testing purpose, I tried to modify the destination ip address
instead of adding a new IP header, it still has the old MAC address. What I
understood was after the hook the skb should go to ip_finish_output2 and it
should call use the ARP module to update the MAC address. Please send me
your suggestion, if I am missing anything.
Regards,
Sarbeswar
Sarbeswar Mohapatra
NetHawk Corp
3400 Waterview Pkwy
Suite 100
Richardson, TX - 75080
Email: Sarbeswar.Mohapatra at nethawkgroup.com
Tel: +1 972 761 9271 Ext. 299
CELL: +1 214 682 5645
FAX: +1 972 761 9067
More information about the netfilter-devel
mailing list