X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fin-band.c;h=857618fd0832b24bae0112711e2b77fdf11ff5cf;hb=b63fadcfdc8a96ddb5e944b60733edf21999a1ad;hp=30c24e6cd1af9a6c3d6cece77707b0f515e85090;hpb=58fda1dab104041fc693032475ec4662c1a52849;p=openvswitch diff --git a/ofproto/in-band.c b/ofproto/in-band.c index 30c24e6c..857618fd 100644 --- a/ofproto/in-band.c +++ b/ofproto/in-band.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -272,8 +272,8 @@ get_remote_mac(struct in_band *ib) || strcmp(netdev_get_name(ib->remote_netdev), next_hop_dev)) { netdev_close(ib->remote_netdev); - retval = netdev_open(next_hop_dev, NETDEV_ETH_TYPE_NONE, - &ib->remote_netdev); + + retval = netdev_open_default(next_hop_dev, &ib->remote_netdev); if (retval) { VLOG_WARN_RL(&rl, "cannot open netdev %s (next hop " "to controller "IP_FMT"): %s", @@ -617,7 +617,7 @@ in_band_create(struct ofproto *ofproto, struct dpif *dpif, return error; } - error = netdev_open(local_name, NETDEV_ETH_TYPE_NONE, &local_netdev); + error = netdev_open_default(local_name, &local_netdev); if (error) { VLOG_ERR("failed to initialize in-band control: cannot open " "datapath local port %s (%s)", local_name, strerror(error));