From: Ben Pfaff Date: Wed, 12 Nov 2008 00:18:32 +0000 (-0800) Subject: Use skb_copy_bits() to copy data that might not be pulled into headers. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c1c06ba950d615713ccad28a9449a3aec3c417f;p=openvswitch Use skb_copy_bits() to copy data that might not be pulled into headers. --- diff --git a/datapath/datapath.c b/datapath/datapath.c index d4f332ee..07fa92d0 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -690,7 +690,7 @@ dp_output_control(struct datapath *dp, struct sk_buff *skb, : OFPP_LOCAL); opi->reason = reason; opi->pad = 0; - memcpy(opi->data, skb_mac_header(skb), fwd_len); + skb_copy_bits(skb, 0, opi->data, fwd_len); err = send_openflow_skb(f_skb, NULL); out: