35 jclass ia6_class; |
35 jclass ia6_class; |
36 jfieldID ia6_holder6ID; |
36 jfieldID ia6_holder6ID; |
37 |
37 |
38 jfieldID ia6_ipaddressID; |
38 jfieldID ia6_ipaddressID; |
39 jfieldID ia6_scopeidID; |
39 jfieldID ia6_scopeidID; |
40 jfieldID ia6_cachedscopeidID; |
|
41 jfieldID ia6_scopeidsetID; |
40 jfieldID ia6_scopeidsetID; |
42 jfieldID ia6_scopeifnameID; |
41 jfieldID ia6_scopeifnameID; |
43 jmethodID ia6_ctrID; |
42 jmethodID ia6_ctrID; |
44 |
43 |
45 static int ia6_initialized = 0; |
44 static int ia6_initialized = 0; |
63 CHECK_NULL(ia6_holder6ID); |
62 CHECK_NULL(ia6_holder6ID); |
64 ia6_ipaddressID = (*env)->GetFieldID(env, ia6h_class, "ipaddress", "[B"); |
63 ia6_ipaddressID = (*env)->GetFieldID(env, ia6h_class, "ipaddress", "[B"); |
65 CHECK_NULL(ia6_ipaddressID); |
64 CHECK_NULL(ia6_ipaddressID); |
66 ia6_scopeidID = (*env)->GetFieldID(env, ia6h_class, "scope_id", "I"); |
65 ia6_scopeidID = (*env)->GetFieldID(env, ia6h_class, "scope_id", "I"); |
67 CHECK_NULL(ia6_scopeidID); |
66 CHECK_NULL(ia6_scopeidID); |
68 ia6_cachedscopeidID = (*env)->GetFieldID(env, ia6_class, "cached_scope_id", "I"); |
|
69 CHECK_NULL(ia6_cachedscopeidID); |
|
70 ia6_scopeidsetID = (*env)->GetFieldID(env, ia6h_class, "scope_id_set", "Z"); |
67 ia6_scopeidsetID = (*env)->GetFieldID(env, ia6h_class, "scope_id_set", "Z"); |
71 CHECK_NULL(ia6_scopeidsetID); |
68 CHECK_NULL(ia6_scopeidsetID); |
72 ia6_scopeifnameID = (*env)->GetFieldID(env, ia6h_class, "scope_ifname", "Ljava/net/NetworkInterface;"); |
69 ia6_scopeifnameID = (*env)->GetFieldID(env, ia6h_class, "scope_ifname", "Ljava/net/NetworkInterface;"); |
73 CHECK_NULL(ia6_scopeifnameID); |
70 CHECK_NULL(ia6_scopeifnameID); |
74 ia6_ctrID = (*env)->GetMethodID(env, ia6_class, "<init>", "()V"); |
71 ia6_ctrID = (*env)->GetMethodID(env, ia6_class, "<init>", "()V"); |