libril: use ip address as gateway in ppp network.

Fix data until these commits are completed:
http://review.cyanogenmod.org/82277
http://review.cyanogenmod.org/82329

Credits to Howard Su
http://review.cyanogenmod.org/80947

Change-Id: Iab88fd8d4ed1089cfdb724aa460597f6e39003bc
tirimbino
Howard Su 10 years ago committed by Gianmarco Reverberi
parent 36b50656ab
commit cbf8e0a2ed
  1. 4
      ril/xmm6260/libril/ril.cpp
  2. 4
      ril/xmm6262/libril/ril.cpp

@ -1961,7 +1961,7 @@ static int responseDataCallList(Parcel &p, void *response, size_t responselen)
writeStringToParcel(p, p_cur[i].ifname);
writeStringToParcel(p, p_cur[i].addresses);
writeStringToParcel(p, p_cur[i].dnses);
writeStringToParcel(p, p_cur[i].gateways);
writeStringToParcel(p, p_cur[i].addresses);
appendPrintBuf("%s[status=%d,retry=%d,cid=%d,%s,%s,%s,%s,%s,%s],", printBuf,
p_cur[i].status,
p_cur[i].suggestedRetryTime,
@ -1971,7 +1971,7 @@ static int responseDataCallList(Parcel &p, void *response, size_t responselen)
(char*)p_cur[i].ifname,
(char*)p_cur[i].addresses,
(char*)p_cur[i].dnses,
(char*)p_cur[i].gateways);
(char*)p_cur[i].addresses);
}
removeLastChar;
closeResponse;

@ -1955,7 +1955,7 @@ static int responseDataCallList(Parcel &p, void *response, size_t responselen)
writeStringToParcel(p, p_cur[i].ifname);
writeStringToParcel(p, p_cur[i].addresses);
writeStringToParcel(p, p_cur[i].dnses);
writeStringToParcel(p, p_cur[i].gateways);
writeStringToParcel(p, p_cur[i].addresses);
appendPrintBuf("%s[status=%d,retry=%d,cid=%d,%s,%s,%s,%s,%s,%s],", printBuf,
p_cur[i].status,
p_cur[i].suggestedRetryTime,
@ -1965,7 +1965,7 @@ static int responseDataCallList(Parcel &p, void *response, size_t responselen)
(char*)p_cur[i].ifname,
(char*)p_cur[i].addresses,
(char*)p_cur[i].dnses,
(char*)p_cur[i].gateways);
(char*)p_cur[i].addresses);
}
removeLastChar;
closeResponse;

Loading…
Cancel
Save