]> git.proxmox.com Git - mirror_frr.git/commit
pim6d: Do not use interfaces with ifindex as 0
authorSai Gomathi N <nsaigomathi@vmware.com>
Fri, 17 Mar 2023 08:55:16 +0000 (01:55 -0700)
committerSai Gomathi N <nsaigomathi@vmware.com>
Mon, 20 Mar 2023 05:58:55 +0000 (22:58 -0700)
commit522ec0a9244df8f3326948fd8338451a341a147c
tree88a0d043d2f76654604e484460aa28c5f10840cc
parentc8cba1b88c952517ebe7f2ab2262a6ffb5499c0a
pim6d: Do not use interfaces with ifindex as 0

After restarting pim6d, in some cases the ifindex is 0 for the interfaces,
so the vif index is also assigned as 0.
This causes the interface name to be pim6reg.

Fix:
If the ifindex is 0 and the interface name is not "pimreg" or "pim6reg",
the function will return without assigning vifindex with an error message.

Issue: #12744

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
pimd/pim_iface.c