Lines Matching refs:ifname
27 int ifc_enable(const char *ifname);
28 int ifc_disable(const char *ifname);
29 int ifc_reset_connections(const char *ifname, int reset_mask);
31 int dhcp_do_request(const char *ifname,
41 int dhcp_do_request_renew(const char *ifname,
51 int dhcp_stop(const char *ifname);
52 int dhcp_release_lease(const char *ifname);
76 static jint android_net_utils_enableInterface(JNIEnv* env, jobject clazz, jstring ifname)
80 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
82 env->ReleaseStringUTFChars(ifname, nameStr);
86 static jint android_net_utils_disableInterface(JNIEnv* env, jobject clazz, jstring ifname)
90 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
92 env->ReleaseStringUTFChars(ifname, nameStr);
97 jstring ifname, jint mask)
101 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
107 env->ReleaseStringUTFChars(ifname, nameStr);
111 static jboolean android_net_utils_runDhcpCommon(JNIEnv* env, jobject clazz, jstring ifname,
124 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
135 env->ReleaseStringUTFChars(ifname, nameStr);
173 static jboolean android_net_utils_runDhcp(JNIEnv* env, jobject clazz, jstring ifname, jobject info)
175 return android_net_utils_runDhcpCommon(env, clazz, ifname, info, false);
178 static jboolean android_net_utils_runDhcpRenew(JNIEnv* env, jobject clazz, jstring ifname, jobject info)
180 return android_net_utils_runDhcpCommon(env, clazz, ifname, info, true);
184 static jboolean android_net_utils_stopDhcp(JNIEnv* env, jobject clazz, jstring ifname)
188 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
190 env->ReleaseStringUTFChars(ifname, nameStr);
194 static jboolean android_net_utils_releaseDhcpLease(JNIEnv* env, jobject clazz, jstring ifname)
198 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
200 env->ReleaseStringUTFChars(ifname, nameStr);