


Print "DHCPv6 Reply packet sent with Transaction ID", Trid,"to",macdst,"with IPv6 Address",provided_IPv6_addressĭhcpv6pkt = message_type/iana/ia_address/ClientID/6OptPref(prefval= dhcpv6_preference)/ServerID/DNSServers/DNSDomains Print "DHCPv6 Advertise packet sent with Transaction ID", Trid,"to",macdst,"with IPv6 Address",provided_IPv6_address Provided_IPv6_address=address_generators.generate_random_ipv6(myprefix)Īssigned_IPv6_addresses_cache=provided_IPv6_address Provided_IPv6_address=assigned_IPv6_addresses_cache.get(macdst) Ia_address = 6OptIAAddress()ĬlientID=6OptClientId(optlen=ClientID_len, duid=ClientID_duid) Iana.optlen=12 + 28 #12 for the DHCP6OptIA_NA and 28 for one DHCP6OptIAAddress Print(f" Media Access Control (MAC) Address Lookup Results For ", dark=True)ĭef DHCPv6_Response(mac_source, source_ip, macdst, ipv6dst, Trid, ClientID_len, ClientID_duid, IaId, type_of_message, assigned_IPv6_addresses_cache, myinterface, dhcpv6_preference, prefered_lft,valid_lft,DNS_Domain_name,DNS_Servers, list_of_unfragmented_ext_headers,list_of_fragmented_ext_headers,size_of_extheaders, number_of_fragments,list_of_next_headers,list_of_offsets,list_of_fragment_lengths,list_of_fragment_m_bits,myprefix,unfragmentable_part,size_of_unfragmentable_part,first_next_header_value,fragmentable_extension_headers,size_of_fragmentable_extension_headers,s):
