Lines Matching defs:scope_id

143  * zone, it is possible to append a zone identifier (or <i>scope_id</i>) to an IPv6 address.
145 * The general format for specifying the <i>scope_id</i> is the following:
146 * <p><blockquote><i>IPv6-address</i>%<i>scope_id</i></blockquote>
148 * The <i>scope_id</i> refers to an interface on the local system, and it can be specified
160 * Note also, that the numeric <i>scope_id</i> can be retrieved from Inet6Address instances returned from the
170 * cached scope_id - for link-local address use only.
182 * scope_id. The scope specified when the object is created. If the object is created
183 * with an interface name, then the scope_id is not determined until the time it is needed.
185 private int scope_id = 0;
188 * This will be set to true when the scope_id field contains a valid
189 * integer scope_id.
194 * scoped interface. scope_id is derived from this as the scope_id of the first
221 /* checking of value for scope_id should be done by caller
222 * scope_id must be >= 0, or -1 to indicate not being set
224 Inet6Address(String hostName, byte addr[], int scope_id) {
230 if (scope_id >= 0) {
231 this.scope_id = scope_id;
252 * except that the IPv6 scope_id is set to the value corresponding to the given interface
255 * scope_id assigned for the given address type (eg. link-local or site-local).
264 * does not have a numeric scope_id assigned for the given address type.
286 * except that the IPv6 scope_id is set to the given numeric value.
287 * The scope_id is not checked to determine if it corresponds to any interface on the system.
293 * @param scope_id the numeric scope_id for the address.
300 public static Inet6Address getByAddress(String host, byte[] addr, int scope_id)
309 return new Inet6Address(host, addr, scope_id);
336 scope_id = deriveNumericScope (nif);
370 /* found a matching address - return its scope_id */
371 return ia6_addr.scope_id;
373 throw new UnknownHostException ("no scope_id found");
398 /* found a matching address - return its scope_id */
399 return ia6_addr.scope_id;
430 scope_id = 0;
433 scope_id = deriveNumericScope (scope_ifname);
620 return scope_id;
648 s = s + "%" + scope_id;