aboutsummaryrefslogtreecommitdiff
path: root/lib/learning-switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/learning-switch.c')
-rw-r--r--lib/learning-switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/learning-switch.c b/lib/learning-switch.c
index b2608629..ecc5509e 100644
--- a/lib/learning-switch.c
+++ b/lib/learning-switch.c
@@ -419,7 +419,7 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn,
pkt_ofs = offsetof(struct ofp_packet_in, data);
pkt_len = ntohs(opi->header.length) - pkt_ofs;
ofpbuf_use_const(&pkt, opi->data, pkt_len);
- flow_extract(&pkt, 0, in_port, &flow);
+ flow_extract(&pkt, 0, 0, in_port, &flow);
/* Choose output port. */
out_port = lswitch_choose_destination(sw, &flow);