diff options
| author | David Lamparter <equinox@diac24.net> | 2010-01-30 12:10:23 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-27 23:31:02 +0200 |
| commit | abffde07a3f89f77dc45b7660323e41c39d4113c (patch) | |
| tree | 45d91bff33e1909353eb48bdd1c47b3918c30e9b /zebra/connected.h | |
| parent | 3df31ebb0328b4b84fa11d5fbd956dcc30c44dfe (diff) | |
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 <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/connected.h')
| -rw-r--r-- | zebra/connected.h | 5 |
1 files changed, 4 insertions, 1 deletions
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, |
