diff options
| author | Sai Gomathi N <nsaigomathi@vmware.com> | 2023-03-17 01:55:16 -0700 |
|---|---|---|
| committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2023-03-19 22:58:55 -0700 |
| commit | 522ec0a9244df8f3326948fd8338451a341a147c (patch) | |
| tree | 88a0d043d2f76654604e484460aa28c5f10840cc /lib/debug.c | |
| parent | c8cba1b88c952517ebe7f2ab2262a6ffb5499c0a (diff) | |
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>
Diffstat (limited to 'lib/debug.c')
0 files changed, 0 insertions, 0 deletions
