summaryrefslogtreecommitdiffstats
path: root/src/network (follow)
Commit message (Collapse)AuthorAgeFilesLines
* network: do not fail if UseMTU=yes on DHCP lease lostYu Watanabe2020-08-181-6/+5
| | | | | | This fixes a bug introduced by 6906794dd1698954b349ec3ec84f1494ecd63cd3. Fixes #16768.
* network: wait for previous address removal before configuring static addressesYu Watanabe2020-08-082-1/+41
| | | | Fixes #16696.
* network: drop unnecessary bracketYu Watanabe2020-08-081-2/+1
|
* network: only process non-error messageYu Watanabe2020-08-081-1/+1
|
* Merge pull request #16596 from poettering/event-time-relZbigniew Jędrzejewski-Szmek2020-08-041-5/+3
|\ | | | | | | Conflict in src/libsystemd-network/test-ndisc-rs.c fixed manually.
| * tree-wide: make use of new relative time events in sd-event.hLennart Poettering2020-07-281-5/+3
| |
* | network: fix use of uninitialized valueYu Watanabe2020-07-301-1/+1
| | | | | | | | Follow-up for 6e537f62d71edea5bfcd2e2675c35ee840ffdc1f.
* | network: Fix "Unknown section 'DHCPv6PrefixDelegation'." messageMichael Marley2020-07-301-0/+1
| | | | | | | | Follow-up for https://github.com/systemd/systemd/commit/99e015e28c8322bf714f45cd1defcf20ac2103c5
* | network: rename settings about DHCPv6 Prefix DelegationYu Watanabe2020-07-287-75/+81
| | | | | | | | Closes #16602.
* | network: make RADVPrefixDelegation enum bitfieldYu Watanabe2020-07-284-15/+7
| | | | | | | | This should not change any behavior.
* | network: update address infomation even if link is in failed or linger stateYu Watanabe2020-07-281-4/+4
| | | | | | | | | | | | As the link may be reconfigured later. If we do not update the address information, then its setup state or operstate may not be updated correctly.
* | network: do not assume static addresses are configuredYu Watanabe2020-07-283-34/+97
| | | | | | | | | | | | | | link_request_set_routes() is also called when a dynamic address is configured. At that time, static addresses may not be configured yet. Fixes #16546.
* | network: check at least one dynamic address is assigned when DHCP is enabledYu Watanabe2020-07-281-2/+4
| |
* | network: dhcp6: drop addresses and delegated prefixes on client stopYu Watanabe2020-07-2810-653/+1020
| | | | | | | | | | | | | | | | Previously, we did not drop addresses and delegated prefixes when DHCP6 client is stopped. Fixes #15455. Fixes #13564.
* | network: rename ipv4ll_address -> ipv4ll_address_configuredYu Watanabe2020-07-283-7/+7
| |
* | network: ndisc: also remove old DNSSL or RDNSS records after an SLAAC ↵Yu Watanabe2020-07-282-50/+76
| | | | | | | | address is ready
* | network: ndisc: remove old addresses and routes after at least one SLAAC ↵Yu Watanabe2020-07-285-44/+183
| | | | | | | | | | | | address becomes ready Otherwise, the old addresses will exist in deperecated state.
* | network: dhcp4: release old lease after the new address become readyYu Watanabe2020-07-285-362/+118
| | | | | | | | | | | | | | Previously, on DHCPv4 address renewal, the old address may be removed while the new address is not ready yet. This also simplifies the logic of removing address and routes.
* | network: make address/route_configure optionally return created ↵Yu Watanabe2020-07-288-19/+28
| | | | | | | | Address/Route object
* | network: set key destructor in several hash_opsYu Watanabe2020-07-286-15/+20
| |
* | network: make link_check_ready() return earlier if the link is not in ↵Yu Watanabe2020-07-281-4/+6
| | | | | | | | 'configuring' state
* | network: ndisc: do not set configured flags when addresses or routes are not ↵Yu Watanabe2020-07-281-4/+5
| | | | | | | | | | | | assigned yet Just for safety.
* | network: make link enter failed state if address_update() failedYu Watanabe2020-07-281-2/+4
| |
* | network: introduce callback called when an address becomes readyYu Watanabe2020-07-282-8/+18
| |
* | network: add debug log for configuring addressYu Watanabe2020-07-281-0/+7
|/
* Fix clang-11 issuesChristian Göttsche2020-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tested with clang 11.0.0-++20200715043845+0e377e253c1-1~exp1 on Debian sid ../src/network/test-networkd-conf.c:104:56: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] test_config_parse_duid_rawdata_one(BYTES_0_128 + 2, 0, &(DUID){0, 128, BYTES_1_128}); ~~~~~~~~~~~~^~~ ../src/network/test-networkd-conf.c:104:56: note: use array indexing to silence this warning test_config_parse_duid_rawdata_one(BYTES_0_128 + 2, 0, &(DUID){0, 128, BYTES_1_128}); ^ & [ ] 1 warning generated. ../src/test/test-clock.c:52:17: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] ftruncate(fileno(f), 0); ^~~~~~~~~ ~~~~~~~~~~~~ 1 warning generated. (gdb) run Starting program: systemd/build/test-alloc-util [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". x1: 0x7fffffffd2d0 x2: 0x7fffffffdac0 y: 0x7fffffffd2cc z: 0x7fffffffd2c0 cleanup2(0x7fffffffd2cc) cleanup3(0x7fffffffd2c0) cleanup1(0x7fffffffdac0) cleanup1(0x7fffffffd2d0) *** buffer overflow detected ***: terminated Program received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt full set = {__val = {0, 18446744073709551615, 0, 0, 0, 0, 140737348658240, 140737348659520, 0, 0, 0, 0, 0, 0, 0, 0}} pid = <optimized out> tid = <optimized out> ret = <optimized out> save_stage = 1 act = {__sigaction_handler = {sa_handler = 0x22ff0, sa_sigaction = 0x22ff0}, sa_mask = {__val = {140737349888603, 4217127, 4217127, 4217127, 4217127, 4217383, 0, 0, 0, 0, 143329, 143344, 140737351162752, 8959, 18446744073709551328, 4289072}}, sa_flags = -138460788, sa_restorer = 0xffffffffffffffff} sigs = {__val = {32, 0 <repeats 15 times>}} ap = {{gp_offset = 24, fp_offset = 0, overflow_arg_area = 0x7fffffffd280, reg_save_area = 0x7fffffffd210}} fd = <optimized out> list = <optimized out> nlist = <optimized out> cp = <optimized out> No locals. No locals. No locals. No locals. No locals. l = 0 No locals. p1 = 0x405500 "\223Nd\n\351\301mA\214\262A\247\306b\276\317\327\353\346k\035\024\273{\276&!kλ\233\217\t\207\276\327\347\351\355\307R\276\063{\235w=\237E\357\277KL\245\374\245\066M\201+\333\064\272\332g>1<@" p2 = <optimized out> i = <optimized out> No locals.
* network: compare with peer address if it is specifiedYu Watanabe2020-07-231-1/+7
| | | | Follow-ups for dfef713f3e390ced671ce0ee87782cc373c937d0.
* network: ndisc: ignore duplicated IPv6Token=Yu Watanabe2020-07-223-16/+31
|
* network: ndisc: do not store duplicated data in SetYu Watanabe2020-07-221-99/+102
| | | | | | | The Address objects in the set generated by ndisc_router_generate_addresses() have the equivalent prefixlen, flags, prefered lifetime. This commit makes ndisc_router_generate_addresses() return Set of in6_addr.
* network: make bus methods sync link state fileYu Watanabe2020-07-221-11/+51
|
* network: introduce link_save_and_clean()Yu Watanabe2020-07-224-5/+15
|
* tree-wide: use siphash24_compress_string() where it is applicableYu Watanabe2020-07-223-8/+5
|
* Merge pull request #16530 from ↵Zbigniew Jędrzejewski-Szmek2020-07-221-1/+1
|\ | | | | | | | | yuwata/udev-fix-race-in-renaming-network-interface udev: fix race in renaming network interface
| * network: update one log messageYu Watanabe2020-07-211-1/+1
| |
* | tree-wide: use READ_FULL_FILE_CONNECT_SOCKET at various placesLennart Poettering2020-07-212-2/+8
| | | | | | | | | | | | | | | | | | | | | | Let's use the new flag wherever we read key material/passphrases/hashes off disk, so that people can plug in their own IPC service as backend if they like, easily. (My main goal was actually to support this for crypttab key files — i.e. that you can specify AF_UNIX sockets as third column in crypttab — but that's harder to implement, since the keys are read via libcryptsetup's API, not ours.)
* | fileio: add explicit flag for generating world executable warning when ↵Lennart Poettering2020-07-212-2/+2
| | | | | | | | reading file
* | Merge pull request #16519 from yuwata/networkctl-altnamesZbigniew Jędrzejewski-Szmek2020-07-211-1/+2
|\ \ | | | | | | networkctl: tiny cleanups about alternative names
| * | networkctl: do not ignore -EOPNOTSUPP when reading netlink messageYu Watanabe2020-07-201-1/+1
| | | | | | | | | | | | | | | If the kernel does not support alternative interface names, then sd_netlink_message_read_strv() should just return -ENODATA.
| * | networkctl: sort alternative namesYu Watanabe2020-07-201-0/+1
| | |
* | | network, resolve: use bus_message_read_ifindex() or friendsYu Watanabe2020-07-201-10/+6
| | |
* | | util: introduce bus_mesage_read_dns_servers()Yu Watanabe2020-07-201-75/+4
| | |
* | | network: add DBus method to set DNS server with port number and SNIYu Watanabe2020-07-203-5/+35
| | |
* | | network: save DNS servers specified by DBus interfaceYu Watanabe2020-07-201-4/+10
| | | | | | | | | | | | Also, filter out DNS servers which do not match link ifindex.
* | | network: do not save DNS= entries not match link ifindexYu Watanabe2020-07-201-3/+6
| | |
* | | network: support port number and SNI in [Network] DNS=Yu Watanabe2020-07-208-54/+83
| |/ |/|
* | network: stop already running engines before updating MAC addressYu Watanabe2020-07-201-53/+89
|/ | | | | | | | | | | In NetworkdBridgeTests.test_bridge_configure_without_carrier of systemd-networkd-tests.py ``` bridge99: MAC address: 2e:3a:ec:4d:d3:62 Assertion 'sd_ipv4ll_is_running(ll) == 0' failed at src/libsystemd-network/sd-ipv4ll.c:110, function int sd_ipv4ll_set_mac(sd_ipv4ll *, const struct ether_addr *)(). Ignoring. bridge99: Could not update MAC address in IPv4LL client: Device or resource busy ```
* Merge pull request #16505 from yuwata/network-manage-foreign-routes-cleanupsZbigniew Jędrzejewski-Szmek2020-07-205-34/+44
|\ | | | | network: do not enumerate foreign routes when ManageForeignRoutes=no, and tiny cleanups
| * network: replace NDISC -> NDisc in log messagesYu Watanabe2020-07-172-5/+5
| |
| * network: introduce address_exists() helper functionYu Watanabe2020-07-173-28/+34
| |
| * network: update debug log when foreign routes are received with ↵Yu Watanabe2020-07-171-1/+2
| | | | | | | | ManageForeignRoutes=no