Systemd/src/libsystemd-network
Yu Watanabe 5a8775bb39 Revert "sd-dhcp-client: use asynchronous_close()"
This effectively reverts the commit 22fc2420b2.

The function `asynchronous_close()` confuses valgrind. Before this commit,
valgrind may report the following:

```
HEAP SUMMARY:
    in use at exit: 384 bytes in 1 blocks
  total heap usage: 4,787 allocs, 4,786 frees, 1,379,191 bytes allocated

384 bytes in 1 blocks are possibly lost in loss record 1 of 1
   at 0x483CAE9: calloc (vg_replace_malloc.c:760)
   by 0x401456A: _dl_allocate_tls (in /usr/lib64/ld-2.31.so)
   by 0x4BD212E: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.31.so)
   by 0x499B662: asynchronous_job (async.c:47)
   by 0x499B7DC: asynchronous_close (async.c:102)
   by 0x4CFA8B: client_initialize (sd-dhcp-client.c:696)
   by 0x4CFC5E: client_stop (sd-dhcp-client.c:725)
   by 0x4D4589: sd_dhcp_client_stop (sd-dhcp-client.c:2134)
   by 0x493C2F: link_stop_clients (networkd-link.c:620)
   by 0x4126DB: manager_free (networkd-manager.c:867)
   by 0x40D193: manager_freep (networkd-manager.h:97)
   by 0x40DAFC: run (networkd.c:20)

LEAK SUMMARY:
   definitely lost: 0 bytes in 0 blocks
   indirectly lost: 0 bytes in 0 blocks
     possibly lost: 384 bytes in 1 blocks
   still reachable: 0 bytes in 0 blocks
        suppressed: 0 bytes in 0 blocks

For lists of detected and suppressed errors, rerun with: -s
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
```
2020-10-24 13:27:37 +02:00
..
arp-util.c tree-wide: prefer AF_xyz over PF_xyz 2020-09-09 23:42:55 +02:00
arp-util.h arp-util: use net/ethernet.h instead of netinet/if_ether.h 2019-04-13 17:51:59 +09:00
dhcp-client-internal.h network: DHCPv4 client: add support to send arbitary option and data 2019-10-15 00:14:02 +09:00
dhcp-identifier.c tree-wide: drop if braces around single line expressions as well 2020-10-09 15:11:55 +02:00
dhcp-identifier.h sd-network: DHCPv6 - Add support to send vendor class data 2020-05-20 07:52:19 +02:00
dhcp-internal.h sd-dhcp: clean-up of DHCP lease server code 2020-05-30 14:18:43 +02:00
dhcp-lease-internal.h libsystemd-network: move prototypes of dhcp_lese_save/load() to network-internal.h 2020-06-23 19:13:05 +09:00
dhcp-network.c tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
dhcp-option.c tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
dhcp-packet.c dhcp4: make IPServiceType configurable 2019-09-26 11:39:46 +09:00
dhcp-protocol.h tree-wide: use proper unicode © instead of (C) where we can 2018-06-14 10:20:20 +02:00
dhcp-server-internal.h sd-dhcp-server: add sd_dhcp_server_set_callback() 2020-06-04 11:04:06 +02:00
dhcp6-internal.h dhcp6: parse the FQDN option 2020-08-03 09:36:18 +02:00
dhcp6-lease-internal.h dhcp6: parse the FQDN option 2020-08-03 09:36:18 +02:00
dhcp6-network.c libsystemd-network: rename index -> ifindex 2020-07-02 16:58:06 +09:00
dhcp6-option.c tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
dhcp6-protocol.h sd-network: DHCPv6 - Add status codes 2020-04-13 17:40:00 +02:00
icmp6-util.c libsystemd-network: rename index -> ifindex 2020-07-02 16:58:06 +09:00
icmp6-util.h libsystemd-network: rename index -> ifindex 2020-07-02 16:58:06 +09:00
lldp-internal.h tree-wide: use PROJECT_FILE instead of __FILE__ 2019-07-04 10:36:00 +02:00
lldp-neighbor.c sd-lldp: Add support to receive MUD 2020-04-07 17:17:29 +02:00
lldp-neighbor.h sd-lldp: Add support to receive MUD 2020-04-07 17:17:29 +02:00
lldp-network.c tree-wide: prefer AF_xyz over PF_xyz 2020-09-09 23:42:55 +02:00
lldp-network.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
meson.build network: DHCPv4 client: add support to send arbitary option and data 2019-10-15 00:14:02 +09:00
ndisc-internal.h tree-wide: use PROJECT_FILE instead of __FILE__ 2019-07-04 10:36:00 +02:00
ndisc-router.c tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
ndisc-router.h tree-wide: use proper unicode © instead of (C) where we can 2018-06-14 10:20:20 +02:00
network-internal.c network: read driver name from ethtool 2020-06-03 18:25:37 +02:00
network-internal.h libsystemd-network: move prototypes of dhcp_lese_save/load() to network-internal.h 2020-06-23 19:13:05 +09:00
radv-internal.h network: Add support to advertie ipv6 route 2019-09-17 12:09:59 +02:00
sd-dhcp-client.c Revert "sd-dhcp-client: use asynchronous_close()" 2020-10-24 13:27:37 +02:00
sd-dhcp-lease.c tree-wide: drop if braces around single line expressions as well 2020-10-09 15:11:55 +02:00
sd-dhcp-server.c Merge pull request #17356 from yuwata/sd-xxx-stop 2020-10-21 18:07:38 +02:00
sd-dhcp6-client.c libsystemd-network: do not request each daemon exist in sd_xxx_stop() 2020-10-15 07:24:17 +09:00
sd-dhcp6-lease.c dhcp6: parse the FQDN option 2020-08-03 09:36:18 +02:00
sd-ipv4acd.c libsystemd-network: do not request each daemon exist in sd_xxx_stop() 2020-10-15 07:24:17 +09:00
sd-ipv4ll.c libsystemd-network: do not request each daemon exist in sd_xxx_stop() 2020-10-15 07:24:17 +09:00
sd-lldp.c libsystemd-network: do not request each daemon exist in sd_xxx_stop() 2020-10-15 07:24:17 +09:00
sd-ndisc.c libsystemd-network: do not request each daemon exist in sd_xxx_stop() 2020-10-15 07:24:17 +09:00
sd-radv.c libsystemd-network: do not request each daemon exist in sd_xxx_stop() 2020-10-15 07:24:17 +09:00
test-acd.c ipv4ll: do not reset conflict counter on restart 2019-12-11 13:26:31 +09:00
test-dhcp-client.c sd-dhcp-client: make sd_dhcp_client_set_request_option() not return -EEXIST 2020-10-14 12:54:55 +09:00
test-dhcp-option.c sd-dhcp: clean-up of DHCP lease server code 2020-05-30 14:18:43 +02:00
test-dhcp-server.c tree-wide: assorted coccinelle fixes 2020-10-09 15:02:23 +02:00
test-dhcp6-client.c Merge pull request #16596 from poettering/event-time-rel 2020-08-04 16:07:03 +02:00
test-ipv4ll-manual.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
test-ipv4ll.c libsystemd-network: rename index -> ifindex 2020-07-02 16:58:06 +09:00
test-lldp.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
test-ndisc-ra.c tree-wide: make use of new relative time events in sd-event.h 2020-07-28 11:24:55 +02:00
test-ndisc-rs.c Merge pull request #16596 from poettering/event-time-rel 2020-08-04 16:07:03 +02:00
test-sd-dhcp-lease.c test: Add return 0 to main() function (even it is not strictly necessary) 2020-05-13 22:56:42 +02:00