From 89d1fbed1339a98f3ae01c35b7274a0f33c6bbde Mon Sep 17 00:00:00 2001 From: kejun.gao Date: Thu, 30 Oct 2014 14:54:22 +0000 Subject: PD#98924. Clear ethernet ip address before PPPoE Change-Id: I663de4e458ec8b91429e09c1a42c6776c56aaa5f --- diff --git a/jni/src/pppoe_wrapper.c b/jni/src/pppoe_wrapper.c index 3b93a5a..800f9e4 100755 --- a/jni/src/pppoe_wrapper.c +++ b/jni/src/pppoe_wrapper.c @@ -24,6 +24,8 @@ #include #include +#include + #include #include "pppoe_status.h" @@ -119,6 +121,14 @@ static int pppoe_terminate_handler(char *request) static int pppoe_connect_handler(char *request) { + if (strstr(request, "eth0")) { + __android_log_print(ANDROID_LOG_INFO, LOCAL_TAG, + "FIXME!!! SHOULD NOT clear eth0 ip address. Reference to bug#98924.\n"); + ifc_init(); + ifc_set_addr("eth0",0); + ifc_close(); + } + return system(request); } -- cgit