Message ID | CAHA+R7OKfg5C2dEz2JuxWncoo8gBX=r2MuHUdsGvALNXRSQoiQ@mail.gmail.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 8b849dd..f8cb428 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -1674,7 +1674,7 @@ static ssize_t pktgen_if_write(struct file *file, return len; i += len; - if (len == 2) { + if (len <= 2) { pkt_dev->tos = tmp_value; sprintf(pg_result, "OK: tos=0x%02x", pkt_dev->tos); } else {