mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 07:51:19 +01:00
gnrc_ipv6: iface might be from input on next hop determination
This commit is contained in:
parent
d1bd2ae0a3
commit
5d7501677f
@ -530,26 +530,26 @@ static inline kernel_pid_t _next_hop_l2addr(uint8_t *l2addr, uint8_t *l2addr_len
|
||||
kernel_pid_t iface, ipv6_addr_t *dst,
|
||||
gnrc_pktsnip_t *pkt)
|
||||
{
|
||||
kernel_pid_t found_iface;
|
||||
#if defined(MODULE_GNRC_SIXLOWPAN_ND)
|
||||
(void)pkt;
|
||||
iface = gnrc_sixlowpan_nd_next_hop_l2addr(l2addr, l2addr_len, iface, dst);
|
||||
if (iface <= KERNEL_PID_UNDEF) {
|
||||
return iface;
|
||||
found_iface = gnrc_sixlowpan_nd_next_hop_l2addr(l2addr, l2addr_len, iface, dst);
|
||||
if (found_iface > KERNEL_PID_UNDEF) {
|
||||
return found_iface;
|
||||
}
|
||||
#endif
|
||||
#if defined(MODULE_GNRC_NDP_NODE)
|
||||
if (iface <= KERNEL_PID_UNDEF) {
|
||||
iface = gnrc_ndp_node_next_hop_l2addr(l2addr, l2addr_len, iface, dst, pkt);
|
||||
}
|
||||
found_iface = gnrc_ndp_node_next_hop_l2addr(l2addr, l2addr_len, iface, dst, pkt);
|
||||
#elif !defined(MODULE_GNRC_SIXLOWPAN_ND)
|
||||
iface = KERNEL_PID_UNDEF;
|
||||
found_iface = KERNEL_PID_UNDEF;
|
||||
(void)l2addr;
|
||||
(void)l2addr_len;
|
||||
(void)iface;
|
||||
(void)dst;
|
||||
(void)pkt;
|
||||
*l2addr_len = 0;
|
||||
#endif
|
||||
return iface;
|
||||
return found_iface;
|
||||
}
|
||||
|
||||
static void _send(gnrc_pktsnip_t *pkt, bool prep_hdr)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user