Skip to content
Permalink
Browse files

net: ip: ipv6_nbr: take TLLAO length from src lladdres

Take the targer link layer address option link laxer addres lenght
from net packets source addres instead if the interface.
This is usefull for 6LoCAN border translator (6LoCAN to Ethernet).

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
  • Loading branch information...
alexanderwachter authored and jukkar committed Jun 15, 2019
1 parent 95863a7 commit 64d495df45270f267accfa213be1eef1ef1b6a1c
Showing with 1 addition and 1 deletion.
  1. +1 −1 subsys/net/ip/ipv6_nbr.c
@@ -1532,7 +1532,7 @@ static inline bool handle_na_neighbor(struct net_pkt *pkt,
}

if (tllao_offset) {
lladdr.len = net_if_get_link_addr(net_pkt_iface(pkt))->len;
lladdr.len = net_pkt_lladdr_src(pkt)->len;

net_pkt_cursor_init(pkt);

0 comments on commit 64d495d

Please sign in to comment.
You can’t perform that action at this time.