Yu Watanabe
f8c2e4b926
network: adjust log level when DHCPv4 lease lost
2019-08-31 22:00:54 +02:00
Yu Watanabe
b977347498
Merge pull request #13412 from yuwata/network-check-and-warn-more
...
network: check more static IPv6 configurations and add more warnings
2019-08-28 15:23:01 +09:00
Yu Watanabe
44013aa4f5
network: add more warnings in network_verify()
2019-08-27 23:53:46 +09:00
Yu Watanabe
adfeee49c5
network: enable ipv6 when the network has static ipv6 configurations
2019-08-27 23:53:46 +09:00
Zbigniew Jędrzejewski-Szmek
57ad760746
network: drop all checks of ipv6_disabled sysctl
...
*We* control the sysctl setting. If the user configured IPv6, then we apply the
settings, and just make sure that at some point during the configuration the
sysctl is disabled (i.e. ipv6 enabled) if we have IPv6 configured.
Replaces #13283 .
2019-08-27 15:31:48 +02:00
Susant Sahani
482efedc08
network: Do not disable IPv6 by writing to sysctl
...
Only enable is and do not disable IPv6
2019-08-22 13:21:57 +02:00
Zbigniew Jędrzejewski-Szmek
4eaa2486b8
Merge pull request #13235 from yuwata/network-routing-policy-rule-family-13233
...
network: add RoutingPolicyRule.Family= setting
2019-08-19 10:08:23 +02:00
Zbigniew Jędrzejewski-Szmek
165df4dcda
Merge pull request #13345 from yuwata/network-fix-preferred-lifetime-zero-13341
...
network: fix PreferredLifetime=0
2019-08-19 09:59:16 +02:00
Zbigniew Jędrzejewski-Szmek
adfafd88b2
Revert "shared/conf-parser,networkd: EXTRACT_UNQUOTE|EXTRACT_RETAIN_ESCAPE → EXTRACT_UNQUOTE"
...
This reverts commit 8a07b4033e .
The tests are kept. test-networkd-conf is adjusted to pass.
This fixes #13276 . I think current rules are extremely confusing, as the
case in test-networkd-conf shows. We apply some kinds of unescaping (relating
to quoting), but not others (related to escaping of special characters).
But fixing this is hard, because people have adjusted quoting to match
our rules, and if we make the rules "better", things might break in unexpected
places.
2019-08-19 09:54:06 +02:00
Yu Watanabe
ce158189a8
network: do not check deprecated flag in address_is_ready()
...
Without this change, the address with PreferredLifetime=0 cannot be ready,
and thus, no consequent setting up process does not start.
The bug was introduced by 6aa5773 .
Follow-up for b7ed5384ab .
Fixes #13341 .
2019-08-19 00:04:42 +09:00
Yu Watanabe
f6c6ff97f5
network: add RoutingPolicyRule.Family= setting
...
Closes #13233 .
2019-08-16 22:02:17 +09:00
Yu Watanabe
01fc8e4f43
network: split out copying logic from routing_policy_rule_add_internal()
2019-08-16 22:02:17 +09:00
Yu Watanabe
2d79289525
network: rename AddressFamilyBoolean -> AddressFamily
...
We usually do not call an extended boolean as XxxBoolean.
2019-08-16 22:02:17 +09:00
Yu Watanabe
ec863cdc20
network: add missing entry in serialization/deserialization
2019-08-16 22:01:17 +09:00
Yu Watanabe
43e08c78c7
network: serialize/deserialize address family
2019-08-16 22:01:17 +09:00
Yu Watanabe
0aabccc87d
network: refuse the case To= and From= are in different address family
2019-08-16 22:01:17 +09:00
Lennart Poettering
e226badc9c
networkctl: avoid outputting '(null)' for LLDP ports without description
2019-08-16 07:43:34 +09:00
Lennart Poettering
24f36fb180
Merge pull request #13302 from yuwata/network-set-put-fixes
...
network: fixes related to set_put()
2019-08-14 16:18:06 +02:00
William A. Kennington III
d1bdafd214
networkd: Keep track of static neighbors
...
We need to keep track of the static neighbors that are configured on the
interface so that we can delete stale entries that were removed.
2019-08-12 20:28:19 +09:00
Yu Watanabe
3dc2e7af5f
network: add missing link_ref()
2019-08-11 09:11:25 +09:00
Yu Watanabe
75a302b561
network: fix potential memleaks related to set_put()
2019-08-11 08:57:01 +09:00
William A. Kennington III
0b1cd3e25a
networkd: Routes should take the gateway into account
...
Otherwise, changing the default gateway doesn't purge old gateway routes
left on the system during daemon restart. This also fixes removing other
foreign gateway routes that don't match the expected configuration.
Tested:
Changed gateway addresses prior to the patch and they lingered on
the system during each reconfiguration. Applied this patch and
reconfigured gateways and other routes multiple times and it removed
the foreign routes that had gateways that didn't match.
Signed-off-by: William A. Kennington III <william@wkennington.com >
2019-08-07 20:32:36 +09:00
Zbigniew Jędrzejewski-Szmek
9f4afc0154
Merge pull request #13189 from yuwata/network-initrd-generator-unit
...
unit: update initrd-network-generator.service
2019-07-30 16:38:59 +02:00
Yu Watanabe
45160216b7
networkctl: TABLE_BPS requires uint64_t
2019-07-30 15:09:16 +02:00
Yu Watanabe
e8d456fba8
network-generator: rename generated unit files
...
The tool may be used in the initrd-less systems.
2019-07-30 02:30:09 +09:00
Susant Sahani
b24281aaca
networkctl : Add support to display vxlan properties
2019-07-30 00:02:14 +09:00
Susant Sahani
c82d1bf2b3
networkctl: Add support to display bridge properties
2019-07-30 00:02:02 +09:00
Yu Watanabe
8d0e0af2a0
networkctl: merge multiple table_add_cell() by using table_add_many()
2019-07-29 23:19:08 +09:00
Yu Watanabe
b738530b04
network: slightly update log message
2019-07-26 11:00:56 +09:00
Yu Watanabe
e8489008cb
network: rename IGMPVersion= -> MulticastIGMPVersion=
2019-07-26 11:00:56 +09:00
Yu Watanabe
500b96eb34
network: drop redundant Link::kind check
...
All CAN devices' iftype are ARPHRD_CAN. So, checking Link::kind is
redundant.
Follow-up for c6ac3729c9 .
2019-07-25 16:47:16 +09:00
Yu Watanabe
4bd04e3dcb
network: drop recently added settings from deprecated [DHCP] section
2019-07-25 12:39:33 +09:00
Susant Sahani
afa51e2dfb
networkd: bridge add support to set IGMP version
2019-07-25 10:05:06 +09:00
Yu Watanabe
4410f5c902
Merge pull request #13166 from yuwata/network-slcan-support
...
network: slcan support
2019-07-25 09:49:56 +09:00
Yu Watanabe
c6ac3729c9
network: support slcan
...
The device driver does not have IFLA_INFO_KIND attribute. So, we need to
check iftype.
Closes #13150 .
2019-07-24 23:13:22 +09:00
Susant Sahani
426588bc63
network: fix DHCP route rumber parsing.
2019-07-24 18:06:30 +05:30
Yu Watanabe
8f815e8b03
tree-wide: drop netinet/ether.h from socket-util.h and sd-netlink.h
2019-07-24 18:23:08 +09:00
Yu Watanabe
bd7d6cec33
network: do not touch kernel-created multicast route
...
Fixes #6088 .
2019-07-23 22:08:49 +09:00
Zbigniew Jędrzejewski-Szmek
f7e7bb6546
Merge pull request #13070 from yuwata/network-set-route-to-dhcp-dns
2019-07-19 09:35:22 +02:00
1848
f9ab224eb8
network: Added neighbor lladdr support for IPv6
2019-07-19 07:14:58 +09:00
Yu Watanabe
a24e12f020
network: add DHCPv4.RoutesToDNS= setting
2019-07-19 01:49:39 +09:00
Yu Watanabe
854a1ccfc2
network: set routes to dns servers provided by DHCPv4
2019-07-19 01:44:44 +09:00
Yu Watanabe
d4c52ee5b5
network: store routes provided by DHCPv4 in Set
...
This re-writes d03073ddcd .
2019-07-19 01:44:44 +09:00
Yu Watanabe
01aaa3df16
network: introduce route_full_hash_ops
...
Will be used later.
2019-07-19 01:44:44 +09:00
Yu Watanabe
6787917dfa
network: update state file after dhcp6 events
...
E.g. DNS servers may be received from DHCPv6 server. If the link is
already in configured state, the DNS servers are not written in the
state file.
2019-07-17 23:15:15 +09:00
Yu Watanabe
26a65470ba
network: fix use after free()
...
The hashmap will be accessed by client_stop().
2019-07-17 23:13:40 +09:00
Yu Watanabe
2eff7cc59c
network: drop unnecessary line breaks
2019-07-17 23:13:40 +09:00
Yu Watanabe
8107f4731e
network: drop fallback mechanism to assign DHCPv6 addresses with IFA_F_NOPREFIXROUTE
...
The flag IFA_F_NOPREFIXROUTE was introduced in kernel-3.14. But even if
the kernel does not support the flag, it should be just ignored. So, it
is not necessary to do the fallback logic. Moreover, the current logic
is not a fallback mechanism but just retrying. So, it should not work.
Let's drop that.
2019-07-17 23:13:40 +09:00
Lennart Poettering
76c887fdaa
Merge pull request #13092 from keszybz/coverity-fixes
...
Coverity fixes
2019-07-17 14:18:49 +02:00
Zbigniew Jędrzejewski-Szmek
4337b0afae
test-networkd-conf: add missing assert
...
The test would not pass before, because EXTRACT_UNQUOTE|EXTRACT_RETAIN_ESCAPE
didn't work (we'd get "KEY3=val with \\quotation\\" as the last string. Now we
are only doing EXTRACT_UNQUOTE, so we get the expected "KEY3=val with \"quotation\"".
Coverity CID#1402781.
2019-07-17 11:35:04 +02:00