示例#1
0
 def setUp(self):
     self.option_bytes = bytes.fromhex(
         '000c001020010db8000000000000000000000001')
     self.option_object = ServerUnicastOption(IPv6Address('2001:db8::1'))
     self.parse_option()
示例#2
0
    def __init__(self, address: IPv6Address):
        # This option remains constant, so create a singleton that can be re-used
        option = ServerUnicastOption(server_address=address)
        option.validate()

        super().__init__(option, always_send=True)