ref: dfca0be219074f8473683256b1b9ca986ec37c43
parent: 3e44af25c66c8e04f22476a23556e5f848627185
author: Ori Bernstein <[email protected]>
date: Sun May 14 19:56:11 EDT 2023
dhcp: skip android junk options
--- a/sys/src/cmd/ip/ipconfig/dhcp.c
+++ b/sys/src/cmd/ip/ipconfig/dhcp.c
@@ -950,6 +950,11 @@
int code, len, nin = n;
while (n > 0) {
+ /* Android shouldn't be sending us this garbage; filter it out */
+ if(strncmp((char*)p, "ANDROID_METERED", n) == 0){
+ p += strlen("ANDROID_METERED");
+ continue;
+ }
code = *p++;
n--;
if(code == OBend)