From abffde07a3f89f77dc45b7660323e41c39d4113c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 30 Jan 2010 12:10:23 +0100 Subject: zebra: add connected_check_ptp infrastructure add a connected_check_ptp function which does the same as connected_check, but takes an additional peer prefix argument. also fix related prefixlen mixup in PtP addresses (the local part of a PtP address always is /32, but previously the peer mask got copied.) Signed-off-by: David Lamparter --- zebra/connected.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'zebra/connected.h') diff --git a/zebra/connected.h b/zebra/connected.h index eaf79fe9aa..b67442fa3b 100644 --- a/zebra/connected.h +++ b/zebra/connected.h @@ -23,7 +23,10 @@ #define _ZEBRA_CONNECTED_H extern struct connected *connected_check(struct interface *ifp, - struct prefix *p); + union prefixconstptr p); +extern struct connected *connected_check_ptp(struct interface *ifp, + union prefixconstptr p, + union prefixconstptr d); extern void connected_add_ipv4(struct interface *ifp, int flags, struct in_addr *addr, u_char prefixlen, -- cgit v1.2.3