Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-08-14 | networkd: link - don't enter LINK_CONFIGURED more than once | Tom Gundersen | |
2014-08-14 | networkd: link - print address lifetime for tracked addresses | Tom Gundersen | |
This should help in debugging issues with DHCP lease renewal. | |||
2014-08-14 | networkctl: also use the same color logic when running "networkctl status" ↵ | Lennart Poettering | |
without arguments | |||
2014-08-14 | networkctl: add the same color logic to "list" and "status" outputs | Lennart Poettering | |
And always put operational state first, setup state second. | |||
2014-08-14 | networkctl: name setup state variable setup_state | Lennart Poettering | |
2014-08-14 | networkctl: update column header to new 'setup' state naming | Lennart Poettering | |
2014-08-13 | sd-networkd: rename link_get_state to link_get_setup_state | Tom Gundersen | |
Suggested by Kay and Lennart. | |||
2014-08-13 | sd-network: rename operstates 'down' -> 'off' and 'up' -> 'no-carrier' | Tom Gundersen | |
Suggested by Lennart and Kay. | |||
2014-08-13 | sd-network: /_get_link_/_link_get_/ | Tom Gundersen | |
The link is the 'object', so make this in line with our usual naming convention. Suggested by Kay and Lennart. | |||
2014-08-13 | networkctl: color status dump without link name | Daniel Buch | |
Lets mimic colored operational state dump as if link name is appiled | |||
2014-08-13 | networkctl: add colors to admin state and fix alignment | Tom Gundersen | |
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 | sd-network: rename state INITALIZING to PENDING and expose as any other state | Tom Gundersen | |
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-12 | networkd: dhcp4 - fix copy-paste error | Tom Gundersen | |
Reported by poma. | |||
2014-08-12 | networkd: disable ipv4ll default routes by default | Tom Gundersen | |
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 | sd-network: split the operstate 'unknown' into 'down' and 'up' | Tom Gundersen | |
2014-08-12 | networkd: link - split out dhcp4 handling | Tom Gundersen | |
2014-08-12 | networkd: link - fix IN_SET usage | Tom Gundersen | |
2014-08-12 | networkd: link - split out ipv4ll handling | Tom Gundersen | |
2014-08-12 | networkd: link - make check for whether addresses/routes are being ↵ | Tom Gundersen | |
configured implicit | |||
2014-08-12 | networkd: split out networkd-link.h | Tom Gundersen | |
2014-08-12 | networkctl: make networkctl status without link name show all local IP addresses | Lennart Poettering | |
2014-08-12 | networkctl: when outputing a list fo links, sort them by ifindex | Lennart Poettering | |
2014-08-12 | networkctl: add a bit of color to the output | Lennart Poettering | |
2014-08-12 | networkctl: add new switch "-a" to "networkctl status" to show verbose ↵ | Lennart Poettering | |
status of all local links | |||
2014-08-12 | networkctl: properly format MAC addresses | Lennart Poettering | |
2014-08-12 | sd-network: add API to output all collected system-wide NTP and DNS servers | Lennart Poettering | |
Also, output the collected information in "networkctl". | |||
2014-08-12 | networkd: expose a global list of DNS and NTP servers in the state file | Lennart Poettering | |
2014-08-12 | networkd: update manager_save() to use fflush_and_check() to simplify things ↵ | Lennart Poettering | |
a bit | |||
2014-08-12 | networkd: fix build | Lennart Poettering | |
2014-08-12 | sd-network: move sd-network API into libsystemd proper | Lennart Poettering | |
In contrast to the DHCP/IPv4LL/ICMP6 APIs sd-network is not a protocol implementation but a client API for networkd, hence move it into libsystemd proper. | |||
2014-08-12 | sd-network: remove client-side dhcp API | Lennart Poettering | |
The networkd should abstract the difference between DHCP supplied and configured data, and hence the DHCP lease concept should not exposed on the client side. Should we want to support arbitrary DHCP fields one day, we can add a new sd_network_get_link_dhcp_field() call or so. | |||
2014-08-12 | networkd: add minimal client tool "networkd" to query network status | Lennart Poettering | |
In the long run this should become a full fledged client to networkd (but not before networkd learns bus support). For now, just pull interesting data out of networkd, udev, and rtnl and present it to the user, in a simple but useful output. | |||
2014-08-11 | sd-network: rename the per-ifindex calls to sd_network_get_link_xxx() | Lennart Poettering | |
This way we can introduce system-wide versions of these calls that are called the same way, but without the "link" in the name. | |||
2014-08-11 | networkd: monopolize in_addr utility functions in shared/in-addr-util.h | Lennart Poettering | |
Primarily, this means we get rid of net_parse_inaddr(), and replace it everywhere with in_addr_from_string() and in_addr_from_string_auto(). These functions do not clobber the callers arguments on failure, which is more close to our usual coding style. | |||
2014-08-04 | sd-network: when the LLMNR setting is not known for an interface consider ↵ | Lennart Poettering | |
that as ENODATA ENODATA should be returned whenever we have no idea about something. A missing LLMNR setting can only really happen during upgrades, in whichc ase we really have no idea, so let's turn this into another ENODATA case. | |||
2014-08-04 | sd-network: actually open the state file in sd_network_get_llmnr() | Lennart Poettering | |
2014-08-04 | sd-dhcp-server: always send out ROUTER and SUBNET_MASK | Tom Gundersen | |
For now we simply take these values from the server's address. | |||
2014-08-04 | networkd: add and expose per-link LLMNR config option | Tom Gundersen | |
2014-08-03 | Unify parse_argv style | Zbigniew Jędrzejewski-Szmek | |
getopt is usually good at printing out a nice error message when commandline options are invalid. It distinguishes between an unknown option and a known option with a missing arg. It is better to let it do its job and not use opterr=0 unless we actually want to suppress messages. So remove opterr=0 in the few places where it wasn't really useful. When an error in options is encountered, we should not print a lengthy help() and overwhelm the user, when we know precisely what is wrong with the commandline. In addition, since help() prints to stdout, it should not be used except when requested with -h or --help. Also, simplify things here and there. | |||
2014-08-01 | networkd: track the MTU of each link | Tom Gundersen | |
And inform the DHCPv4 clients about it. | |||
2014-08-01 | Revert "networkd: don't assume udev_device_new_from_device_id sets errno" | Tom Gundersen | |
libudev now does set errno correctly, so we can indeed rely on this. This reverts commit 2b49732c3d511007ae2c413997e56c40f678d79a. | |||
2014-07-30 | networkd: don't assume udev_device_new_from_device_id sets errno | Tom Gundersen | |
This reverts 6f4d55a8ae04e344a41fc2adef12ad99c2bb2927, as we cannot rely on errno here. Reported by David Herrmann. | |||
2014-07-30 | networkd: improve error message when udev device can not be found | Tom Gundersen | |
Reported by Raimonds Cicans <ray@apollo.lv> | |||
2014-07-30 | networkd: ipv4ll - configure link-local address independently of DHCPv4 | Tom Gundersen | |
This changes the behavior when both DHCPv4 and IPv4LL are enabled. Before, we would disable IPv4LL when we got a DHCPv4 lease and enable it if the lease was lost. Now we just always set up both, if both are enabled, but the DHCPv4 addresses and routes will always take precedence due to their metric and scope. | |||
2014-07-30 | resolved: when answer A or AAAA questions, order responses by whether ↵ | Lennart Poettering | |
addresses are link-local or not | |||
2014-07-29 | networkd: fix reporting errors from hostnamed | Michael Marineau | |
The return value may be -EINVAL or a positive errno from the dbus message. Check both ranges, otherwise most errors are silently ignored. | |||
2014-07-28 | networkd: route/address - use trivial hash functions | Tom Gundersen | |
2014-07-28 | networkd: unify handling of stacked netdevs | Tom Gundersen | |
2014-07-28 | networkd: store ifindex as int | Tom Gundersen | |
2014-07-28 | sd-dhcp-client: drop event DHCP_EVENT_NO_LEASE | Tom Gundersen | |
Keep this internal to the client and simply restart it when NAK is receieved, as per the RFC. |