mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-15 12:47:08 +08:00
fixed bug #39225 udp.c uses netif_matches_ip6_addr() incorrectly; renamed function netif_matches_ip6_addr() to netif_get_ip6_addr_match()
This commit is contained in:
@@ -872,7 +872,7 @@ netif_poll_all(void)
|
||||
|
||||
#if LWIP_IPV6
|
||||
s8_t
|
||||
netif_matches_ip6_addr(struct netif * netif, ip6_addr_t * ip6addr)
|
||||
netif_get_ip6_addr_match(struct netif * netif, ip6_addr_t * ip6addr)
|
||||
{
|
||||
s8_t i;
|
||||
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
|
||||
|
||||
@@ -307,7 +307,7 @@ udp_input(struct pbuf *p, struct netif *inp)
|
||||
} else {
|
||||
#if LWIP_IPV6
|
||||
if (ip_current_is_v6()) {
|
||||
for_us = netif_matches_ip6_addr(inp, ip6_current_dest_addr());
|
||||
for_us = netif_get_ip6_addr_match(inp, ip6_current_dest_addr()) >= 0;
|
||||
} else
|
||||
#endif /* LWIP_IPV6 */
|
||||
{
|
||||
@@ -721,7 +721,7 @@ udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *dst_ip,
|
||||
}
|
||||
} else {
|
||||
/* use UDP PCB local IPv6 address as source address, if still valid. */
|
||||
if (netif_matches_ip6_addr(netif, ipX_2_ip6(&pcb->local_ip)) < 0) {
|
||||
if (netif_get_ip6_addr_match(netif, ipX_2_ip6(&pcb->local_ip)) < 0) {
|
||||
/* Address isn't valid anymore. */
|
||||
if (q != p) {
|
||||
/* free the header pbuf */
|
||||
|
||||
Reference in New Issue
Block a user