* [BUG] XFRM IS NOT UPDATING ETH TYPE FIELD FOR INNER PACKET ON ETH HEADER
@ 2010-03-23 13:22 Eduardo Panisset
0 siblings, 0 replies; only message in thread
From: Eduardo Panisset @ 2010-03-23 13:22 UTC (permalink / raw)
To: netdev
Hi,
Before doing this change wireshark was showing the inner packet as
"malformed" as it uses the ethernet's type field to classify the L3
packets as IPv6, IPv4 and so on.
The problem is when the inner packet is reinserted into Linux stack
and the ethernet header keeps holding on its type field a value for
the protocol of outer packet.
Below my correction on file net/xfrm/xfrm_input.c, function xfrm_prepare_input:
...
skb->protocol = inner_mode->afinfo->eth_proto; // existing code
eth_hdr(skb)->h_proto = skb->protocol; // my change, adding this line
...
Regards,
Eduardo Panisset.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-23 13:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-23 13:22 [BUG] XFRM IS NOT UPDATING ETH TYPE FIELD FOR INNER PACKET ON ETH HEADER Eduardo Panisset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).