Yu Watanabe
cebe12571d
network: make resolving NetDev names delayed and moved to network_verify()
...
And before resolving NetDev names, check conditions in .network,
and if they do not match the system environment, drop the network
unit earlier.
Fixes #4211 .
2019-02-26 10:06:23 +09:00
Yu Watanabe
a6779fecd9
network: add debug log when conditions do not match system environment
2019-02-26 09:58:33 +09:00
Lennart Poettering
bde06abd4f
Merge pull request #10408 from keszybz/analyze-cat-presets
...
systemd-analyze cat-presets
2019-02-18 16:02:45 +01:00
Zbigniew Jędrzejewski-Szmek
dc0d407851
udev,network: use standard paths for .network and .link files
...
This centralizes the configuration to one header file.
/usr/local/lib is now included in the search list, and documentation is
updated accordingly.
2019-02-18 10:29:33 +01:00
Yu Watanabe
4f4daf418f
udev,network: drop unused parent_driver argument from net_match_config()
...
The argument has never been used.
2019-02-17 00:47:49 +09:00
Yu Watanabe
4624289279
network/tunnel: fix log message
2019-02-11 01:29:56 +09:00
Yu Watanabe
b7c2bb4c9e
network: refuse AF_UNSPEC for Tunnel devices
2019-02-11 01:29:56 +09:00
Yu Watanabe
9e64c1f8b5
network: unify netdev_{ipip,sit}_fill_message_create()
2019-02-11 01:29:56 +09:00
Yu Watanabe
3affe303d3
network: unify netdev_vti{,6}_fill_message_create()
2019-02-11 01:29:56 +09:00
Yu Watanabe
10490d9025
network/geneve: fix log message
2019-02-11 01:29:49 +09:00
Yu Watanabe
434094864c
network: use netlink_message_append_{in_addr,sockaddr}_union()
2019-02-11 01:28:09 +09:00
Yu Watanabe
bd930cbdeb
network: shorten code by using SYNTHETIC_ERRNO()
2019-02-11 01:28:09 +09:00
Yu Watanabe
3f7cc0809d
network: coding style fixes
2019-02-11 01:28:09 +09:00
Yu Watanabe
d40b01e44b
network: in_addr_is_null() may return negative errno
...
So, do not silently cast the returned value to boolean.
Exception is the case that family is trivially AF_INET or AF_INET6.
2019-02-11 01:28:09 +09:00
Lennart Poettering
9066811e5a
Merge pull request #11580 from yuwata/fix-11579
...
network/wireguard: fix sending wireguard peers
2019-01-28 16:57:08 +01:00
Yu Watanabe
624a47694c
network/wireguard: use sd_netlink_message_append_sockaddr_in{,6}()
2019-01-28 12:27:37 +01:00
Yu Watanabe
2301c54fa9
network/wireguard: fixes sending wireguard peer settings
...
This fixes a bug introduced by e1f717d4a0 .
Fixes #11579 .
2019-01-28 10:09:57 +01:00
Lennart Poettering
6e9417f5b4
tree-wide: use newa() instead of alloca() wherever we can
...
Typesafety is nice. And this way we can take benefit of the new size
assert() the previous commit added.
2019-01-26 16:17:04 +01:00
Yu Watanabe
15cdaeee2e
network: fix an error log
2019-01-24 14:33:58 +09:00
Zbigniew Jędrzejewski-Szmek
29a93cb19d
Merge pull request #11418 from yuwata/fix-11404
...
network: fix infinite loop in setting up wireguard
2019-01-15 21:04:32 +01:00
Yu Watanabe
9e2bbf9915
network: make Link and NetDev always have the valid poiter to Manager
...
c4397d94c3 introduces
link_detach_from_manager() and netdev_detach_from_manager(), and they
set Link::manager or NetDev::manager NULL.
But, at the time e.g. link is removed, hence link_drop() is called,
there may be still some asynchronous netlink call is waiting, and
their callbacks hit assertion.
This make {link,netdev}_detach_from_manager() just drop all references
from manager, but keep the pointer to manager.
Fixes #11411 .
2019-01-15 14:48:53 +01:00
Yu Watanabe
e1f717d4a0
network: wireguard: rename and split set_wireguard_interface()
...
This does not change the behavior except for fixing the issue #11404 .
Fixes #11404 .
2019-01-14 10:08:40 +09:00
Lennart Poettering
500c65ad69
Merge pull request #11167 from yuwata/sd-resolve-typesafe
...
sd-resolve: introduce typesafe macros
2018-12-17 19:22:07 +01:00
Yu Watanabe
1061dab129
netdev: use typesafe resolve_getaddrinfo() in wireguard.c
2018-12-17 10:02:36 +09:00
Yu Watanabe
a4c9ae400f
netdev: sort headers
2018-12-17 10:02:36 +09:00
Susant Sahani
6d4efac2d9
networkd: Bond - AllSlavesActive fix parser
...
Bond.AllSlavesActive use parser type bool
2018-12-15 18:17:02 +05:30
Susant Sahani
fde60a424e
netdev bond: add support to configure tlb_dynamic_lb
...
Closes https://github.com/systemd/systemd/issues/11135
Add test for bond : tlb_dynamic_lb
2018-12-15 18:15:16 +05:30
Yu Watanabe
e93672eeac
tree-wide: drop missing.h from headers and use relevant missing_*.h
2018-12-06 13:31:16 +01:00
Yu Watanabe
253de60634
Merge pull request #11021 from ssahani/isatap
...
networkd: Add support to configure ISATAP tunnel
2018-12-05 23:13:17 +01:00
Lennart Poettering
a20f73221a
Merge pull request #10976 from yuwata/typesafe-netlink-call
...
netlink: introduce typesafe netlink functions
2018-12-03 17:55:00 +01:00
Yu Watanabe
9714c020fc
missing: split network related entries
...
Also adds comments which kernel version added the entries.
Closes #10553 .
2018-12-03 10:31:05 +01:00
Susant Sahani
918049ad53
networkd: Add support to configure ISATAP tunnel
...
Let's just reuse the code of sit tunnel to create a ISATAP tunnel.
Matter of turning a flag
Please see https://elixir.bootlin.com/linux/v4.19.6/source/net/ipv6/sit.c#L208
2018-12-03 09:15:24 +05:30
Susant Sahani
7b3b982217
vxlan: minor coding style fixes.
2018-12-03 02:05:12 +09:00
Yu Watanabe
302a796f5a
network: use typesafe netlink_call_async() macro where applicable
2018-12-02 06:29:32 +01:00
Susant Sahani
173a6e29be
networkd: vxlan make use of parse_ip_port_range
...
Use parse_ip_port_range
2018-11-29 14:04:26 +01:00
Susant Sahani
2266864b04
networkd: Add support for ERSPAN tunnel
...
Please see: https://patchwork.ozlabs.org/patch/800327/
```
[NetDev]
Name=erspan-test
Kind=erspan
[Tunnel]
Independent=true
ERSPANIndex=123
Local = 172.16.1.200
Remote = 172.16.1.100
Key=101
SerializeTunneledPackets=true
```
2018-11-27 11:04:42 +09:00
Yu Watanabe
6ce611e57c
network: also load foo.netdev.d/*.conf
...
Fixes #9940 .
2018-11-26 14:28:44 +09:00
Yu Watanabe
538f15cf06
tree-wide: use CONFIG_PARSER_PROTOTYPE() macro
2018-11-12 16:45:04 +09:00
Yu Watanabe
c6dbb5c43f
network: use hashmap_clear_with_destructor() at one more place
2018-11-12 16:32:11 +09:00
Yu Watanabe
3e5700428e
network: allocate hashmap objects when they are required
2018-11-12 16:32:11 +09:00
Yu Watanabe
17f9c355d5
network: use structured initializers
2018-11-12 16:32:10 +09:00
Yu Watanabe
bf877a54c7
Merge pull request #10669 from danderson/networkd-6rd
...
networkd: add 6rd support for sit netdevs
2018-11-12 15:55:03 +09:00
Yu Watanabe
30dce346d8
network: add missing verification for ip6gretap and sit
...
Fixes oss-fuzz#11324.
2018-11-10 15:53:18 +09:00
David Anderson
d067cab35c
networkd: support 6rd tunnel netdev setup.
2018-11-09 17:56:33 -08:00
Yu Watanabe
1909e9f11d
network: drop unused members in Wireguard object
2018-11-07 18:14:11 +09:00
Yu Watanabe
62facba19a
network: ignore multiple assignment of netdev kind
...
Fixes oss-fuzz#11279 and oss-fuzz#11280.
2018-11-07 17:23:50 +09:00
Evgeny Vereshchagin
e27aac11f2
networkd: make netdev_load_one "public" and add a fuzzer for it
2018-11-06 19:01:32 +01:00
Lennart Poettering
b992109b3e
Merge pull request #10633 from yuwata/sd-resolve-destroy
...
Another solution to fix wireguard issues
2018-11-06 19:30:59 +03:00
Tobias Jungel
db688b7e55
networkd: cleanup for #10542
...
fixes: 53b1f7d
2018-11-06 16:42:12 +03:00
Yu Watanabe
a7cc45caad
network: sort headers in wireguard.h
2018-11-05 13:19:02 +09:00