[PATCH v2 0/2] Delete Net Routes for Deleted Interfaces

2024-08-31 Thread Andrew Hamilton
Correct incorrect handling of routes being maintained when an associated interface is deleted. Previously the route(s) for an interface being removed were not deleted. This resulted in displaying corrupted output to the console in the following sequence: net_add_addr if0 emu0 192.168.100.2 net_ls_r

[PATCH v2 2/2] net/net: Delete Routes for Deleted Interfaces

2024-08-31 Thread Andrew Hamilton
Signed-off-by: Andrew Hamilton --- grub-core/net/net.c | 17 + 1 file changed, 17 insertions(+) diff --git a/grub-core/net/net.c b/grub-core/net/net.c index 8cad4fb6d..51e0dd312 100644 --- a/grub-core/net/net.c +++ b/grub-core/net/net.c @@ -718,6 +718,23 @@ grub_cmd_deladdr (stru

[PATCH v2 1/2] tests: Add net_test for network commands

2024-08-31 Thread Andrew Hamilton
diff --git a/Makefile.util.def b/Makefile.util.def index 0f74a1680..9ed211bc5 100644 --- a/Makefile.util.def +++ b/Makefile.util.def @@ -1131,6 +1131,12 @@ script = { common = tests/cdboot_test.in; }; +script = { + testcase = nonnative; + name = net_test; + common = tests/net_test.in; +};