diff options
| author | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-06-23 11:46:57 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-06-23 11:46:57 -0400 |
| commit | ae90dfbbb7221ba3863e52c1b2f4789de1b090a3 (patch) | |
| tree | eafbd5b32dc2e119d35c0356a98b009afccb16b3 /pimd/pim_zebra.c | |
| parent | 169edb7f12147a0c0505f6cd8d4bf4ccd535afba (diff) | |
pimd: Handle pimreg a bit better
The pimreg device is vif_index == 0. Allow it
to be used.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_zebra.c')
| -rw-r--r-- | pimd/pim_zebra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index f4f1b47263..e947ff87c5 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -779,7 +779,7 @@ static int fib_lookup_if_vif_index(struct in_addr addr) vif_index = pim_if_find_vifindex_by_ifindex(first_ifindex); - if (vif_index < 1) { + if (vif_index < 0) { char addr_str[100]; pim_inet4_dump("<addr?>", addr, addr_str, sizeof(addr_str)); zlog_warn("%s %s: low vif_index=%d < 1 nexthop for address %s", |
