Skip to content

Commit debc8d6

Browse files
author
Alexander Wachter
committed
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 <[email protected]>
1 parent 6bac119 commit debc8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/ip/ipv6_nbr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ static inline bool handle_na_neighbor(struct net_pkt *pkt,
15321532
}
15331533

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

15371537
net_pkt_cursor_init(pkt);
15381538

0 commit comments

Comments
 (0)