diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-06-28 12:22:56 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-06-28 17:00:29 +0200 |
commit | 50daffb784721ffa515bbee34bdcc5e1a1efed96 (patch) | |
tree | ec729a5d4e8acfb640050bb2a7b91858a77dc138 /src/libcharon/plugins | |
parent | f95205f580c25bf90c9486ee679a61abebb48085 (diff) | |
download | strongswan-50daffb784721ffa515bbee34bdcc5e1a1efed96.tar.bz2 strongswan-50daffb784721ffa515bbee34bdcc5e1a1efed96.tar.xz |
dhcp: Use chunk_hash_static() to calculate ID-based MAC addresses
Diffstat (limited to 'src/libcharon/plugins')
-rw-r--r-- | src/libcharon/plugins/dhcp/dhcp_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/dhcp/dhcp_socket.c b/src/libcharon/plugins/dhcp/dhcp_socket.c index 46d4c64ef..72e6ff4da 100644 --- a/src/libcharon/plugins/dhcp/dhcp_socket.c +++ b/src/libcharon/plugins/dhcp/dhcp_socket.c @@ -227,7 +227,7 @@ static int prepare_dhcp(private_dhcp_socket_t *this, /* with ID specific postfix */ if (this->identity_lease) { - id = htonl(chunk_hash(chunk)); + id = htonl(chunk_hash_static(chunk)); } else { |