]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitc6eb32a0f6a89d8db981de089e94af250d524cae
tree2a8fe6eb4e638bb018f4f4661623fa47b553ccd0
parent592edd3cf723430d3d1b9bf81e99e9c54688e5a7
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