dhcpkit.ipv6.server.handlers.unicast module

A simple handler that tells the client to use multicast to reach this server.

class dhcpkit.ipv6.server.handlers.unicast.RejectUnwantedUnicastHandler[source]

Bases: dhcpkit.ipv6.server.handlers.Handler

A simple handler that tells the client to use multicast to reach this server.

pre(bundle: dhcpkit.ipv6.server.transaction_bundle.TransactionBundle)[source]

Reject unicast messages

Parameters:bundle – The transaction bundle
class dhcpkit.ipv6.server.handlers.unicast.ServerUnicastOptionHandler(address: ipaddress.IPv6Address)[source]

Bases: dhcpkit.ipv6.server.handlers.basic.SimpleOptionHandler

A simple handler that tells the client that it may use unicast to contact this server.

pre(bundle: dhcpkit.ipv6.server.transaction_bundle.TransactionBundle)[source]

Set flag to let the server know that unicast is ok, otherwise RejectUnwantedUnicastHandler will reject it later.

Parameters:bundle – The transaction bundle
class dhcpkit.ipv6.server.handlers.unicast.ServerUnicastOptionHandlerFactory(section: ZConfig.matcher.SectionValue)[source]

Bases: dhcpkit.ipv6.server.handlers.HandlerFactory

Create a ServerUnicastOptionHandler

create() → dhcpkit.ipv6.server.handlers.unicast.ServerUnicastOptionHandler[source]

Create a RequireMulticastHandler