summaryrefslogtreecommitdiff
path: root/cmd/lwip/dns.c
AgeCommit message (Collapse)Author
2025-07-08lwip: dns: do not print IP address when a variable is specifiedJerome Forissier
When calling "dns <hostname> <varname>", do not print out the IP address of <hostname> onto the console. Print it only when no variable is passed. The reason is to be able to call do_dns() from another command in need of the DNS services without polluting the output. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
2025-07-08lwip: dns: do not return CMD_RET_FAILURE on successful resolutionJerome Forissier
The DNS loop checks for a non-zero IP address after DNS resolution, but the address is in fact never copied into the context. Fix that. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
2025-07-08lwip: split cmd/net-lwip.c into one file per commandJerome Forissier
Move each command in cmd/net-lwip.c into its own file (cmd/lwip/${cmd}.c). Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
2025-07-08lwip: move net/lwip/dns.c to cmd/lwipJerome Forissier
Prepare to split the dns command from cmd/net-lwip.c by moving the implementation from net/lwip/dns.c to cmd/lwip. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>