X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flearning-switch.c;h=ecc5509e60ad63be995f455c209935421c6342a1;hb=a5ac7299f8042c01fcdb60c5508047146baf3a16;hp=077251c9df8a905c26fd4c92a30b5450761f947b;hpb=b05072ee5ed4a97d0feb03853b881b3e2e2a5536;p=openvswitch diff --git a/lib/learning-switch.c b/lib/learning-switch.c index 077251c9..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; } @@ -225,7 +225,7 @@ lswitch_process_packet(struct lswitch *sw, struct rconn *rconn, /* Nothing to do. */ break; - case OFPUTIL_INVALID: + case OFPUTIL_MSG_INVALID: case OFPUTIL_OFPT_HELLO: case OFPUTIL_OFPT_ERROR: case OFPUTIL_OFPT_ECHO_REPLY: @@ -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);