We currently clear both the members of the IPCB individually before
entering the IP stack. It's simpler and more robust to just clear
the entire structure.
Suggested-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
int frag_len = skb->len - mutable->tunnel_hlen;
skb->next = NULL;
-
- memset(&IPCB(skb)->opt, 0, sizeof(IPCB(skb)->opt));
- IPCB(skb)->flags = 0;
+ memset(IPCB(skb), 0, sizeof(*IPCB(skb)));
err = ip_local_out(skb);
if (likely(net_xmit_eval(err) == 0))