dhcpkit.ipv6.server.extensions.map.config module¶
Configuration elements for the MAP server option handlers
-
class
dhcpkit.ipv6.server.extensions.map.config.MapEOptionHandlerFactory(section: ZConfig.matcher.SectionValue)[source]¶ Bases:
dhcpkit.ipv6.server.handlers.HandlerFactoryCreate a handler for putting an S46MapEContainerOption in responses
-
class
dhcpkit.ipv6.server.extensions.map.config.MapRule(section: ZConfig.matcher.SectionValue)[source]¶ Bases:
dhcpkit.common.server.config_elements.ConfigElementFactoryRepresentation of a single MAP rule
-
a_bits¶ a bits: offset of the PSID bits
Returns: Number of bits
-
create() → dhcpkit.ipv6.extensions.map.S46RuleOption[source]¶ Create a MAP rule option based on the configuration.
Returns: The mapping rule
-
ea_len¶ Calculate the number of Embedded Address bits.
Returns: Number of bits
-
k_bits¶ k bits: length in bits of the PSID (2^k == sharing_ratio)
Returns: Number of bits
-
m_bits¶ m bits: number of bits after the PSID (2^m == contiguous ports)
Returns: Number of bits
-
-
class
dhcpkit.ipv6.server.extensions.map.config.MapTOptionHandlerFactory(section: ZConfig.matcher.SectionValue)[source]¶ Bases:
dhcpkit.ipv6.server.handlers.HandlerFactoryCreate a handler for putting an S46MapTContainerOption in responses