summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2023-05-14 23:56:11 +0000
committerOri Bernstein <ori@eigenstate.org>2023-05-14 23:56:11 +0000
commitdfca0be219074f8473683256b1b9ca986ec37c43 (patch)
tree95840ebea0534036815ab527c1f5df00d271b2ca /sys/src
parent3e44af25c66c8e04f22476a23556e5f848627185 (diff)
dhcp: skip android junk options
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/ip/ipconfig/dhcp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/src/cmd/ip/ipconfig/dhcp.c b/sys/src/cmd/ip/ipconfig/dhcp.c
index 6d710a51e..dc26c401c 100644
--- a/sys/src/cmd/ip/ipconfig/dhcp.c
+++ b/sys/src/cmd/ip/ipconfig/dhcp.c
@@ -950,6 +950,11 @@ parseoptions(uchar *p, int n)
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)