public void TestCreateAccessRequestPacketIPv6() { var expected = IPAddress.IPv6Loopback; var secret = "xyzzy5461"; var packet = new RadiusPacket(PacketCode.AccessRequest, 0, secret); packet.Authenticator = Utils.StringToByteArray("0f403f9473978057bd83d5cb98f4227a"); packet.AddAttribute("User-Name", "nemo"); packet.AddAttribute("User-Password", "arctangent"); packet.AddAttribute("NAS-IP-Address", IPAddress.Parse("192.168.1.16")); packet.AddAttribute("Framed-IPv6-Address", expected); packet.AddAttribute("NAS-Port", 3); var actual = packet.GetAttribute <IPAddress>("Framed-IPv6-Address"); Assert.AreEqual(expected, actual); }