dhcp: Only send client identifier if identity_lease is enabled
authorTobias Brunner <tobias@strongswan.org>
Wed, 11 Apr 2018 08:51:01 +0000 (10:51 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 18 May 2018 16:04:01 +0000 (18:04 +0200)
commit7b660944b63569d2f9c8fdd945b034564d532d9b
treed6dedfef31c7bffe5dce750cd8257da6269d7af7
parent0e5b94d03845bfb60842014ebb14f153a337954f
dhcp: Only send client identifier if identity_lease is enabled

The client identifier serves as unique identifier just like a unique MAC
address would, so even with identity_leases disabled some DHCP servers
might assign unique leases per identity.
conf/plugins/dhcp.opt
src/libcharon/plugins/dhcp/dhcp_socket.c
testing/tests/ikev2/dhcp-dynamic/posttest.dat
testing/tests/ikev2/dhcp-static-client-id/hosts/moon/etc/strongswan.conf
testing/tests/swanctl/dhcp-dynamic/posttest.dat