summaryrefslogtreecommitdiff
path: root/src/basic/strv.h
diff options
context:
space:
mode:
authorKlearchos Chaloulos <klearchos.chaloulos@nokia.com>2015-12-01 19:29:59 +0200
committerSven Eden <yamakuzure@gmx.net>2017-05-17 15:22:14 +0200
commit6506aaf23c48fbc14720073bfeb3e477c37ffd97 (patch)
tree77e290a4e5529dab76e6f28077672fa1493bc9fb /src/basic/strv.h
parent2b5cdb47b5a4a367bc2be8fe4457423f785884f0 (diff)
journal-remote: split-mode=host, remove port from journal filename
When constructing the journal filename to store logs from a remote host, remove the port of the tcp connection, as the port will change with every reboot/connection loss between sender/reveiver machines. Having the port in the filename will cause a new journal file to be created for every reboot or connection loss. For the implementation, a new argument "bool include_port" is added to the getpeername_pretty() function. This is passed to the sockaddr_pretty() function. The value of the include_port argument is set to true in all calls of getpeername_pretty(), except for 2 calls in journal-remote.c, where it is set to false.
Diffstat (limited to 'src/basic/strv.h')
0 files changed, 0 insertions, 0 deletions