projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add local address information to edges.
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
eec1711
..
e3c543c
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-417,7
+417,7
@@
char *get_name(void) {
return false;
}
if(gethostname(hostname, sizeof hostname) || !*hostname) {
return false;
}
if(gethostname(hostname, sizeof hostname) || !*hostname) {
- logger(DEBUG_ALWAYS, LOG_ERR, "Could not get hostname: %s\n", s
trerror(
errno));
+ logger(DEBUG_ALWAYS, LOG_ERR, "Could not get hostname: %s\n", s
ockstrerror(sock
errno));
return false;
}
hostname[31] = 0;
return false;
}
hostname[31] = 0;
@@
-980,7
+980,7
@@
static bool setup_myself(void) {
for(int i = 0; i < listen_sockets; i++) {
salen = sizeof sa;
if(getsockname(i + 3, &sa.sa, &salen) < 0) {
for(int i = 0; i < listen_sockets; i++) {
salen = sizeof sa;
if(getsockname(i + 3, &sa.sa, &salen) < 0) {
- logger(DEBUG_ALWAYS, LOG_ERR, "Could not get address of listen fd %d: %s", i + 3, sockstrerror(errno));
+ logger(DEBUG_ALWAYS, LOG_ERR, "Could not get address of listen fd %d: %s", i + 3, sockstrerror(
sock
errno));
return false;
}
return false;
}