[修改] Netconsole 心跳包测试

This commit is contained in:
gaoyang3513
2023-10-07 06:28:28 +00:00
parent 02f18808eb
commit 6fdaa299c3
2 changed files with 9 additions and 1 deletions

View File

@ -48,9 +48,15 @@ static void nc_handler(uchar *pkt, unsigned dest, struct in_addr sip,
net_set_state(NETLOOP_SUCCESS); /* got input - quit net loop */
}
static void nc_stdio_puts(struct stdio_dev *dev, const char *s);
static void nc_timeout_handler(void)
{
struct stdio_dev *dev;
dev = stdio_get_by_name("nc");
net_set_state(NETLOOP_SUCCESS);
nc_stdio_puts(dev, CONFIG_SYS_PROMPT);
}
static int is_broadcast(struct in_addr ip)