summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-02-04 20:33:06 +0100
committerMark Stapp <mjs@voltanet.io>2019-04-22 19:49:27 +0200
commit6339042cb9c16dcf0efedc382666f4cbff22be18 (patch)
tree93022d07e415a00cd756c2ac73313fa729682a65 /lib/if.h
parentzebra: Use dplane for interface addresses (netlink) (diff)
downloadfrr-6339042cb9c16dcf0efedc382666f4cbff22be18.tar.xz
frr-6339042cb9c16dcf0efedc382666f4cbff22be18.zip
libs: use const in some interface flag accessors
Use const in several interface struct flag accessors (that just test flags.) Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/if.h b/lib/if.h
index 6689769be..d26d4dd68 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -499,16 +499,16 @@ extern void if_delete_retain(struct interface *);
deletes it from the interface list and frees the structure. */
extern void if_delete(struct interface *);
-extern int if_is_up(struct interface *);
-extern int if_is_running(struct interface *);
-extern int if_is_operative(struct interface *);
-extern int if_is_no_ptm_operative(struct interface *);
-extern int if_is_loopback(struct interface *);
-extern int if_is_vrf(struct interface *ifp);
-extern bool if_is_loopback_or_vrf(struct interface *ifp);
-extern int if_is_broadcast(struct interface *);
-extern int if_is_pointopoint(struct interface *);
-extern int if_is_multicast(struct interface *);
+extern int if_is_up(const struct interface *ifp);
+extern int if_is_running(const struct interface *ifp);
+extern int if_is_operative(const struct interface *ifp);
+extern int if_is_no_ptm_operative(const struct interface *ifp);
+extern int if_is_loopback(const struct interface *ifp);
+extern int if_is_vrf(const struct interface *ifp);
+extern bool if_is_loopback_or_vrf(const struct interface *ifp);
+extern int if_is_broadcast(const struct interface *ifp);
+extern int if_is_pointopoint(const struct interface *ifp);
+extern int if_is_multicast(const struct interface *ifp);
struct vrf;
extern void if_terminate(struct vrf *vrf);
extern void if_dump_all(void);