/*
- * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
int error;
int fd;
- error = inet_open_active(SOCK_DGRAM, name, default_port, NULL, &fd);
+ error = inet_open_active(SOCK_DGRAM, name, default_port, NULL, &fd, 0);
if (fd >= 0) {
c->fds[c->n_fds++] = fd;
} else {
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
VLOG_WARN_RL(&rl, "couldn't open connection to collector %s (%s)",
- name, strerror(error));
+ name, ovs_strerror(error));
if (!retval) {
retval = error;
}
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
if (send(c->fds[i], payload, n, 0) == -1) {
VLOG_WARN_RL(&rl, "sending to collector failed: %s",
- strerror(errno));
+ ovs_strerror(errno));
}
}
}