diff options
Diffstat (limited to 'app/ntp.c')
-rw-r--r-- | app/ntp.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |