mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
nd6: adapt to constness of IP6_ADDR_ANY6 for IPv6-only configuration
This commit is contained in:
parent
3b21f469ca
commit
8622af77c1
@ -836,7 +836,7 @@ nd6_send_ns(struct netif * netif, const ip6_addr_t * target_addr, u8_t flags)
|
|||||||
struct ns_header * ns_hdr;
|
struct ns_header * ns_hdr;
|
||||||
struct lladdr_option * lladdr_opt;
|
struct lladdr_option * lladdr_opt;
|
||||||
struct pbuf * p;
|
struct pbuf * p;
|
||||||
ip6_addr_t * src_addr;
|
const ip6_addr_t * src_addr;
|
||||||
u16_t lladdr_opt_len;
|
u16_t lladdr_opt_len;
|
||||||
|
|
||||||
if (ip6_addr_isvalid(netif_ip6_addr_state(netif,0))) {
|
if (ip6_addr_isvalid(netif_ip6_addr_state(netif,0))) {
|
||||||
@ -978,7 +978,7 @@ nd6_send_rs(struct netif * netif)
|
|||||||
struct rs_header * rs_hdr;
|
struct rs_header * rs_hdr;
|
||||||
struct lladdr_option * lladdr_opt;
|
struct lladdr_option * lladdr_opt;
|
||||||
struct pbuf * p;
|
struct pbuf * p;
|
||||||
ip6_addr_t * src_addr;
|
const ip6_addr_t * src_addr;
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t lladdr_opt_len = 0;
|
u16_t lladdr_opt_len = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user