Tom Gundersen
bd2efe9219
networkd: link - do not manage loopback links
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=83134 .
2014-09-04 14:16:25 +02:00
Tom Gundersen
51d1817152
networkd: link - save link flags when the link is added
...
Don't wait for the link to be fully synchronised.
2014-09-04 14:10:57 +02:00
Tom Gundersen
a61bb41c29
networkd: move carrier gained/lost handling from link_update_flags() to link_update()
...
This allows us also to simplify link_has_carrier() a bit.
2014-09-04 14:10:57 +02:00
Tom Gundersen
5bb14c8651
test-network: fix off-by-one error in test
2014-08-31 19:22:33 +02:00
Tom Gundersen
9021bb9f93
sd-event: name event sources used in libraries
...
This should help in debugging failing event sources.
2014-08-28 21:19:17 +02:00
Zbigniew Jędrzejewski-Szmek
ddb7f7fc07
networkctl: do not mix dns and ntp servers
2014-08-28 09:41:29 -04:00
Łukasz Stelmach
32dfe42c66
networkd-wait-online: add missing short option 'i' to optstring
2014-08-26 20:29:59 +02:00
Lennart Poettering
af4ec4309e
notify: send STOPPING=1 from our daemons
2014-08-21 17:24:21 +02:00
Tom Gundersen
81163121e6
networkd: don't consider deprecated or tentative addresses when determining operstate
...
https://bugs.freedesktop.org/show_bug.cgi?id=81287
2014-08-19 19:01:38 +02:00
Tom Gundersen
6c3e68e7c1
networkd: netdev - add missing callback when adding stacked devices
...
As the comment says, the passed in callback must always be invoked, or the underlying link
will hang. This was missed when reworking the code, so add it back in.
2014-08-19 17:55:34 +02:00
Tom Gundersen
2a5948f715
networkd: link - don't enforce ENSLAVING state
...
We are only guaranteed to stay in ENSLAVING state whilst enslaving by bridges/bonds, not
when adding stacked devices (as then the underlying device can be IFF_UP'ed and configured
in parallel), so drop these asserts.
2014-08-19 17:55:34 +02:00
Tom Gundersen
2c36be2f4b
networkd: fix use-after-free
...
Elements must be removed from the hashtable before they are freed.
2014-08-19 15:41:23 +02:00
Lennart Poettering
ea352b409e
networkd: fix how we generate lists in link_save()
...
https://bugs.freedesktop.org/show_bug.cgi?id=82721
2014-08-18 18:59:48 +02:00
Tom Gundersen
e0fbf1fcff
networkd: warn when ignoring unsupported tuntap options
...
The interface for creating tuntap devices should be ported to rtnl so it would support the same settings
as other kinds. In the meantime, the best one can do is to drop in a .link file to set the desired options.
2014-08-18 18:11:42 +02:00
Thomas Hindoe Paaboel Andersen
a6a4f52889
networkctl: use safe_qsort in case no links are present
...
Unlikely to happen but still...
2014-08-16 23:49:36 +02:00
Lennart Poettering
40274ed623
networkd: print nice warnings if people configure invalid domain names
2014-08-15 16:21:19 +02:00
Lennart Poettering
486d1a8148
networkd: fix minor memory leak
2014-08-15 16:02:42 +02:00
Lennart Poettering
c627729fc4
networkctl: show acquired system domains
2014-08-15 16:02:29 +02:00
Lennart Poettering
8612e93653
sd-network: add system-wide sd_network_get_domains() API
2014-08-15 16:02:14 +02:00
Lennart Poettering
d5314fff96
networkd: always write out locally configured settings first, dhcp-acquired ones later
...
This is primarily important for the domains list, as we really should
prefer the locally configured domain over the dhcp supplied ones when we
use it as a search list.
2014-08-15 15:42:56 +02:00
Lennart Poettering
f15b6e5a8b
networkd: remove "*" from domains list
...
Also, simplify things a bit and make sure we don't forget looking at one
of the entries.
2014-08-15 15:36:17 +02:00
Lennart Poettering
1405434b69
networkctl: two OOM fixes
2014-08-15 15:34:56 +02:00
Tom Gundersen
67272d157a
sd-network: add support for wildcard domains
2014-08-15 15:15:24 +02:00
Tom Gundersen
6192b846ca
networkd: add support for Domains= to .network files
...
This allows the search/routing domanis to be specified per link/network and be passed
on to resolved.
2014-08-15 15:15:24 +02:00
Lennart Poettering
db73295acc
util: never use ether_ntoa(), since it formats with %x, not %02x, which makes ethernet addresses look funny
2014-08-15 13:19:03 +02:00
Lennart Poettering
3e3db0ee86
networkctl: increase column width for link type to 18, to accomodate for 'ieee80211_radiotap'
2014-08-15 13:19:03 +02:00
Tom Gundersen
ad0734e890
networkd: rename UseDomainName to UseDomains
...
This option will also apply to the search domains, so make it plural.
2014-08-15 12:53:34 +02:00
Lennart Poettering
2301cb9fdb
networkctl: print local domain name in status output
2014-08-15 03:10:20 +02:00
Tom Gundersen
1bd27a45d0
networkd: don't respect domainname from DHCP by default
...
Most routers will send garbage, so make this opt-in only.
2014-08-15 01:08:46 +02:00
Tom Gundersen
9b4d1882ca
sd-network: add sd_network_linkg_get_domains()
...
For now this only exposes the domain name (DHCP Option 15), and not
the search string (DHCP Option 119), which will be implemented in
a follow-up patch.
2014-08-14 23:13:14 +02:00
Tom Gundersen
9fdaa9925e
networkd: link - don't enter LINK_CONFIGURED more than once
2014-08-14 14:13:36 +02:00
Tom Gundersen
c6d3b3034a
networkd: link - print address lifetime for tracked addresses
...
This should help in debugging issues with DHCP lease renewal.
2014-08-14 14:07:45 +02:00
Lennart Poettering
e92da1e5d0
networkctl: also use the same color logic when running "networkctl status" without arguments
2014-08-14 01:23:20 +02:00
Lennart Poettering
d57c365bf8
networkctl: add the same color logic to "list" and "status" outputs
...
And always put operational state first, setup state second.
2014-08-14 01:18:37 +02:00
Lennart Poettering
ab1525bc2d
networkctl: name setup state variable setup_state
2014-08-14 01:10:08 +02:00
Lennart Poettering
2368512a31
networkctl: update column header to new 'setup' state naming
2014-08-14 01:08:46 +02:00
Tom Gundersen
438ca2bbd4
sd-networkd: rename link_get_state to link_get_setup_state
...
Suggested by Kay and Lennart.
2014-08-13 22:55:49 +02:00
Tom Gundersen
d3df0e3982
sd-network: rename operstates 'down' -> 'off' and 'up' -> 'no-carrier'
...
Suggested by Lennart and Kay.
2014-08-13 22:44:41 +02:00
Tom Gundersen
d6731e4c79
sd-network: /_get_link_/_link_get_/
...
The link is the 'object', so make this in line with our usual naming convention.
Suggested by Kay and Lennart.
2014-08-13 22:37:45 +02:00
Daniel Buch
5323ead145
networkctl: color status dump without link name
...
Lets mimic colored operational state dump as if link name is appiled
2014-08-13 22:31:03 +02:00
Tom Gundersen
636db02d54
networkctl: add colors to admin state and fix alignment
...
It is useful to color in the admin state both to easily spot failed links, but also to quickly
distinguish between links that are fully configured and in degraded mode (only IPv4LL) or in
degraded mode and still waiting for DHCP.
2014-08-13 15:39:57 +02:00
Tom Gundersen
8434fd5cf2
sd-network: rename state INITALIZING to PENDING and expose as any other state
...
This is the state when we are waiting for udev to initialize the device, and waiting for
libudev and rtnl to be in sync. In the future we probably will also be waiting for nl80211.
At this point we do not yet have enough information to know whether or not networkd should
be handling the device.
2014-08-13 15:39:57 +02:00
Tom Gundersen
38de08a7e4
networkd: dhcp4 - fix copy-paste error
...
Reported by poma.
2014-08-12 23:12:09 +02:00
Tom Gundersen
ccf1c0299f
networkd: disable ipv4ll default routes by default
...
This causes machines without connectivity to hang where they would otherwise fail. Keep it
opt-in for now, but consider whether we sholud just drop it.
2014-08-12 20:50:13 +02:00
Tom Gundersen
54cba0b16c
sd-network: split the operstate 'unknown' into 'down' and 'up'
2014-08-12 20:42:59 +02:00
Tom Gundersen
3c9b886068
networkd: link - split out dhcp4 handling
2014-08-12 20:42:59 +02:00
Tom Gundersen
77a008c090
networkd: link - fix IN_SET usage
2014-08-12 20:42:59 +02:00
Tom Gundersen
b22d8a00f4
networkd: link - split out ipv4ll handling
2014-08-12 20:42:59 +02:00
Tom Gundersen
431ca2cebb
networkd: link - make check for whether addresses/routes are being configured implicit
2014-08-12 20:42:59 +02:00
Tom Gundersen
0b1831c20c
networkd: split out networkd-link.h
2014-08-12 20:42:59 +02:00