Lines Matching defs:scope_id
151 * zone, it is possible to append a zone identifier (or <i>scope_id</i>) to an
154 * <p> The general format for specifying the <i>scope_id</i> is the following:
156 * <blockquote><i>IPv6-address</i>%<i>scope_id</i></blockquote>
158 * The <i>scope_id</i> refers to an interface on the local system, and it can be
171 * <p> Note also, that the numeric <i>scope_id</i> can be retrieved from
196 byte[] ipaddress, int scope_id, boolean scope_id_set,
200 this.scope_id = scope_id;
212 * scope_id. The scope specified when the object is created. If the object
213 * is created with an interface name, then the scope_id is not determined
216 int scope_id; // 0
219 * This will be set to true when the scope_id field contains a valid
220 * integer scope_id.
225 * scoped interface. scope_id is derived from this as the scope_id of the first
242 void init(byte addr[], int scope_id) {
246 if (scope_id > 0) {
247 this.scope_id = scope_id;
258 this.scope_id = deriveNumericScope(ipaddress, nif);
272 s = s + "%" + scope_id;
388 /* checking of value for scope_id should be done by caller
389 * scope_id must be >= 0, or -1 to indicate not being set
391 Inet6Address(String hostName, byte addr[], int scope_id) {
394 holder6.init(addr, scope_id);
416 * InetAddress#getByAddress(String,byte[])} except that the IPv6 scope_id is
420 * scope_id assigned for the given address type (eg. link-local or site-local).
430 * have a numeric scope_id assigned for the given address type.
453 * InetAddress#getByAddress(String,byte[])} except that the IPv6 scope_id is
454 * set to the given numeric value. The scope_id is not checked to determine
461 * @param scope_id the numeric scope_id for the address.
468 int scope_id)
478 return new Inet6Address(host, addr, scope_id);
542 /* found a matching address - return its scope_id */
545 throw new UnknownHostException ("no scope_id found");
566 * @serialField scope_id int
574 new ObjectStreamField("scope_id", int.class),
610 int scope_id = (int)gf.get("scope_id", -1);
623 scope_id = 0;
627 scope_id = deriveNumericScope (ipaddress, scope_ifname);
652 ipaddress, scope_id, scope_id_set, scope_ifname, scope_ifname_set
674 pfields.put("scope_id", holder6.scope_id);
850 return holder6.scope_id;