mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-14 18:36:27 +00:00
Use target address as source address in IPv6 neighbour advertisement
messages. Change-Id: I06d28eb2903c539de0b51bd7420a81ebf4f28963
This commit is contained in:
parent
4507083148
commit
b3f5c8f6b2
@ -851,7 +851,9 @@ nd6_send_na(struct netif * netif, ip6_addr_t * target_addr, u8_t flags)
|
|||||||
ip6_addr_t * dest_addr;
|
ip6_addr_t * dest_addr;
|
||||||
|
|
||||||
/* Use link-local address as source address. */
|
/* Use link-local address as source address. */
|
||||||
src_addr = &(netif->ip6_addr[0]);
|
/* src_addr = &(netif->ip6_addr[0]); */
|
||||||
|
/* Use target address as source address. */
|
||||||
|
src_addr = target_addr;
|
||||||
|
|
||||||
/* Allocate a packet. */
|
/* Allocate a packet. */
|
||||||
p = pbuf_alloc(PBUF_IP, sizeof(struct na_header) + sizeof(struct lladdr_option), PBUF_RAM);
|
p = pbuf_alloc(PBUF_IP, sizeof(struct na_header) + sizeof(struct lladdr_option), PBUF_RAM);
|
||||||
|
Loading…
Reference in New Issue
Block a user