X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=secchan%2Fofproto.c;h=599a97892578c569369187bd85b6ff001bd03e9e;hb=a8b5f8b423e5d54ba8bb6e68cc5b9dc22215d302;hp=aa9e44a1baef453773098260975f1687918c5f84;hpb=a14bc59fb8f27db193d74662dc9c5cb8237177ef;p=openvswitch diff --git a/secchan/ofproto.c b/secchan/ofproto.c index aa9e44a1..599a9789 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -431,8 +431,9 @@ ofproto_set_in_band(struct ofproto *p, bool in_band) { if (in_band != (p->in_band != NULL)) { if (in_band) { - return in_band_create(p, &p->dpif, p->switch_status, - p->controller->rconn, &p->in_band); + in_band_create(p, p->switch_status, p->controller->rconn, + &p->in_band); + return 0; } else { ofproto_set_discovery(p, false, NULL, true); in_band_destroy(p->in_band); @@ -635,6 +636,12 @@ ofproto_get_datapath_id(const struct ofproto *ofproto) return ofproto->datapath_id; } +uint64_t +ofproto_get_mgmt_id(const struct ofproto *ofproto) +{ + return ofproto->mgmt_id; +} + int ofproto_get_probe_interval(const struct ofproto *ofproto) {