mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
Fixed const errors after changing netif_ip4_addr/netif_ip6_addr to return cont pointers
This commit is contained in:
@@ -81,7 +81,7 @@ icmp6_input(struct pbuf *p, struct netif *inp)
|
||||
{
|
||||
struct icmp6_hdr *icmp6hdr;
|
||||
struct pbuf * r;
|
||||
ip6_addr_t * reply_src;
|
||||
const ip6_addr_t * reply_src;
|
||||
|
||||
ICMP6_STATS_INC(icmp6.recv);
|
||||
|
||||
@@ -272,7 +272,8 @@ icmp6_send_response(struct pbuf *p, u8_t code, u32_t data, u8_t type)
|
||||
{
|
||||
struct pbuf *q;
|
||||
struct icmp6_hdr *icmp6hdr;
|
||||
ip6_addr_t *reply_src, *reply_dest;
|
||||
const ip6_addr_t *reply_src;
|
||||
ip6_addr_t *reply_dest;
|
||||
ip6_addr_t reply_src_local, reply_dest_local;
|
||||
struct ip6_hdr *ip6hdr;
|
||||
struct netif *netif;
|
||||
|
||||
@@ -206,10 +206,10 @@ ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest)
|
||||
* @return the most suitable source address to use, or NULL if no suitable
|
||||
* source address is found
|
||||
*/
|
||||
ip6_addr_t *
|
||||
const ip6_addr_t *
|
||||
ip6_select_source_address(struct netif *netif, const ip6_addr_t * dest)
|
||||
{
|
||||
ip6_addr_t * src = NULL;
|
||||
const ip6_addr_t *src = NULL;
|
||||
u8_t i;
|
||||
|
||||
/* If dest is link-local, choose a link-local source. */
|
||||
|
||||
Reference in New Issue
Block a user