Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | network: dhcp4: enable RoutesToDNS= by default | Yu Watanabe | 2021-04-27 | 1 | -0/+1 | |
| | | ||||||
* | | Add support for conditions on the machines firmware | Uwe Kleine-König | 2021-04-28 | 2 | -0/+2 | |
| | | | | | | | | | | | | This allows to limit units to machines that run on a certain firmware type. For device tree defined machines checking against the machine's compatible is also possible. | |||||
* | | network: neighbor: Always add neighbors with replace | William A. Kennington III | 2021-04-28 | 1 | -4/+0 | |
|/ | | | | | | | | | | We were duplicating setting flags for the message and a combination of NLM_F_APPEND and NLM_F_CREATE which does not make sense. We should have been using NLM_F_REPLACE and NLM_F_CREATE since the kernel can dynamically create neighbors prior to us adding an entry. Otherwise, we can end up with cases where the message will time out after ~25s even though the neighbor still gets added. This delays the rest of the setup of the interface even though the error is ultimately ignored. | |||||
* | Merge pull request #19286 from yuwata/network-dhcp-routes-to-dns-19077 | Zbigniew Jędrzejewski-Szmek | 2021-04-26 | 1 | -39/+115 | |
|\ | | | | | network: dhcp4: set gateway for route to dns server if it is not in the same network | |||||
| * | network: dhcp4: ignore null dns address | Yu Watanabe | 2021-04-23 | 1 | -0/+3 | |
| | | ||||||
| * | network: dhcp4: set gateway for route to DNS server if it is not in the same ↵ | Yu Watanabe | 2021-04-23 | 1 | -14/+22 | |
| | | | | | | | | | | | | network Fixes #19077. | |||||
| * | network: dhcp4: ignore gateway in static routes if destination is link-local ↵ | Yu Watanabe | 2021-04-23 | 1 | -26/+89 | |
| | | | | | | | | | | | | | | or in the same network This also configures routes to gateways in static routes if the destination is not in the same network. | |||||
| * | network: dhcp4: also set route MTU to prefix route and DNS routes | Yu Watanabe | 2021-04-23 | 1 | -0/+2 | |
| | | ||||||
* | | network: update comment and log message | Yu Watanabe | 2021-04-26 | 1 | -2/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | After 4b30f2e135ee84041bb597edca7225858f4ef4fb, reading stable_secret sysctl property fails with -ENOMEM, instead of -EIO. This is due to read_full_virtual_file() uses read() as the backend while read_one_line_file() uses fgetc(). And each functions return different error on fails. Anyway, the failure is harmless here. So, the log message and comment is updated. Closes one of the issues in #19410. | |||||
* | | Merge pull request #19421 from yuwata/fix-typo | Luca Boccassi | 2021-04-26 | 1 | -1/+1 | |
|\ \ | | | | | | | core, network: Fix typo | |||||
| * | | network: fix typo | Yu Watanabe | 2021-04-26 | 1 | -1/+1 | |
| |/ | | | | | | | Follow-up for 4b409e855b18c263b0526c826fdca16215a4cf2e. | |||||
* | | network: add missing sections | Yu Watanabe | 2021-04-26 | 1 | -0/+2 | |
|/ | | | | | | Follow-up for 4e26a5baa0045c8bbb899f0c72f07ac630692bd3. Fixes one of issues in #19410. | |||||
* | Merge pull request #19392 from yuwata/network-dhcp-split-link_set_dhcp_routes | Yu Watanabe | 2021-04-23 | 1 | -197/+256 | |
|\ | | | | | network: split link_set_dhcp_routes() into smaller functions | |||||
| * | network: dhcp4: simplify link_set_dns_routes() | Yu Watanabe | 2021-04-22 | 1 | -53/+52 | |
| | | ||||||
| * | network: dhcp4: introduce link_set_dhcp_gateway() and ↵ | Yu Watanabe | 2021-04-22 | 1 | -76/+112 | |
| | | | | | | | | link_set_dhcp_route_to_gateway() | |||||
| * | network: dhcp4: introduce link_set_dhcp_static_routes() | Yu Watanabe | 2021-04-22 | 1 | -63/+89 | |
| | | ||||||
| * | network: dhcp4: introduce link_set_dhcp_prefix_route() | Yu Watanabe | 2021-04-22 | 1 | -30/+28 | |
| | | ||||||
* | | Merge pull request #19346 from mihajlov/dhcp_broadcast_l3 | Dimitri John Ledkov | 2021-04-22 | 4 | -4/+29 | |
|\ \ | | | | | | | network: enable DHCP broadcast flag if required by interface | |||||
| * | | network: enable DHCP broadcast flag if required by interface | Viktor Mihajlovski | 2021-04-21 | 4 | -4/+29 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some interfaces require that the DHCPOFFER message is sent via broadcast if they can't receive unicast messages before they've been configured with an IP address. E.g., s390 ccwgroup network interfaces operating in layer3 mode face this limitation. This can prevent the interfaces from receiving an IP address via DHCP, if the have been configured for layer3. To allow DHCP over such interfaces, we're introducing a new device property ID_NET_DHCP_BROADCAST which can be set for those. The networkd DHCP client will check whether this property is set for an interface, and if so will set the broadcast flag, unless the network configuration for the interface has an explicit RequestBroadcast setting. Besides that, we're adding a udev rule to set this device property for ccwgroup devices operating in layer3 mode, which is the case if the ID_NET_DRIVER property is qeth_l3. Supercedes #18829 | |||||
* | | | fix: point to the correct drop-ins subdirectory for confs | Jóhann B. Guðmundsson | 2021-04-22 | 1 | -1/+1 | |
| |/ |/| | ||||||
* | | Merge pull request #19271 from yuwata/dhcp-duid-uuid | Lennart Poettering | 2021-04-21 | 18 | -325/+509 | |
|\ \ | | | | | | | network: fix issues arround DHCP DUID-UUID | |||||
| * | | network: dhcp: constify link_get_duid() | Yu Watanabe | 2021-04-21 | 4 | -16/+19 | |
| | | | ||||||
| * | | network: dhcp: introduce duid_needs_product_uuid() helper function | Yu Watanabe | 2021-04-21 | 1 | -1/+7 | |
| | | | ||||||
| * | | network: configure non-dhcp configs earlier even DUID-UUID is used by DHCP ↵ | Yu Watanabe | 2021-04-21 | 12 | -126/+122 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clients Previously, if DUID-UUID is used, all configurations are configured after networkd gets product uuid of machine. This makes only DHCP clients are delayed, and other configs are configured earlier. | |||||
| * | | network: make IAID and DUID for DHCPv6 configurable explicitly | Yu Watanabe | 2021-04-21 | 11 | -88/+273 | |
| | | | | | | | | | | | | Closes #18996. | |||||
| * | | network: move dhcp related conf parsers to networkd-dhcp-common.c | Yu Watanabe | 2021-04-21 | 6 | -157/+151 | |
| | | | ||||||
* | | | Merge pull request #19362 from yuwata/network-dhcp6-pd-log-19354 | Zbigniew Jędrzejewski-Szmek | 2021-04-21 | 3 | -11/+78 | |
|\ \ \ | |/ / |/| | | network: dhcp6: add logs about delegated prefix | |||||
| * | | network: dhcp6: logs about generated addresses in delegated prefix | Yu Watanabe | 2021-04-21 | 1 | -0/+28 | |
| | | | ||||||
| * | | network: dhcp6: logs about delegated prefixes | Yu Watanabe | 2021-04-21 | 3 | -11/+50 | |
| | | | | | | | | | | | | Closes #19354. | |||||
* | | | network: set metric for prefix route of IPv4 link-local address | Yu Watanabe | 2021-04-21 | 1 | -0/+1 | |
| | | | ||||||
* | | | network: radv: add RouteMetric= setting in [IPv6Prefix] | Yu Watanabe | 2021-04-21 | 4 | -0/+43 | |
| | | | ||||||
* | | | network: dhcp6-pd: add RouteMetric= setting in [DHCPv6PrefixDelegation] | Yu Watanabe | 2021-04-21 | 3 | -0/+4 | |
| | | | ||||||
* | | | network: move RouteMetric= from [DHCPv6] to [IPv6AcceptRA] | Yu Watanabe | 2021-04-21 | 5 | -14/+15 | |
| | | | | | | | | | | | | As the value is used in the routes in RA. | |||||
* | | | network: dhcp4: also apply RouteMetric= setting in [DHCPv4] to prefix route | Yu Watanabe | 2021-04-21 | 1 | -0/+1 | |
| | | | ||||||
* | | | network: add RouteMetric= setting in [Address] section | Yu Watanabe | 2021-04-21 | 3 | -0/+49 | |
| | | | ||||||
* | | | network: show route metric in debug log | Yu Watanabe | 2021-04-21 | 1 | -2/+2 | |
|/ / | ||||||
* | | relay role implementation | Yegor Alexeyev | 2021-04-20 | 5 | -0/+36 | |
| | | ||||||
* | | Merge pull request #19332 from yuwata/log_xxx_yyy_errno-follow-ups-19317 | Yu Watanabe | 2021-04-16 | 3 | -22/+29 | |
|\ \ | | | | | | | core,timedate,network: make log_unit_error_errno() or friends refuse zero errno | |||||
| * | | network: update log message | Yu Watanabe | 2021-04-16 | 2 | -8/+6 | |
| | | | | | | | | | | | | | | | In some optimization level with gcc, including netdev->ifname in log message causes error. | |||||
| * | | network: make log_netdev_xxx_errno() refuse zero errno | Yu Watanabe | 2021-04-16 | 1 | -14/+23 | |
| | | | ||||||
* | | | Merge pull request #19290 from yuwata/network-dhcp-do-not-configure-twice | Zbigniew Jędrzejewski-Szmek | 2021-04-16 | 8 | -27/+39 | |
|\ \ \ | | | | | | | | | network: refuse to configure DHCP client more than once | |||||
| * | | | network: fix indentation | Yu Watanabe | 2021-04-13 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | network: lldp: update mac address | Yu Watanabe | 2021-04-13 | 1 | -0/+6 | |
| | | | | ||||||
| * | | | network: refuse to configure engines such as DHCP client more than once | Yu Watanabe | 2021-04-13 | 6 | -26/+32 | |
| | | | | ||||||
* | | | | Merge pull request #19310 from yuwata/network-dhcp-anonymize | Zbigniew Jędrzejewski-Szmek | 2021-04-16 | 4 | -133/+102 | |
|\ \ \ \ | |_|/ / |/| | | | network: dhcp4: several fixes and cleanups for Anonymize= | |||||
| * | | | network: dhcp4: warn when Anonymize=yes and ClientIdentifier= is not mac | Yu Watanabe | 2021-04-14 | 2 | -7/+13 | |
| | | | | ||||||
| * | | | network: drop unnecessary explicit initializations | Yu Watanabe | 2021-04-14 | 1 | -10/+0 | |
| | | | | ||||||
| * | | | network: dhcp4: do not request any additional options when Anonymize=yes | Yu Watanabe | 2021-04-14 | 2 | -100/+73 | |
| | | | | | | | | | | | | | | | | This makes networkd can use recieved options we do not request. | |||||
| * | | | network: move and rename network_apply_anonymize_if_set() | Yu Watanabe | 2021-04-14 | 4 | -48/+48 | |
| | | | | ||||||
* | | | | Merge pull request #19317 from ↵ | Luca Boccassi | 2021-04-15 | 2 | -6/+12 | |
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | keszybz/check-return-values-from-log_errno-functions Check return values from log_errno functions |