test: eth: Add a test for ARP requests
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 26 Sep 2018 21:49:00 +0000 (16:49 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 10 Oct 2018 17:29:00 +0000 (12:29 -0500)
commit45988dae4cf05f783e40e027c83594a9dc6551cd
treedef10679c4392ebc7282d80efb200d6cbba534e4
parent9cbe5972c3c00e974482181cd4062d9229a9b7d5
test: eth: Add a test for ARP requests

This tests that ARP requests made to this target's IP address are
responded-to by the target when it is doing other networking operations.

This currently corrupts the ongoing operation of the device if it
happens to be awaiting an ARP reply of its own to whatever serverip it
is attempting to communicate with. In the test, add an expectation that
the user operation (ping, in this case) will fail. A later patch will
address this problem.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/include/asm/eth.h
drivers/net/sandbox.c
test/dm/eth.c