Commit 2f314077 authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Hs2Py constants: 'maxUdpDataSize'



Add 'maxUdpDataSize' constant to the Haskell to Python constant generation.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
parent 0dda32bb
...@@ -1477,12 +1477,7 @@ CONFD_DEFAULT_REQ_COVERAGE = _constants.CONFD_DEFAULT_REQ_COVERAGE ...@@ -1477,12 +1477,7 @@ CONFD_DEFAULT_REQ_COVERAGE = _constants.CONFD_DEFAULT_REQ_COVERAGE
CONFD_CLIENT_EXPIRE_TIMEOUT = _constants.CONFD_CLIENT_EXPIRE_TIMEOUT CONFD_CLIENT_EXPIRE_TIMEOUT = _constants.CONFD_CLIENT_EXPIRE_TIMEOUT
# Maximum UDP datagram size. MAX_UDP_DATA_SIZE = _constants.MAX_UDP_DATA_SIZE
# On IPv4: 64K - 20 (ip header size) - 8 (udp header size) = 65507
# On IPv6: 64K - 40 (ip6 header size) - 8 (udp header size) = 65487
# (assuming we can't use jumbo frames)
# We just set this to 60K, which should be enough
MAX_UDP_DATA_SIZE = 61440
# User-id pool minimum/maximum acceptable user-ids. # User-id pool minimum/maximum acceptable user-ids.
UIDPOOL_UID_MIN = 0 UIDPOOL_UID_MIN = 0
......
...@@ -3613,6 +3613,15 @@ confdDefaultReqCoverage = 6 ...@@ -3613,6 +3613,15 @@ confdDefaultReqCoverage = 6
confdClientExpireTimeout :: Int confdClientExpireTimeout :: Int
confdClientExpireTimeout = 10 confdClientExpireTimeout = 10
-- | Maximum UDP datagram size.
--
-- On IPv4: 64K - 20 (ip header size) - 8 (udp header size) = 65507
-- On IPv6: 64K - 40 (ip6 header size) - 8 (udp header size) = 65487
-- (assuming we can't use jumbo frames)
-- We just set this to 60K, which should be enough
maxUdpDataSize :: Int
maxUdpDataSize = 61440
-- * Possible values for NodeGroup.alloc_policy -- * Possible values for NodeGroup.alloc_policy
allocPolicyLastResort :: String allocPolicyLastResort :: String
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment