X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fin-band.c;h=f73899823e387c948d06223306070e1365a34b95;hb=7e041ba51410125ec74cba2b5f0b6f1b0481baa9;hp=6c6832408d540b579b423705c46e2ef6ca8ed0bb;hpb=df2c07f4338faac04f4969f243fe4e8083b309ac;p=openvswitch diff --git a/ofproto/in-band.c b/ofproto/in-band.c index 6c683240..f7389982 100644 --- a/ofproto/in-band.c +++ b/ofproto/in-band.c @@ -25,7 +25,6 @@ #include #include "classifier.h" #include "dhcp.h" -#include "dpif.h" #include "flow.h" #include "netdev.h" #include "netlink.h" @@ -313,7 +312,7 @@ update_rules(struct in_band *ib) if (ib->n_remotes && !eth_addr_is_zero(ib->local_mac)) { /* (a) Allow DHCP requests sent from the local port. */ cls_rule_init_catchall(&rule, IBR_FROM_LOCAL_DHCP); - cls_rule_set_in_port(&rule, OVSP_LOCAL); + cls_rule_set_in_port(&rule, OFPP_LOCAL); cls_rule_set_dl_type(&rule, htons(ETH_TYPE_IP)); cls_rule_set_dl_src(&rule, ib->local_mac); cls_rule_set_nw_proto(&rule, IPPROTO_UDP); @@ -413,7 +412,7 @@ in_band_run(struct in_band *ib) struct in_band_rule *rule, *next; memset(&actions, 0, sizeof actions); - actions.oa.output.type = htons(OFPAT_OUTPUT); + actions.oa.output.type = htons(OFPAT10_OUTPUT); actions.oa.output.len = htons(sizeof actions.oa); actions.oa.output.port = htons(OFPP_NORMAL); actions.oa.output.max_len = htons(0); @@ -421,7 +420,7 @@ in_band_run(struct in_band *ib) a = &actions.oa; na = sizeof actions.oa / sizeof(union ofp_action); } else { - actions.nxsq.type = htons(OFPAT_VENDOR); + actions.nxsq.type = htons(OFPAT10_VENDOR); actions.nxsq.len = htons(sizeof actions.nxsq); actions.nxsq.vendor = htonl(NX_VENDOR_ID); actions.nxsq.subtype = htons(NXAST_SET_QUEUE);