]> git.puffer.fish Git - mirror/frr.git/commit
bfdd: Some interfaces don't have mac addresses 11759/head
authorDonald Sharp <sharpd@nvidia.com>
Sat, 6 Aug 2022 01:40:11 +0000 (21:40 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 6 Aug 2022 12:41:47 +0000 (08:41 -0400)
commit97739c280f1ca8c5d87b9b47cc1af7b0d4e2f439
treeff9dcaccec8289b52fc5e1fb30122eb3d0818eec
parent9bbf785892b61c654313713a7027f711289fd4d4
bfdd: Some interfaces don't have mac addresses

When an interface does not have a mac address, don't
try to retrieve the mac address ( for it to just fail ).

Example interface:
sharpd@eva [2]> ip link show tun100
21: tun100@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ipip 192.168.119.224 peer 192.168.119.120

Let's just notice that there is a NOARP flag and abort the call.

Fixes: #11733
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bfdd/bfd_packet.c