summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-05-12 00:52:30 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-05-12 16:03:44 +0200
commitbd40c341ee28aa73ffc1eee576a209366cf16271 (patch)
treeb990f22cfbb54baa1c0cf8761d1d74adde9d5dbb /lib/if.h
parent"ip protocol" is missing ospf as an option (diff)
downloadfrr-bd40c341ee28aa73ffc1eee576a209366cf16271.tar.xz
frr-bd40c341ee28aa73ffc1eee576a209366cf16271.zip
lib: refactor connected_lookup_prefix
The connected_lookup_address function should really be a connected_lookup_prefix function. Refactor the code to use it. Ticket: CM-10890 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/if.h b/lib/if.h
index 9c57cf769..78a73fada 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -350,8 +350,8 @@ extern struct connected *connected_add_by_prefix (struct interface *,
struct prefix *);
extern struct connected *connected_delete_by_prefix (struct interface *,
struct prefix *);
-extern struct connected *connected_lookup_address (struct interface *,
- struct in_addr);
+extern struct connected *connected_lookup_prefix (struct interface *,
+ struct prefix *);
extern struct nbr_connected *nbr_connected_new (void);
extern void nbr_connected_free (struct nbr_connected *);
struct nbr_connected *nbr_connected_check (struct interface *, struct prefix *);