X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flearning-switch.c;h=ecc5509e60ad63be995f455c209935421c6342a1;hb=8b36f51e0fdeb468058e4552858af03851b4fad3;hp=4a5d88918f1e5c075a232e2e8b8265be98abca0a;hpb=8f93e93c807d3acd06fb3b367276f574164b1a9c;p=openvswitch diff --git a/lib/learning-switch.c b/lib/learning-switch.c index 4a5d8891..ecc5509e 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -149,7 +149,7 @@ lswitch_create(struct rconn *rconn, const struct lswitch_config *cfg) } } } - + return sw; } @@ -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);