mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 06:25:34 +00:00
[1452] use sizeof(uint16_t) instead of a magic number '2'
This commit is contained in:
@@ -50,7 +50,7 @@ using namespace internal;
|
|||||||
// 6 32-bit fields, and 2 sockaddr structure. (see the SocketSessionUtility
|
// 6 32-bit fields, and 2 sockaddr structure. (see the SocketSessionUtility
|
||||||
// overview description in the header file). sizeof sockaddr_storage
|
// overview description in the header file). sizeof sockaddr_storage
|
||||||
// should be the possible max of any sockaddr structure
|
// should be the possible max of any sockaddr structure
|
||||||
const size_t DEFAULT_HEADER_BUFLEN = 2 + sizeof(uint32_t) * 6 +
|
const size_t DEFAULT_HEADER_BUFLEN = sizeof(uint16_t) + sizeof(uint32_t) * 6 +
|
||||||
sizeof(struct sockaddr_storage) * 2;
|
sizeof(struct sockaddr_storage) * 2;
|
||||||
|
|
||||||
// The allowable maximum size of data passed with the socket FD. For now
|
// The allowable maximum size of data passed with the socket FD. For now
|
||||||
|
Reference in New Issue
Block a user