From 54a2c13b2ed47f1baafeb643838d357c61379b01 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sat, 6 Feb 2016 00:21:06 +0100 Subject: [PATCH] SNMP: Fix compile in dual-stack configuration --- src/apps/snmp/snmp_netconn.c | 2 +- src/apps/snmp/snmp_pbuf_stream.c | 2 +- src/apps/snmp/snmp_raw.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/snmp/snmp_netconn.c b/src/apps/snmp/snmp_netconn.c index 20e4f7d2..6b46bf80 100644 --- a/src/apps/snmp/snmp_netconn.c +++ b/src/apps/snmp/snmp_netconn.c @@ -94,7 +94,7 @@ snmp_get_local_ip_for_dst(void* handle, const ip_addr_t *dst, ip_addr_t *result) LWIP_UNUSED_ARG(conn); /* unused in case of IPV4 only configuration */ - ip_route_get_local_ip(IP_IS_V6(conn->pcb.udp->local_ip), conn->pcb.udp->local_ip, dst, dst_if, dst_ip); + ip_route_get_local_ip(IP_IS_V6(&conn->pcb.udp->local_ip), &conn->pcb.udp->local_ip, dst, dst_if, dst_ip); if((dst_if != NULL) && (dst_ip != NULL)) { ip_addr_copy(*result, *dst_ip); diff --git a/src/apps/snmp/snmp_pbuf_stream.c b/src/apps/snmp/snmp_pbuf_stream.c index 9ebab729..6bb10fee 100644 --- a/src/apps/snmp/snmp_pbuf_stream.c +++ b/src/apps/snmp/snmp_pbuf_stream.c @@ -114,7 +114,7 @@ snmp_pbuf_stream_writeto(struct snmp_pbuf_stream* pbuf_stream, struct snmp_pbuf_ } chunk_len = LWIP_MIN(len, pbuf->len); - err = snmp_pbuf_stream_writebuf(target_pbuf_stream, &((uint8_t*)pbuf->payload)[target_offset], chunk_len); + err = snmp_pbuf_stream_writebuf(target_pbuf_stream, &((u8_t*)pbuf->payload)[target_offset], chunk_len); if (err != ERR_OK) { return err; } diff --git a/src/apps/snmp/snmp_raw.c b/src/apps/snmp/snmp_raw.c index 61bba5e5..c5735e16 100644 --- a/src/apps/snmp/snmp_raw.c +++ b/src/apps/snmp/snmp_raw.c @@ -67,7 +67,7 @@ snmp_get_local_ip_for_dst(void* handle, const ip_addr_t *dst, ip_addr_t *result) LWIP_UNUSED_ARG(udp_pcb); /* unused in case of IPV4 only configuration */ - ip_route_get_local_ip(IP_IS_V6(udp_pcb->local_ip), udp_pcb->local_ip, dst, dst_if, dst_ip); + ip_route_get_local_ip(IP_IS_V6(&udp_pcb->local_ip), &udp_pcb->local_ip, dst, dst_if, dst_ip); if((dst_if != NULL) && (dst_ip != NULL)) { ip_addr_copy(*result, *dst_ip);