Yu Watanabe
17f9c355d5
network: use structured initializers
2018-11-12 16:32:10 +09:00
Yu Watanabe
1a75764a32
network: use NetworkConfigSection in fdb entries
2018-11-12 16:32:10 +09:00
Yu Watanabe
d5017c8410
network: make ndisc related handlers return negative errno but caller ignore the errors
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
Lennart Poettering
f57dfcba08
Merge pull request #10722 from yuwata/sd-device-monitor-change-arguments
...
sd-device-monitor: slightly re-design API arguments
2018-11-11 15:43:45 +01:00
Yu Watanabe
fa6f1e54e3
network: use hashmap_free_with_destructor() in network_free()
2018-11-11 11:36:16 +09:00
Yu Watanabe
cdd7812b12
network: fix missing free() in network_free()
...
Fixes oss-fuzz#11345.
2018-11-11 11:21:31 +09:00
Yu Watanabe
deb2b7348e
sd-device: drop priority and description from sd_device_monitor_attach_event() and sd_device_monitor_start()
...
Now we have sd_device_monitor_get_event_soruce(). So, it is not
necessary to include these parameters in the functions for sd_device_monitor.
2018-11-10 22:53:00 +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
e512c6c1aa
network: fix potential segfault in network_free()
2018-11-09 11:45:12 +09:00
Yu Watanabe
d493d82647
network: fix offset for IPv6MTUByte=
...
Fixes oss-fuzz#11302 and oss-fuzz#11314.
2018-11-09 11:44:51 +09:00
Yu Watanabe
28c3428df0
network: adds missing strv_free()
...
Fixes oss-fuzz#11285.
2018-11-08 12:30:03 +09:00
Yu Watanabe
7a99f98b50
network: make config_parse_radv_search_domains() log error in dns_name_apply_idna()
2018-11-08 12:29:38 +09: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
Yu Watanabe
c6d8bbb66e
in-addr-util: make in_addr_default_prefix_from_string() or friend set 0 to prefixlen when family == AF_INET6 ( #10665 )
...
Follow-up for a4798d4e6d
.
Fixes #10662 .
2018-11-07 15:31:26 +09:00
Evgeny Vereshchagin
212bd73c78
networkd: make network_load_one "public" and add a fuzzer for it
2018-11-06 19:01:32 +01:00
Evgeny Vereshchagin
e27aac11f2
networkd: make netdev_load_one "public" and add a fuzzer for it
2018-11-06 19:01:32 +01:00
Evgeny Vereshchagin
0621f03b13
networkd: remove a weird assertion from network_load_one
...
The assertion was added in dbffab87f1
but I'm not exactly sure
why. Now it just crashes a fuzzer I wrote. I, of course, could fix the fuzzer
so that it would generate names ending in ".network" if anyone would tell
me why the assertion should be kept here.
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
Lennart Poettering
a0ca258adf
Merge pull request #10597 from toanju/fix-networkd-l3-loss
...
networkd: don't remove ip address or route
2018-11-06 17:44:24 +03:00
Lennart Poettering
ed63705975
Merge pull request #10650 from yuwata/udevadm-trigger-use-write-string-file
...
udevadm: use write_string_file() helper function
2018-11-06 16:46:25 +03:00
Tobias Jungel
db688b7e55
networkd: cleanup for #10542
...
fixes: 53b1f7d
2018-11-06 16:42:12 +03:00
Tobias Jungel
7ecf0c3e17
networkd: don't remove route
...
In case networkd is restarted this prevents a removal of an already existing
route that would be configured using networkd. With the proposed changes the
route will be kept on the interface without removing. This happens only on
physical hosts or VMs since networkd handles interface configuration slightly
different in containers.
2018-11-06 13:28:12 +01:00
Tobias Jungel
30226d2718
networkd: don't remove ip address
...
In case networkd is restarted this prevents a removal of an already existing IP
address that would be configured using networkd. With the proposed changes the
IP address will be kept on the interface without removing. This happens only on
physical hosts or VMs since networkd handles interface configuration slightly
different in containers.
2018-11-06 13:26:37 +01:00
Yu Watanabe
57512c893e
tree-wide: set WRITE_STRING_FILE_DISABLE_BUFFER flag when we write files under /proc or /sys
2018-11-06 21:24:03 +09:00
Yu Watanabe
90208b8217
test: add tests for string tables for lldp and ndisc events
2018-11-06 20:15:09 +09:00
Lennart Poettering
a54e373163
Merge pull request #10618 from yuwata/fix-10615
...
network: fix several issues in config parser
2018-11-05 17:37:25 +03:00
Yu Watanabe
3d8d1f13d5
test: add tests for config_parse_address()
2018-11-05 16:46:26 +09:00
Yu Watanabe
b7cb445235
network: use in_addr_default_prefix_from_string_auto() in config_parse_address()
2018-11-05 16:46:26 +09:00
Yu Watanabe
a7cc45caad
network: sort headers in wireguard.h
2018-11-05 13:19:02 +09:00
Yu Watanabe
fc72155321
network: use structured initializers in wireguard.c
2018-11-05 13:19:02 +09:00
Yu Watanabe
c195364da5
network: fix crash in wireguard_done()
...
Fixes another issue in #10629 .
2018-11-05 13:19:02 +09:00
Yu Watanabe
56ba90c2df
network: use destroy callback to unref netdev attached to event source
2018-11-05 13:19:02 +09:00
Yu Watanabe
8173d1d0ec
network: use destroy callback to clear resolved wireguard endpoints
2018-11-05 13:19:02 +09:00
Yu Watanabe
c4397d94c3
network: link_drop() and netdev_drop() remove reference from manager
2018-11-05 13:19:02 +09:00
Yu Watanabe
2e5da68b7d
network: add missing .sections element for vcan and vrf
...
Fixes #10629 .
2018-11-04 00:31:46 +09:00
Yu Watanabe
de4224aa22
network: fix memleak abot Address.label
...
Also fix possible memleak about Address.section.
Fixes #10628 .
2018-11-04 00:31:46 +09:00
Yu Watanabe
7946d57f18
network: drop error cause in log message
...
Fixes for 21486d9e99
.
2018-11-04 00:31:46 +09:00
Yu Watanabe
ecee0abe77
network: fix memleak in static prefix
...
The fix by 744faf5e4e
is not perfect,
as the section leaks if `hashmap_put()` in `prefix_new_static()` fails.
2018-11-04 00:31:46 +09:00
Yu Watanabe
6f1a96ded4
netdev: also support GENEVE.UDP6ZeroChecksum{Tx,Rx}=
...
After 53c06862c1
, we prefer Checksum
instead of CheckSum. Let's do so for GENEVE netdev.
2018-11-04 00:31:46 +09:00
Yu Watanabe
fd3005f9b8
network: fix worng offset for .network parser
2018-11-04 00:31:46 +09:00
Yu Watanabe
25ed70f76f
network: fix possible memleak caused by multiple setting of Bridge=, Bond= or VRF=
2018-11-04 00:31:46 +09:00
Yu Watanabe
5f74e49e85
test: add test for radv_prefix_delegation_{from,to}_string()
2018-11-04 00:31:46 +09:00
Yu Watanabe
6b1dec6696
network: introduce radv_prefix_delegation_{from,to}_string()
2018-11-04 00:31:46 +09:00
Yu Watanabe
8a4871c7d1
network: fix indentation
2018-11-04 00:31:46 +09:00
Yu Watanabe
8627d1120a
network: invert the order in comparison
2018-11-04 00:31:46 +09:00
Yu Watanabe
1176b054e1
network: shorten code a bit
2018-11-04 00:31:06 +09:00
Tobias Jungel
99f68ef02d
networkd: add missing bonding options ( #10542 )
...
Add support for bonding options system prio, port key and actor system mac.
These options exist in the linux kernel since 4.2
(torvalds/linux@171a42c38c )
Details:
https://www.kernel.org/doc/Documentation/networking/bonding.txt
2018-11-02 10:31:20 +09:00