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
Yu Watanabe
cb700a11d9
network: drop white space in log message
2018-11-01 23:41:29 +09:00
Yu Watanabe
0d7febd002
network: fix hash function for routing policy rule
2018-11-01 23:40:56 +09:00
Yu Watanabe
e6b65ab760
network: fix return value of routing_policy_rule_get()
...
To distinguish source of rule.
2018-11-01 23:38:11 +09:00
Yu Watanabe
a6276f0f3f
network: fix memleak in routing policy
...
As set_put() may fail if input is duplicated.
2018-11-01 23:24:20 +09:00
Yu Watanabe
744faf5e4e
network: fix memleak in static prefix
...
Fixes #10608 .
2018-11-01 21:46:38 +09:00
Yu Watanabe
f19ee68140
network: fix segfault in manager_free()
...
Fixes #10605 .
2018-11-01 20:26:02 +09:00
Yu Watanabe
21486d9e99
network: also monitor udev 'change' event for network interfaces
...
If networkd starts earlier than all network interfaces are initialized,
then uninitialized interfaces are staying in pending state and cannot
become up.
With this, such interfaces are started after receiving 'change' event.
2018-10-31 12:08:34 +01:00
Yu Watanabe
5a937ea2f6
sd-device: make sd_device_get_is_initialized() returns is_initialized by return value
2018-10-29 17:33:33 +09:00
Zbigniew Jędrzejewski-Szmek
910fd5317f
test-network-tables: remove duplicate line
2018-10-28 18:27:48 +01:00
Yu Watanabe
7606377e2c
network,udev: drop unnecessary check whether ifindex is positive
...
As sd_device_get_ifindex() now returns positive ifindex when it
succeeds.
2018-10-27 07:03:39 +09:00