Tom Gundersen
85923f79e1
sd-dhcp: network - set TOS on outgoing packets
...
This should improve performance on busy wireless networks and the
like. Inspired by a similar change in dnsmasq.
2014-05-06 22:09:05 +02:00
Tom Gundersen
085cabf266
dhcp-network: don't pass ifindex to bind_udp_socket
...
UDP sockets can anyway not be bound to specific netdev's. The packages would have to be filtered
when received instead.
2014-05-06 21:58:08 +02:00
Lennart Poettering
b408026b98
man: document sd_event_add_time(3)
2014-05-06 18:51:08 +02:00
Lennart Poettering
7b8b9686e0
timesyncd: hook up systemd-timesyncd with systemd-timedated
...
Later on we will probably remove support for controlling any other NTP
implementations but systemd-timesyncd, but for now, let's keep things
generic
2014-05-06 18:20:49 +02:00
Lennart Poettering
661278ee29
timesyncd: never accept NTP time from server that is older than systemd's release time
2014-05-06 18:08:04 +02:00
Lennart Poettering
dfdb269daf
journald: remove some dead code
2014-05-06 17:03:28 +02:00
Lennart Poettering
a429267c44
load-fragment: minor cleanup
2014-05-06 17:03:09 +02:00
Lennart Poettering
e8af69739a
timesyncd: read server settings from a configuration file
...
Also, allow compiling in a default server list via a configure command
line item.
2014-05-06 17:02:11 +02:00
Lennart Poettering
16c058ba01
timesyncd: when an NTP server doesn't respond, proceed with the next
2014-05-06 16:15:02 +02:00
Lennart Poettering
376cd3b89c
list: make LIST_FIND_TAIL work for empty lists
2014-05-06 13:07:15 +02:00
Lennart Poettering
600809211e
timesyncd: keep order of NTP servers
2014-05-06 12:34:37 +02:00
Lennart Poettering
05f7fc0fe3
timesyncd: make sure to reread /etc/resolv.conf when we try the next NTP server
2014-05-06 12:34:37 +02:00
Kay Sievers
136aa3b444
timesyncd: accept NTP version 3 responses
2014-05-06 12:29:20 +02:00
Lennart Poettering
881c74201d
timesyncd: add a more servers by default
2014-05-06 01:37:29 +02:00
Lennart Poettering
becad8f1ed
timesyncd: also try next server when sendto() fails
2014-05-06 01:37:13 +02:00
Lennart Poettering
7a183c4c73
timesyncd: don't busy loop when we cannot connect to any servers
2014-05-06 01:29:47 +02:00
Lennart Poettering
678522cff0
timesyncd: properly handle multiple configured NTP servers and multiplei IP addresses per server name
2014-05-06 01:17:35 +02:00
Lennart Poettering
856a5a7d76
timesyncd: lookup name server via sd-resolve, support IPv6, react to SIGINT/SITERM
2014-05-05 23:53:17 +02:00
Lennart Poettering
73dec31974
sd-resolve: make sure we can destroy a query object from its own callback handler
2014-05-05 23:49:19 +02:00
Lennart Poettering
cc567911ba
sd-event: allow disabling event sources when an event object is dying anyway
2014-05-05 23:48:25 +02:00
Lennart Poettering
59bc1fd776
sd-event: make it easy to bind signal handling to event loop exits
...
By passing a NULL callback provide a simple way to make event loops exit
on SIGTERM and other signals.
2014-05-05 23:47:59 +02:00
Lennart Poettering
7ed0dd4be6
timesync: use safe_close() where possible
2014-05-05 21:47:38 +02:00
Lennart Poettering
5f8cfaee52
timesync: always initialize structs when declaring them as far as possible with contsant values
2014-05-05 21:47:09 +02:00
Lennart Poettering
76cf10dab7
build-sys: move async.[ch] to src/shared
...
So that we can use it at multiple places.
2014-05-05 21:19:06 +02:00
Kay Sievers
99a17ada9c
core: require cgroups filesystem to be available
...
We should no longer pretend that we can run in any sensible way
without the kernel supporting us with cgroups functionality.
2014-05-05 18:52:36 +02:00
Kay Sievers
ee03381e21
timesyncd: log drift value as signed
2014-05-05 14:21:40 +02:00
Tom Gundersen
7ca1d31964
sd-rtnl-message: append - fix uninitialized memory
...
We were not properly clearing the padding at the front of some containers.
2014-05-03 18:14:42 +02:00
Tom Gundersen
3f781aa8a0
sd-rtnl: route - allow setting multiple matching routes
2014-05-03 18:14:42 +02:00
Kay Sievers
ef6191945e
timesyncd: log drift correction
2014-05-03 15:09:33 +02:00
Lennart Poettering
8a474b0c04
async: add asynchronous close() call
2014-05-02 17:57:37 +02:00
Kay Sievers
d67006fe53
timesyncd: use nanosecond mode
2014-04-30 17:25:46 +02:00
Kay Sievers
81c36b3f28
timesyncd: remove debug code
2014-04-30 09:37:59 +02:00
Umut Tezduyar Lindskog
8ddbeaa23c
networkd: dont configure route if lease doesn't have one
2014-04-30 00:05:28 +02:00
Tom Gundersen
7e141e498c
sd-network: add support for only listening to some types of changes
2014-04-30 00:05:28 +02:00
Kay Sievers
ba9f11dc98
timesyncd: limit debug values to milliseconds
2014-04-29 23:48:23 +02:00
Tom Gundersen
bc4155669a
sd-dhcp-lease: fix double realloc
2014-04-29 21:57:59 +02:00
Lennart Poettering
93f1bcf400
sd-resolve: rework sd-resolve to be callback based, similar in style to sd-bus and sd-event
2014-04-29 15:45:16 +02:00
Tom Gundersen
109731eb25
sd-dhcp-lease: (de)serialize DNS and NTP servers
...
Also use inet_ntoa rather than inet_ntop.
2014-04-29 15:05:33 +02:00
Tom Gundersen
0b21bde96d
sd-dhcp-leaes: use newdup()
2014-04-29 12:46:06 +02:00
Tom Gundersen
4684469639
sd-dhcp-lease: add NTP support
...
Export the NTP servers so timesyncd can use them.
2014-04-29 12:25:58 +02:00
Kay Sievers
39594d49cf
timesyncd: update log message
2014-04-29 10:16:07 +02:00
Kay Sievers
a91df40e69
timesyncd: add unit and man page
2014-04-29 09:51:53 +02:00
Lennart Poettering
0b36bbc42d
machine-id: only look into KVM uuid when we are not running in a
...
container
2014-04-28 18:36:59 +02:00
Kay Sievers
687ed1237b
rename timedate-sntp to timesync
2014-04-28 17:08:52 +02:00
Jonathan Boulle
e5a7f17341
conf-parser: Fix typo in comment
...
Fix minor typo in conf parser
2014-04-28 08:15:50 +02:00
Tom Gundersen
9b86b3930a
networkd: link - don't fail a link if RF kill is active
2014-04-28 00:16:46 +02:00
Tom Gundersen
69ceb044c8
networkd: netdev - log when loading a .netdev file
2014-04-28 00:06:06 +02:00
Umut Tezduyar Lindskog
ccfdc9a112
sd-dhcp-client: log positive error number
...
Log error no for such client_stop(client, DHCP_EVENT_STOP)
2014-04-27 23:41:46 +02:00
Umut Tezduyar Lindskog
d9bf4f8c6c
libnetworkd: add link local tests
...
- Also only allow positive ifindex on both dhcp and ipv4ll
[tomegun: the kernel always sets a positive ifindex, but some APIs accept
ifindex=0 with various meanings, so we should protect against
accidentally passing ifindex=0 along.]
2014-04-27 23:39:13 +02:00
Umut Tezduyar Lindskog
d96e629fd7
networkd: do not complain about IFF_RUNNING
...
Otherwise:
eth0: unknown link flags gained: 0x00040 (ignoring)
[tomegun: hiding these messages is ok, as IFF_RUNNING is redundant
and can be deduced from operstate and IFF_LOWER_UP]
2014-04-27 23:36:30 +02:00