diff options
author | Anatole Denis <natolumin@unverle.fr> | 2021-04-24 17:52:52 +0200 |
---|---|---|
committer | Anatole Denis <Natolumin@users.noreply.github.com> | 2021-08-27 17:43:01 +0200 |
commit | 9b22cbe025f2ac29f10a32a748fd232238311064 (patch) | |
tree | 9843b425785e0f39a03a6d157e7dcaa3c6e2572d /dhcpv4 | |
parent | a3fe5c3e5d5ec382767965eedf60cb38b79ae108 (diff) |
dhcpv4: Add RelaySourcePortSubOption constant
As described in RFC8357 this is a 0-length suboption used to indicate
that the relay supports the arbitrary UDP port behavior from RFC8357
Since this is 0-length the constant is enough to handle the full
behavior
Signed-off-by: Anatole Denis <natolumin@unverle.fr>
Diffstat (limited to 'dhcpv4')
-rw-r--r-- | dhcpv4/option_relay_agent_information.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpv4/option_relay_agent_information.go b/dhcpv4/option_relay_agent_information.go index a338902..4f974dd 100644 --- a/dhcpv4/option_relay_agent_information.go +++ b/dhcpv4/option_relay_agent_information.go @@ -70,6 +70,7 @@ const ( VendorSpecificInformationSubOption raiSubOptionCode = 9 // RFC 4243 RelayAgentFlagsSubOption raiSubOptionCode = 10 // RFC 5010 ServerIdentifierOverrideSubOption raiSubOptionCode = 11 // RFC 5107 + RelaySourcePortSubOption raiSubOptionCode = 19 // RFC 8357 VirtualSubnetSelectionSubOption raiSubOptionCode = 151 // RFC 6607 VirtualSubnetSelectionControlSubOption raiSubOptionCode = 152 // RFC 6607 ) @@ -85,6 +86,7 @@ var raiSubOptionCodeToString = map[raiSubOptionCode]string{ VendorSpecificInformationSubOption: "Vendor Specific Sub-option", RelayAgentFlagsSubOption: "Relay Agent Flags Sub-option", ServerIdentifierOverrideSubOption: "Server Identifier Override Sub-option", + RelaySourcePortSubOption: "Relay Source Port Sub-option", VirtualSubnetSelectionSubOption: "Virtual Subnet Selection Sub-option", VirtualSubnetSelectionControlSubOption: "Virtual Subnet Selection Control Sub-option", } |