net: Copy ndisc_nodetype from original skb in skb_clone
skb_clone does not copy all fields from original skb. Fields
which are uninitialized may cause unexpected behavior when they
are passed down to network stack. In case ndisc_nodetype is set
to a random value for a router advertisement, kernel looks at this
field and drops it assuming that this packet originates from a
node and not a router.
Fix this by copying the ndisc_nodetype from the original skb
rather than relying on an uninitialized cloned skb.
CRs-Fixed: 2233026
Change-Id: I9686e31808c94a3bbf309007f521c0e06bac2e96
Signed-off-by:
Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Loading
Please register or sign in to comment