diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-01 01:51:49 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-01 01:51:52 +0100 |
commit | 5e822519130f2692c3704e1c5c0eccd5baa98203 (patch) | |
tree | b94cc66623d5ac5b71ae34b32bd43d584db18706 /src/libsystemd-network | |
parent | execute: respect selinux_context_ignore (diff) | |
download | systemd-5e822519130f2692c3704e1c5c0eccd5baa98203.tar.xz systemd-5e822519130f2692c3704e1c5c0eccd5baa98203.zip |
sd-dhcp6-client: always set suitable ARP type
Also, drops unnecessary comparisons.
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/sd-dhcp6-client.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index 9a6be64789..ab336f5a7c 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -251,10 +251,6 @@ int sd_dhcp6_client_set_mac( return 0; } - if (client->mac_addr_len == addr_len && - memcmp(&client->mac_addr, addr, addr_len) == 0) - return 0; - memcpy(&client->mac_addr, addr, addr_len); client->mac_addr_len = addr_len; client->arp_type = arp_type; |