summaryrefslogtreecommitdiffstats
path: root/pimd/pim_iface.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-04-30 13:50:08 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-04-30 13:53:01 +0200
commit7f432a28e08bef5aaa75a830161f893adb9b3577 (patch)
tree558c03a41282c7fd2d30f25f1ff998d7a72cfba8 /pimd/pim_iface.h
parentMerge pull request #2134 from donaldsharp/zzz-top (diff)
downloadfrr-7f432a28e08bef5aaa75a830161f893adb9b3577.tar.xz
frr-7f432a28e08bef5aaa75a830161f893adb9b3577.zip
pimd: Cleanup pim_if_is_loopback
The interface itself knows if it is a vrf device or not, so let's just use a check for that in the decision if a interface is a loopback or not. Additionally modify function to return a bool. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_iface.h')
-rw-r--r--pimd/pim_iface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_iface.h b/pimd/pim_iface.h
index 5ecd07d22..12098fde2 100644
--- a/pimd/pim_iface.h
+++ b/pimd/pim_iface.h
@@ -207,7 +207,7 @@ void pim_if_create_pimreg(struct pim_instance *pim);
int pim_if_connected_to_source(struct interface *ifp, struct in_addr src);
int pim_update_source_set(struct interface *ifp, struct in_addr source);
-int pim_if_is_loopback(struct pim_instance *pim, struct interface *ifp);
+bool pim_if_is_loopback(struct interface *ifp);
int pim_if_is_vrf_device(struct interface *ifp);