Re: [ethtool PATCH v3 04/12] ethtool.c: do_seeprom checks for params & stdin sanity

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: David Decotigny > > Tested: >   On qemu e1000: >   $ dd if=/dev/zero bs=2 count=5 | /mnt/ethtool -E eth0 length 9 >   too much data from stdin >   $ dd if=/dev/zero bs=2 count=5 | /mnt/ethtool -E eth0 length 11 >   not enough data

[ethtool PATCH v3 04/12] ethtool.c: do_seeprom checks for params & stdin sanity

2016-03-04 Thread David Decotigny
From: David Decotigny Tested: On qemu e1000: $ dd if=/dev/zero bs=2 count=5 | /mnt/ethtool -E eth0 length 9 too much data from stdin $ dd if=/dev/zero bs=2 count=5 | /mnt/ethtool -E eth0 length 11 not enough data from stdin $ dd if=/dev/zero bs=2 count=5 | /mnt/ethtool -E eth0 length