summaryrefslogtreecommitdiffstats
path: root/app/ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/ntp.c')
-rw-r--r--app/ntp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/ntp.c b/app/ntp.c
index 2b9e6f3..c2263c9 100644
--- a/app/ntp.c
+++ b/app/ntp.c
@@ -83,14 +83,16 @@ static uint64_t ntp_ts_ptp (uint64_t v)
return ret;
}
-static void ntp_rx (void *arg, struct udp_pcb *s, struct pbuf *p, struct ip_addr *src_addr, u16_t port)
+
+
+static void ntp_rx (void *arg, struct udp_pcb *s, struct pbuf *p, const ip_addr_t *src_addr, u16_t port)
{
uint64_t ref = ref_get_irq();
- struct ip_addr dst_addr = *src_addr;
+ ip_addr_t dst_addr = *src_addr;
ntp_packet_t pkt;
do {
- if (p->type != PBUF_POOL) break;
+ // if (p->type_internal != PBUF_POOL) break;
if (p->len < sizeof (ntp_packet_t)) break;