X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=utilities%2Fovs-discover.c;h=9210d4d431946a99849873f7a30c7749616d2abd;hb=149f577a25508779b756515be1f1bdcefa3710fa;hp=3aa28fad88dd490c9ad583e2f98f8220cbf465e5;hpb=b4182c7f2d25110c2edaf96d33dd081257fa253b;p=sliver-openvswitch.git diff --git a/utilities/ovs-discover.c b/utilities/ovs-discover.c index 3aa28fad8..9210d4d43 100644 --- a/utilities/ovs-discover.c +++ b/utilities/ovs-discover.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. @@ -213,7 +213,7 @@ iface_init(struct iface *iface, const char *netdev_name) * persists past program termination. */ struct netdev *netdev; - retval = netdev_open(iface->name, NETDEV_ETH_TYPE_NONE, &netdev); + retval = netdev_open_default(iface->name, &netdev); if (retval) { ovs_error(retval, "Could not open %s device", iface->name); return false;