Lines Matching refs:address

69         LinkAddress address;
72 address = new LinkAddress(V4_ADDRESS, 25);
73 assertEquals(V4_ADDRESS, address.getAddress());
74 assertEquals(25, address.getPrefixLength());
75 assertEquals(0, address.getFlags());
76 assertEquals(RT_SCOPE_UNIVERSE, address.getScope());
78 address = new LinkAddress(V6_ADDRESS, 127);
79 assertEquals(V6_ADDRESS, address.getAddress());
80 assertEquals(127, address.getPrefixLength());
81 assertEquals(0, address.getFlags());
82 assertEquals(RT_SCOPE_UNIVERSE, address.getScope());
85 address = new LinkAddress(V6 + "/64", IFA_F_DEPRECATED | IFA_F_PERMANENT, RT_SCOPE_LINK);
86 assertEquals(V6_ADDRESS, address.getAddress());
87 assertEquals(64, address.getPrefixLength());
88 assertEquals(IFA_F_DEPRECATED | IFA_F_PERMANENT, address.getFlags());
89 assertEquals(RT_SCOPE_LINK, address.getScope());
91 address = new LinkAddress(V4 + "/23", 123, 456);
92 assertEquals(V4_ADDRESS, address.getAddress());
93 assertEquals(23, address.getPrefixLength());
94 assertEquals(123, address.getFlags());
95 assertEquals(456, address.getScope());
119 address = new LinkAddress(null, 24);
124 address = new LinkAddress((String) null, IFA_F_PERMANENT, RT_SCOPE_UNIVERSE);
129 address = new LinkAddress((InterfaceAddress) null);
135 address = new LinkAddress(V4_ADDRESS, -1);
140 address = new LinkAddress(V6_ADDRESS, -1);
145 address = new LinkAddress(V4_ADDRESS, 33);
150 address = new LinkAddress(V4 + "/33", IFA_F_PERMANENT, RT_SCOPE_UNIVERSE);
156 address = new LinkAddress(V6_ADDRESS, 129, IFA_F_PERMANENT, RT_SCOPE_UNIVERSE);
161 address = new LinkAddress(V6 + "/129", IFA_F_PERMANENT, RT_SCOPE_UNIVERSE);
167 address = new LinkAddress("224.0.0.2/32");
168 fail("IPv4 multicast address should cause IllegalArgumentException");
172 address = new LinkAddress("ff02::1/128");
173 fail("IPv6 multicast address should cause IllegalArgumentException");
195 assertTrue(l1 + " unexpectedly does not have same address as " + l2,
197 assertTrue(l2 + " unexpectedly does not have same address as " + l1,
202 assertFalse(l1 + " unexpectedly has same address as " + l2,
204 assertFalse(l2 + " unexpectedly has same address as " + l1,
287 // Because we use InetAddress, an IPv4 address is equal to its IPv4-mapped address.