nixos/networkd: add some new options in systemd 256 (#330662)

This commit is contained in:
Franz Pletz 2024-11-30 06:44:55 +01:00 committed by GitHub
commit e5a4cc81ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -672,10 +672,12 @@ let
"IPv6AcceptRA"
"IPv6DuplicateAddressDetection"
"IPv6HopLimit"
"IPv6RetransmissionTimeSec"
"IPv4ReversePathFilter"
"IPv4AcceptLocal"
"IPv4RouteLocalnet"
"IPv4ProxyARP"
"IPv4ProxyARPPrivateVLAN"
"IPv6ProxyNDP"
"IPv6ProxyNDPAddress"
"IPv6SendRA"
@ -726,10 +728,12 @@ let
(assertMinimum "IPv6DuplicateAddressDetection" 0)
(assertInt "IPv6HopLimit")
(assertMinimum "IPv6HopLimit" 0)
(assertInt "IPv6RetransmissionTimeSec")
(assertValueOneOf "IPv4ReversePathFilter" ["no" "strict" "loose"])
(assertValueOneOf "IPv4AcceptLocal" boolValues)
(assertValueOneOf "IPv4RouteLocalnet" boolValues)
(assertValueOneOf "IPv4ProxyARP" boolValues)
(assertValueOneof "IPv4ProxyARPPrivateVLAN" boolValues)
(assertValueOneOf "IPv6ProxyNDP" boolValues)
(assertValueOneOf "IPv6SendRA" boolValues)
(assertValueOneOf "DHCPPrefixDelegation" boolValues)
@ -776,6 +780,7 @@ let
"Priority"
"IncomingInterface"
"OutgoingInterface"
"L3MasterDevice"
"SourcePort"
"DestinationPort"
"IPProtocol"
@ -790,6 +795,7 @@ let
(assertRange "TypeOfService" 0 255)
(assertRangeWithOptionalMask "FirewallMark" 1 4294967295)
(assertInt "Priority")
(assertValueOneOf "L3MasterDevice" boolValues)
(assertPortOrPortRange "SourcePort")
(assertPortOrPortRange "DestinationPort")
(assertValueOneOf "InvertRule" boolValues)