nusb/ether: fix ethertype filtering

This commit is contained in:
cinap_lenrek 2018-08-07 23:46:58 +02:00
parent 445fc8e5a7
commit 45ce4de650

View file

@ -439,7 +439,7 @@ fswrite(Req *r)
memcpy(x, p, n-8);
x[n-8] = 0;
conn[NUM(path)].type = atoi(p);
conn[NUM(path)].type = strtoul(x, nil, 0);
}
r->ofcall.count = n;
respond(r, nil);