disable ping example
This commit is contained in:
parent
fec9f9cfe1
commit
32a36c5e6e
4 changed files with 5 additions and 3 deletions
|
@ -116,7 +116,7 @@ int STDCALL network_task(void* arg)
|
||||||
|
|
||||||
// start echo and ping server
|
// start echo and ping server
|
||||||
echo_init();
|
echo_init();
|
||||||
ping_init();
|
//ping_init();
|
||||||
|
|
||||||
while(!done) {
|
while(!done) {
|
||||||
#ifdef CONFIG_PCI
|
#ifdef CONFIG_PCI
|
||||||
|
|
|
@ -201,6 +201,7 @@ ping_thread(void *arg)
|
||||||
LWIP_UNUSED_ARG(arg);
|
LWIP_UNUSED_ARG(arg);
|
||||||
|
|
||||||
if ((s = lwip_socket(AF_INET, SOCK_RAW, IP_PROTO_ICMP)) < 0) {
|
if ((s = lwip_socket(AF_INET, SOCK_RAW, IP_PROTO_ICMP)) < 0) {
|
||||||
|
LWIP_DEBUGF( PING_DEBUG, ("ping: invalid socket\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ int test_init(void)
|
||||||
mailbox_int32_init(&mbox);
|
mailbox_int32_init(&mbox);
|
||||||
|
|
||||||
#ifdef CONFIG_LWIP
|
#ifdef CONFIG_LWIP
|
||||||
ping_send_now();
|
//ping_send_now();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
create_kernel_task(NULL, foo, "Hello from foo1\n");
|
create_kernel_task(NULL, foo, "Hello from foo1\n");
|
||||||
|
|
|
@ -89,12 +89,13 @@
|
||||||
#define DHCP_DEBUG LWIP_DBG_OFF
|
#define DHCP_DEBUG LWIP_DBG_OFF
|
||||||
#define ETHARP_DEBUG LWIP_DBG_OFF
|
#define ETHARP_DEBUG LWIP_DBG_OFF
|
||||||
#define TCPIP_DEBUG LWIP_DBG_OFF
|
#define TCPIP_DEBUG LWIP_DBG_OFF
|
||||||
#define SYS_DEBUG LWIP_DBG_ON
|
#define SYS_DEBUG LWIP_DBG_OFF
|
||||||
#define RAW_DEBUG LWIP_DBG_OFF
|
#define RAW_DEBUG LWIP_DBG_OFF
|
||||||
#define MEM_DEBUG LWIP_DBG_OFF
|
#define MEM_DEBUG LWIP_DBG_OFF
|
||||||
#define IP_DEBUG LWIP_DBG_OFF
|
#define IP_DEBUG LWIP_DBG_OFF
|
||||||
#define INET_DEBUG LWIP_DBG_OFF
|
#define INET_DEBUG LWIP_DBG_OFF
|
||||||
#define NETIF_DEBUG LWIP_DBG_ON
|
#define NETIF_DEBUG LWIP_DBG_ON
|
||||||
#define TIMERS_DEBUG LWIP_DBG_OFF
|
#define TIMERS_DEBUG LWIP_DBG_OFF
|
||||||
|
#define SOCKETS_DEBUG LWIP_DBG_OFF
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue