sandbox: eth-raw: Add a function to ask the host about localhost
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 2 Jul 2018 19:47:51 +0000 (14:47 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 26 Jul 2018 19:08:18 +0000 (14:08 -0500)
commitac13270b49d55677aeea5a64dfbf1764118820e3
tree2a8fe6eb4e638bb018f4f4661623fa47b553ccd0
parent8c7988b6dbfb0aa05a935e602b8cdb67f7dd60b2
sandbox: eth-raw: Add a function to ask the host about localhost

Instead of doing a simple string compare against "lo", look for the flag
that indicates a localhost interface.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/eth-raw-os.c
arch/sandbox/include/asm/eth-raw-os.h
drivers/net/sandbox-raw.c