diff options
author | Andrei Pavel <andrei@isc.org> | 2024-10-23 09:59:31 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2024-10-23 15:40:37 +0200 |
commit | a740d0bfe58515913cb5839ecb00b3400e5d20cf (patch) | |
tree | fb1e5258a37fcb5ba9e165abb8b13893ce71fe68 /src/bin | |
parent | [#3605] use server listener (diff) | |
download | kea-a740d0bfe58515913cb5839ecb00b3400e5d20cf.tar.xz kea-a740d0bfe58515913cb5839ecb00b3400e5d20cf.zip |
[#3605] Rotate ports on HTTP fuzzers as well
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/dhcp4/dhcp4_srv.cc | 6 | ||||
-rw-r--r-- | src/bin/dhcp6/dhcp6_srv.cc | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc index af373f79e4..c5e65061c6 100644 --- a/src/bin/dhcp4/dhcp4_srv.cc +++ b/src/bin/dhcp4/dhcp4_srv.cc @@ -5181,9 +5181,9 @@ void Dhcpv4Srv::discardPackets() { uint16_t Dhcpv4Srv::getServerPort() const { #ifdef FUZZING - char const* const randomize(getenv("KEA_DHCP4_FUZZING_ROTATE_PORT")); - if (randomize) { - InterprocessSyncFile file("kea-dhcp4-fuzzing-randomize-port"); + char const* const rotate(getenv("KEA_DHCP4_FUZZING_ROTATE_PORT")); + if (rotate) { + InterprocessSyncFile file("kea-dhcp4-fuzzing-rotate-port"); InterprocessSyncLocker locker(file); while (!locker.lock()) { this_thread::sleep_for(1s); diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc index 2e59bbf35e..0383225d1f 100644 --- a/src/bin/dhcp6/dhcp6_srv.cc +++ b/src/bin/dhcp6/dhcp6_srv.cc @@ -4921,9 +4921,9 @@ void Dhcpv6Srv::discardPackets() { uint16_t Dhcpv6Srv::getServerPort() const { #ifdef FUZZING - char const* const randomize(getenv("KEA_DHCP6_FUZZING_ROTATE_PORT")); - if (randomize) { - InterprocessSyncFile file("kea-dhcp6-fuzzing-randomize-port"); + char const* const rotate(getenv("KEA_DHCP6_FUZZING_ROTATE_PORT")); + if (rotate) { + InterprocessSyncFile file("kea-dhcp6-fuzzing-rotate-port"); InterprocessSyncLocker locker(file); while (!locker.lock()) { this_thread::sleep_for(1s); |