since it ain't leaving..

This commit is contained in:
Bill Sideris 2022-11-15 00:05:01 +02:00
parent fde1c05e6d
commit 6954e569b7
No known key found for this signature in database
GPG Key ID: 1BEF1BCEBA58EA33
2 changed files with 9 additions and 10 deletions

View File

@ -50,14 +50,7 @@
#include "lwip/dns.h" #include "lwip/dns.h"
#include "lwip/icmp.h" #include "lwip/icmp.h"
#include "lwip/raw.h" #include "lwip/raw.h"
#include "lwip_src/ping.h"
#ifndef PING_ID
#define PING_ID 0xAFAF
#endif
#ifndef PING_DEBUG
#define PING_DEBUG LWIP_DBG_ON
#endif
#define MAC_ADDRESS_LENGTH 6 #define MAC_ADDRESS_LENGTH 6
@ -299,8 +292,6 @@ void common_hal_wifi_radio_set_ipv4_address(wifi_radio_obj_t *self, mp_obj_t ipv
} }
volatile bool ping_received; volatile bool ping_received;
int ping_send(struct raw_pcb *raw, const ip_addr_t *addr);
uint16_t ping_seq_num;
uint32_t ping_time; uint32_t ping_time;
static u8_t static u8_t

View File

@ -12,6 +12,14 @@
#define PING_USE_SOCKETS LWIP_SOCKET #define PING_USE_SOCKETS LWIP_SOCKET
#endif #endif
#ifndef PING_ID
#define PING_ID 0xAFAF
#endif
#ifndef PING_DEBUG
#define PING_DEBUG LWIP_DBG_ON
#endif
void ping_init(const ip_addr_t *ping_addr); void ping_init(const ip_addr_t *ping_addr);
void ping_prepare_echo(struct icmp_echo_hdr *iecho, u16_t len); void ping_prepare_echo(struct icmp_echo_hdr *iecho, u16_t len);