summaryrefslogtreecommitdiff
path: root/src/network
Commit message (Collapse)AuthorAgeFilesLines
...
| * network: dhcp4: enable RoutesToDNS= by defaultYu Watanabe2021-04-271-0/+1
| |
* | Add support for conditions on the machines firmwareUwe Kleine-König2021-04-282-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 replaceWilliam A. Kennington III2021-04-281-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-19077Zbigniew Jędrzejewski-Szmek2021-04-261-39/+115
|\ | | | | network: dhcp4: set gateway for route to dns server if it is not in the same network
| * network: dhcp4: ignore null dns addressYu Watanabe2021-04-231-0/+3
| |
| * network: dhcp4: set gateway for route to DNS server if it is not in the same ↵Yu Watanabe2021-04-231-14/+22
| | | | | | | | | | | | network Fixes #19077.
| * network: dhcp4: ignore gateway in static routes if destination is link-local ↵Yu Watanabe2021-04-231-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 routesYu Watanabe2021-04-231-0/+2
| |
* | network: update comment and log messageYu Watanabe2021-04-261-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-typoLuca Boccassi2021-04-261-1/+1
|\ \ | | | | | | core, network: Fix typo
| * | network: fix typoYu Watanabe2021-04-261-1/+1
| |/ | | | | | | Follow-up for 4b409e855b18c263b0526c826fdca16215a4cf2e.
* | network: add missing sectionsYu Watanabe2021-04-261-0/+2
|/ | | | | | Follow-up for 4e26a5baa0045c8bbb899f0c72f07ac630692bd3. Fixes one of issues in #19410.
* Merge pull request #19392 from yuwata/network-dhcp-split-link_set_dhcp_routesYu Watanabe2021-04-231-197/+256
|\ | | | | network: split link_set_dhcp_routes() into smaller functions
| * network: dhcp4: simplify link_set_dns_routes()Yu Watanabe2021-04-221-53/+52
| |
| * network: dhcp4: introduce link_set_dhcp_gateway() and ↵Yu Watanabe2021-04-221-76/+112
| | | | | | | | link_set_dhcp_route_to_gateway()
| * network: dhcp4: introduce link_set_dhcp_static_routes()Yu Watanabe2021-04-221-63/+89
| |
| * network: dhcp4: introduce link_set_dhcp_prefix_route()Yu Watanabe2021-04-221-30/+28
| |
* | Merge pull request #19346 from mihajlov/dhcp_broadcast_l3Dimitri John Ledkov2021-04-224-4/+29
|\ \ | | | | | | network: enable DHCP broadcast flag if required by interface
| * | network: enable DHCP broadcast flag if required by interfaceViktor Mihajlovski2021-04-214-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 confsJóhann B. Guðmundsson2021-04-221-1/+1
| |/ |/|
* | Merge pull request #19271 from yuwata/dhcp-duid-uuidLennart Poettering2021-04-2118-325/+509
|\ \ | | | | | | network: fix issues arround DHCP DUID-UUID
| * | network: dhcp: constify link_get_duid()Yu Watanabe2021-04-214-16/+19
| | |
| * | network: dhcp: introduce duid_needs_product_uuid() helper functionYu Watanabe2021-04-211-1/+7
| | |
| * | network: configure non-dhcp configs earlier even DUID-UUID is used by DHCP ↵Yu Watanabe2021-04-2112-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 explicitlyYu Watanabe2021-04-2111-88/+273
| | | | | | | | | | | | Closes #18996.
| * | network: move dhcp related conf parsers to networkd-dhcp-common.cYu Watanabe2021-04-216-157/+151
| | |
* | | Merge pull request #19362 from yuwata/network-dhcp6-pd-log-19354Zbigniew Jędrzejewski-Szmek2021-04-213-11/+78
|\ \ \ | |/ / |/| | network: dhcp6: add logs about delegated prefix
| * | network: dhcp6: logs about generated addresses in delegated prefixYu Watanabe2021-04-211-0/+28
| | |
| * | network: dhcp6: logs about delegated prefixesYu Watanabe2021-04-213-11/+50
| | | | | | | | | | | | Closes #19354.
* | | network: set metric for prefix route of IPv4 link-local addressYu Watanabe2021-04-211-0/+1
| | |
* | | network: radv: add RouteMetric= setting in [IPv6Prefix]Yu Watanabe2021-04-214-0/+43
| | |
* | | network: dhcp6-pd: add RouteMetric= setting in [DHCPv6PrefixDelegation]Yu Watanabe2021-04-213-0/+4
| | |
* | | network: move RouteMetric= from [DHCPv6] to [IPv6AcceptRA]Yu Watanabe2021-04-215-14/+15
| | | | | | | | | | | | As the value is used in the routes in RA.
* | | network: dhcp4: also apply RouteMetric= setting in [DHCPv4] to prefix routeYu Watanabe2021-04-211-0/+1
| | |
* | | network: add RouteMetric= setting in [Address] sectionYu Watanabe2021-04-213-0/+49
| | |
* | | network: show route metric in debug logYu Watanabe2021-04-211-2/+2
|/ /
* | relay role implementationYegor Alexeyev2021-04-205-0/+36
| |
* | Merge pull request #19332 from yuwata/log_xxx_yyy_errno-follow-ups-19317Yu Watanabe2021-04-163-22/+29
|\ \ | | | | | | core,timedate,network: make log_unit_error_errno() or friends refuse zero errno
| * | network: update log messageYu Watanabe2021-04-162-8/+6
| | | | | | | | | | | | | | | In some optimization level with gcc, including netdev->ifname in log message causes error.
| * | network: make log_netdev_xxx_errno() refuse zero errnoYu Watanabe2021-04-161-14/+23
| | |
* | | Merge pull request #19290 from yuwata/network-dhcp-do-not-configure-twiceZbigniew Jędrzejewski-Szmek2021-04-168-27/+39
|\ \ \ | | | | | | | | network: refuse to configure DHCP client more than once
| * | | network: fix indentationYu Watanabe2021-04-131-1/+1
| | | |
| * | | network: lldp: update mac addressYu Watanabe2021-04-131-0/+6
| | | |
| * | | network: refuse to configure engines such as DHCP client more than onceYu Watanabe2021-04-136-26/+32
| | | |
* | | | Merge pull request #19310 from yuwata/network-dhcp-anonymizeZbigniew Jędrzejewski-Szmek2021-04-164-133/+102
|\ \ \ \ | |_|/ / |/| | | network: dhcp4: several fixes and cleanups for Anonymize=
| * | | network: dhcp4: warn when Anonymize=yes and ClientIdentifier= is not macYu Watanabe2021-04-142-7/+13
| | | |
| * | | network: drop unnecessary explicit initializationsYu Watanabe2021-04-141-10/+0
| | | |
| * | | network: dhcp4: do not request any additional options when Anonymize=yesYu Watanabe2021-04-142-100/+73
| | | | | | | | | | | | | | | | This makes networkd can use recieved options we do not request.
| * | | network: move and rename network_apply_anonymize_if_set()Yu Watanabe2021-04-144-48/+48
| | | |
* | | | Merge pull request #19317 from ↵Luca Boccassi2021-04-152-6/+12
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | keszybz/check-return-values-from-log_errno-functions Check return values from log_errno functions