projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovsdb: Remove write-only variable from parse_body() in log.c.
[openvswitch]
/
ofproto
/
ofproto-sflow.c
diff --git
a/ofproto/ofproto-sflow.c
b/ofproto/ofproto-sflow.c
index b37db42d049c45fd49e0e3ffce677a770dfc0d71..1b659d1ab850f92b26d11077bc94cafab6abcf52 100644
(file)
--- a/
ofproto/ofproto-sflow.c
+++ b/
ofproto/ofproto-sflow.c
@@
-212,7
+212,7
@@
sflow_choose_agent_address(const char *agent_device, const char *control_ip,
if (agent_device) {
struct netdev *netdev;
if (agent_device) {
struct netdev *netdev;
- if (!netdev_open
(agent_device, NETDEV_ETH_TYPE_NONE
, &netdev)) {
+ if (!netdev_open
_default(agent_device
, &netdev)) {
int error = netdev_get_in4(netdev, &in4, NULL);
netdev_close(netdev);
if (!error) {
int error = netdev_get_in4(netdev, &in4, NULL);
netdev_close(netdev);
if (!error) {
@@
-319,7
+319,7
@@
ofproto_sflow_add_port(struct ofproto_sflow *os, uint16_t odp_port,
ofproto_sflow_del_port(os, odp_port);
/* Open network device. */
ofproto_sflow_del_port(os, odp_port);
/* Open network device. */
- error = netdev_open
(netdev_name, NETDEV_ETH_TYPE_NONE
, &netdev);
+ error = netdev_open
_default(netdev_name
, &netdev);
if (error) {
VLOG_WARN_RL(&rl, "failed to open network device \"%s\": %s",
netdev_name, strerror(error));
if (error) {
VLOG_WARN_RL(&rl, "failed to open network device \"%s\": %s",
netdev_name, strerror(error));