projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291431c
)
Initialize pad byte in ofp_packet_in messages, to avoid leaking kernel state.
author
Ben Pfaff
<blp@nicira.com>
Thu, 27 Mar 2008 21:24:47 +0000
(14:24 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 28 Mar 2008 00:50:33 +0000
(17:50 -0700)
datapath/datapath.c
patch
|
blob
|
history
diff --git
a/datapath/datapath.c
b/datapath/datapath.c
index 1b5a2cd5120053b3e196170d067440c28da49d52..b4c1615b7f83b609e1b29581e11a3480ad292836 100644
(file)
--- a/
datapath/datapath.c
+++ b/
datapath/datapath.c
@@
-536,6
+536,7
@@
dp_output_control(struct datapath *dp, struct sk_buff *skb,
opi->total_len = htons(skb->len);
opi->in_port = htons(skb->dev->br_port->port_no);
opi->reason = reason;
+ opi->pad = 0;
SKB_LINEAR_ASSERT(skb);
memcpy(opi->data, skb_mac_header(skb), fwd_len);