IPV6 update
This commit is contained in:
@@ -387,7 +387,6 @@ ip6_forward(struct pbuf *p, struct ip6_hdr *iphdr, struct netif *inp)
|
||||
err_t
|
||||
ip6_input(struct pbuf *p, struct netif *inp)
|
||||
{
|
||||
LWIP_DEBUGF(1, ("ip6_input\n"));
|
||||
struct ip6_hdr *ip6hdr;
|
||||
struct netif *netif;
|
||||
u8_t nexth;
|
||||
@@ -499,20 +498,13 @@ ip6_input(struct pbuf *p, struct netif *inp)
|
||||
do {
|
||||
/* interface is up? */
|
||||
if (netif_is_up(netif)) {
|
||||
LWIP_DEBUGF(1, ("netif_is_up\n"));
|
||||
|
||||
/* unicast to this interface address? address configured? */
|
||||
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
|
||||
LWIP_DEBUGF(1, ("inspecting address i=%d, %c%c", i, inp->name[0], inp->name[1]))
|
||||
ip_addr_debug_print(1, netif_ip6_addr(inp, i));
|
||||
|
||||
if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i))) {
|
||||
LWIP_DEBUGF(1, ("address is valid\n"));
|
||||
|
||||
if(ip6_addr_cmp(ip6_current_dest_addr(), netif_ip6_addr(netif, i))) {
|
||||
LWIP_DEBUGF(1, ("addresses match\n"));
|
||||
/* exit outer loop */
|
||||
LWIP_DEBUGF(1, ("netif_found\n"));
|
||||
goto netif_found;
|
||||
}
|
||||
}
|
||||
@@ -724,7 +716,6 @@ options_done:
|
||||
pbuf_header_force(p, ip_data.current_ip_header_tot_len);
|
||||
|
||||
/* send to upper layers */
|
||||
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: \n"));
|
||||
ip6_debug_print(p);
|
||||
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
|
||||
|
||||
@@ -899,7 +890,6 @@ ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
|
||||
if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i)) &&
|
||||
ip6_addr_cmp(dest, netif_ip6_addr(netif, i))) {
|
||||
/* Packet to self, enqueue it for loopback */
|
||||
LWIP_DEBUGF(IP6_DEBUG, ("netif_loop_output()\n"));
|
||||
return netif_loop_output(netif, p);
|
||||
}
|
||||
}
|
||||
@@ -912,7 +902,6 @@ ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest,
|
||||
}
|
||||
#endif /* LWIP_IPV6_FRAG */
|
||||
|
||||
LWIP_DEBUGF(IP6_DEBUG, ("netif->output_ip6()\n"));
|
||||
return netif->output_ip6(netif, p, dest);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user