[修改] Netconsole 心跳包测试
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user