summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.h
Commit message (Collapse)AuthorAge
* Remove src/networkAndy Wingo2015-04-19
|
* networkd: add support for Uplink Failure DetectionAlin Rauta2015-02-27
| | | | | | | Introduce BindCarrier= to indicate the set of links that determine if the current link should be brought UP or DOWN. [tomegun: add a bit to commit message]
* networkd DHCPv4 logging endian fixPaul Martin2015-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Tue, Feb 10, 2015 at 08:10:43PM +0100, Lennart Poettering wrote: > Hmm, I think it would be nicer to use be32toh() here instead, since it > ensures the macro is (to a limited degree) typesafe. > > Any chance you could rework that? From: Paul Martin <paul.martin@codethink.co.uk> Date: Wed, 11 Feb 2015 11:47:16 +0000 Subject: [PATCH] networkd dhcpv4 logging endian fix On a big-endian host, systemd-networkd prints out IPv4 network addresses byte reversed: Feb 10 16:43:32 hostname systemd-networkd[151]: eth0 : DHCPv4 address 158.1.24.10/16 via 1.1.24.10 The address obtained is 10.24.1.158/16 and the route is 10.24.0.0/16 dev eth0 src 10.24.1.187 The macro ADDRESS_FMT_VAL() unpacks a "struct in_addr" in a little-endian specific manner. This patch forces the passed address into host order, then unpacks it. On an x86 later than i486, compiled with -O2, the only extra overhead is a single bswap instruction.
* networkd: generalize IPv4LL to LinkLocalTom Gundersen2015-02-09
| | | | | | This allows both IPv4 and IPv6 link-local addresses to be enabled or disabled. By default we still enable IPv6LL and disable IPv4LL. The old config option is kept for backwards compatibility, but removed from the documentation.
* networkd: exit on idleTom Gundersen2015-02-05
| | | | | | We will be woken up on rtnl or dbus activity, so let's just quit if some time has passed and that is the only thing that can happen. Note that we will always stay around if we expect network activity (e.g. DHCP is enabled), as we are not restarted on that.
* networkd: add basic dbus APITom Gundersen2015-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only the very basics, more to come. For now: $ busctl tree org.freedesktop.network1 └─/org/freedesktop/network1 └─/org/freedesktop/network1/link ├─/org/freedesktop/network1/link/1 ├─/org/freedesktop/network1/link/2 ├─/org/freedesktop/network1/link/3 ├─/org/freedesktop/network1/link/4 ├─/org/freedesktop/network1/link/5 ├─/org/freedesktop/network1/link/6 ├─/org/freedesktop/network1/link/7 ├─/org/freedesktop/network1/link/8 └─/org/freedesktop/network1/link/9 $ busctl introspect org.freedesktop.network1 /org/freedesktop/network1 NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.network1.Manager interface - - - .OperationalState property s "carrier" emits-change $ busctl introspect org.freedesktop.network1 /org/freedesktop/network1/link/1 NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.network1.Link interface - - - .AdministrativeState property s "unmanaged" emits-change .OperationalState property s "carrier" emits-change
* networkd: handle suspend eventsTom Gundersen2015-02-03
|
* LLDP: Add support for networkctlSusant Sahani2014-12-19
|
* networkd: integrate LLDPSusant Sahani2014-12-19
| | | | | | | | | | | | | This patch integrates LLDP with networkd. Example conf: file : lldp.network [Match] Name=em1 [Network] LLDP=yes
* networkd-dhcp6: Move ICMPv6 and DHCPv6 configuration to new filePatrik Flykt2014-12-10
| | | | | Handle all aspects of ICMPv6 and DHCPv6 in a file of its own as is done with DHCPv4 and IPv4LL.
* networkd: manager - enumerate addresses globally, rather than per-linkTom Gundersen2014-12-08
| | | | The kernel always returns all addresses, rather than only for the given link, so let's only enumerate once.
* networkd: update logging macros for parameter order, and errno, to match ↵Lennart Poettering2014-11-28
| | | | rest of the code
* log: rearrange log function namingLennart Poettering2014-11-27
| | | | | | | | | | - Rename log_meta() → log_internal(), to follow naming scheme of most other log functions that are usually invoked through macros, but never directly. - Rename log_info_object() to log_object_info(), simply because the object should be before any other parameters, to follow OO-style programming style.
* log: add an "error" parameter to all low-level logging calls and intrdouce ↵Lennart Poettering2014-11-27
| | | | | | | | | | | | | | | | | | | | log_error_errno() as log calls that take error numbers This change has two benefits: - The format string %m will now resolve to the specified error (or to errno if the specified error is 0. This allows getting rid of a ton of strerror() invocations, a function that is not thread-safe. - The specified error can be passed to the journal in the ERRNO= field. Now of course, we just need somebody to convert all cases of this: log_error("Something happened: %s", strerror(-r)); into thus: log_error_errno(-r, "Something happened: %m");
* networkd: move carrier gained/lost handling from link_update_flags() to ↵Tom Gundersen2014-09-04
| | | | | | link_update() This allows us also to simplify link_has_carrier() a bit.
* sd-network: rename operstates 'down' -> 'off' and 'up' -> 'no-carrier'Tom Gundersen2014-08-13
| | | | Suggested by Lennart and Kay.
* sd-network: rename state INITALIZING to PENDING and expose as any other stateTom Gundersen2014-08-13
| | | | | | | 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.
* sd-network: split the operstate 'unknown' into 'down' and 'up'Tom Gundersen2014-08-12
|
* networkd: link - split out dhcp4 handlingTom Gundersen2014-08-12
|
* networkd: link - split out ipv4ll handlingTom Gundersen2014-08-12
|
* networkd: split out networkd-link.hTom Gundersen2014-08-12