[zebra] Bug #351: Don't redistribute routes to ipv4 link-local prefixes
2007-04-07 Paul Jakma <paul.jakma@sun.com>
* lib/prefix.h: Add define to match IPv4 Link-Local addresses
* zebra/redistribute.c: (zebra_check_addr) Don't redistribute routes
to IPv4 link-local prefixes, fixes bug #351.
* zebra/redistribute.h: Export zebra_check_addr.
* zebra/router-id.c: (router_id_bad_address) re-use zebra_check_addr
rather than implementing similar logic.
diff --git a/zebra/redistribute.h b/zebra/redistribute.h
index 9e78dfd..9ed99bc 100644
--- a/zebra/redistribute.h
+++ b/zebra/redistribute.h
@@ -46,5 +46,7 @@
extern void zebra_interface_address_delete_update (struct interface *,
struct connected *c);
+extern int zebra_check_addr (struct prefix *);
+
#endif /* _ZEBRA_REDISTRIBUTE_H */