summaryrefslogtreecommitdiff
path: root/src/network
Commit message (Collapse)AuthorAge
* Use space after a silencing (void)Zbigniew Jędrzejewski-Szmek2015-03-13
| | | | | We were using a space more often than not, and this way is codified in CODING_STYLE.
* networkctl: avoid leak if a field was specified twiceZbigniew Jędrzejewski-Szmek2015-03-07
| | | | | | | The input data would have to be borked, so this is unlikely to happen, but since we have a nice helper function to do it properly... why not? CID #1261390.
* networkd: Make DHCP client ID creation configurableJan Janssen2015-03-04
|
* networkd: netdev - inform when we take over an existing netdevTom Gundersen2015-03-04
| | | | | | | | The crucial point here is that we will not change the settings of a netdev created by someone else we simply use it as is and trust it was set up as intended. This is confusing in the case of the pre-created netdev's (bond0 etc.), the solution should probably be to simply make the kernel stop creating these devices as they are pretty useless.
* 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]
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-23
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* networkd: network - rename ipv6token parserTom Gundersen2015-02-14
| | | | Too generic name.
* networkd: .network - rename LinkLocal to LinkLocalAddressingTom Gundersen2015-02-14
| | | | Makes it a bit less ambiguous.
* networkd: explicitly enable/disable ipv6ll addressesTom Gundersen2015-02-12
| | | | | The kernel does not like getting an empty container, so just always pass the parameter, even if it is the default.
* networkd: fdb - fix const warningTom Gundersen2015-02-11
|
* networkd: don't do exit-on-idle if there is something wrong with the dbus ↵Tom Gundersen2015-02-11
| | | | | | | | connection Just fall back to plain old event loop in this (highly unlikely) case. In the glorious future when kdbus is upstream we can of course drop all this.
* 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.
* net: support globbing and disjunction in Match logicTom Gundersen2015-02-10
| | | | Match{Name,OrginalName,Type,Driver,Path} can now take a space-separated glob of matches.
* networkd: fdb - refactor a bitTom Gundersen2015-02-10
| | | | | | Pass around Link objcets rather than FdbEntry objects. The link objects have an up-to-date ifname we can use for logging. match_name sholud _never_ be used for anything except matching. Firstly, it may be unset (usually is), and secondly it may not be up-to-date.
* networkd: bus - expose MatchMACTom Gundersen2015-02-10
|
* networkd: network-bus - use sd_bus_path_{en,de}codeTom Gundersen2015-02-10
|
* networkd: link_object_find - don't accept invalid inputTom Gundersen2015-02-09
| | | | Reported by Zbigniew.
* networkd: support route scopesTom Gundersen2015-02-09
| | | | | | | For now we only support the hardcoded values RT_SCOPE_{UNIVERSE,LOCAL,HOST}, and not numerical values or values from /etc/iproute2/rt_scopes. This addresses https://bugs.freedesktop.org/show_bug.cgi?id=88508.
* treewide: correct typos and use consistent "MAC" spellingTorstein Husebø2015-02-09
|
* networkd: bus - switch to properly escaped object pathsTom Gundersen2015-02-09
|
* networkd: add support for IPv6 tokensTom Gundersen2015-02-09
| | | | | | | | | | | | | | | | | This allows the admin to set the host-specific part of IPv6 addresses, but still receive the prefix via SLAAC. .network file snippet: [Network] IPv6Token=::12 gives: $ ip token token ::12 dev eth0 This closes https://bugs.freedesktop.org/show_bug.cgi?id=81177.
* 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: add basic org.freedesktop.network1.Network interfaceTom Gundersen2015-02-08
|
* networkd: add network_get_by_nameTom Gundersen2015-02-08
|
* networkd: use valid bus pathsMantas Mikulėnas2015-02-08
| | | | | | Object path components must start with [A-Za-z_] (AFAIK). Also the value of 'p' is undefined if asprintf fails. Compare to user_bus_path() in src/login/logind-user-dbus.c:281.
* networkd: move the connection to the bus out of manager_new (again)Tom Gundersen2015-02-05
| | | | This would otherwise make the tests fail as we cannot grab the bus name.
* networkd: gracefully handle failure to emit signals when dbus is not connectedTom Gundersen2015-02-05
| | | | When we get kdbus we don't need these hackse.
* 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: don't unlink state files on exitTom Gundersen2015-02-05
| | | | Only unlink state files on DELLINK. This allows sd-network to be used even when networkd is not running.
* 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: don't warn about missing links unnecessarilyTom Gundersen2015-02-05
| | | | | | | If we get a NEWLINK + NEWADDR between enumerating the links and enumerating the addresses, we would get a warning that the link corresponding to the address does not exist. This is a false warning as both the NEWLINK and NEWADDR would be processed after enumerating completed, so drop it.
* networkd: log when finished enumerating links and addressesTom Gundersen2015-02-05
|
* networkd: refactor socket activation a bitTom Gundersen2015-02-03
|
* networkd: handle suspend eventsTom Gundersen2015-02-03
|
* network-address,test-network: avoid undefined behaviourZbigniew Jędrzejewski-Szmek2015-02-02
|
* util: rework strappenda(), and rename it strjoina()Lennart Poettering2015-02-03
| | | | | | After all it is now much more like strjoin() than strappend(). At the same time, add support for NULL sentinels, even if they are normally not necessary.
* networkd: minor simplificationLennart Poettering2015-02-02
| | | | | Let's return the fd we found as return value in systemd_netlink_fd(), instead of using call-by-reference.
* networkd: support socket activationTom Gundersen2015-02-02
| | | | | Still keep the non-socket activation code around for starting from the commandline, but will likely drop that too in the future.
* networkd-wait-online: add timeoutTom Gundersen2015-02-02
| | | | | Default to timing out after 120 seconds without a network connection. Setting a timeout of 0 disables the timeout.
* networkd-wait-online: support globbing for ignored devicesTom Gundersen2015-02-02
|
* networkd: dhcp-server - start as soon as addresses have been setTom Gundersen2015-01-31
| | | | | | We would otherwise wait for the interface to be completely configured, which could take considerable time with IPv4LL. As a result nspawn was very slow at obtaining IP addresses.
* networkd-wait-online: allow specific devices to be ignoredTom Gundersen2015-01-31
| | | | | | In addition to the loopback device, also explicitly configured devices to be ignored. Suggested by Charles Devereaux <systemd@guylhem.net>.
* networkd: tunnel - call tunnel modes ipip6, not ip4ipv6 to match ip(8)Tom Gundersen2015-01-28
|
* networkd-dhcp6: Assign DHCPv6 addresses and prefix lengthsPatrik Flykt2015-01-27
| | | | | | | | | | | Once IPv6 addresses have been acquired, assign these to the interface with the prefix lengths taken from the ICMPv6 Router Advertisement handling code. The preferred and valid IPv6 address lifetimes are handed to the kernel which will clean up them if not renewed in time. When a prefix announced via Router Advertisements expires, find all addresses that match that prefix and update the address to have a prefix length of 128 causing the prefix to be off-link.
* networkd: Introduce ip6gre and ip6gretapSusant Sahani2015-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces ipv6 gre and gretap. test: ip6gre.netdev: [NetDev] Name=ip6gretap Kind=ip6gretap [Tunnel] Local=2a00:ffde:4567:edde::4987 Remote=2001:473:fece:cafe::5179 ip6gre.network: [Match] Name=eno16777736 [Network] Tunnel=ip6gretap ip link 6: ip6gre@eno16777736: <POINTOPOINT,NOARP> mtu 1448 qdisc noop state DOWN mode DEFAULT group default link/gre6 2a:00:ff:de:45:67:ed:de:00:00:00:00:00:00:49:87 peer 20:01:04:73:fe:ce:ca:fe:00:00:00:00:00:00:51:79
* networkd: Introduce IP6 tunnelSusant Sahani2015-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables networkd to create IP6 tunnels example conf: ipip6.netdev: [NetDev] Name=ipip6-tunnel Kind=ip6tnl [Tunnel] Mode=ip4ipv6 Local=2a00:ffde:4567:edde::4987 Remote=2001:473:fece:cafe::5179 ipip6.network [Match] Name=wlan0 [Network] Tunnel=ipip6-tunnel 23: ipip6-tunnel@wlan0: <POINTOPOINT,NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default link/tunnel6 2a00:ffde:4567:edde::4987 peer 2001:473:fece:cafe::5179
* networkd: introduce gretapSusant Sahani2015-01-22
| | | | This patch introdeces gretap to networkd
* networkd: plug lldp leakTom Gundersen2015-01-21
|
* networkd: fix a typo in networkd-wait-online-manager.Rami Rosen2015-01-20
| | | | subscibe->subscribe
* man: add networkctl(1)Zbigniew Jędrzejewski-Szmek2015-01-19
|