From bc18d616ad7d1d580e1e04c28eab2cd9afb67fad Mon Sep 17 00:00:00 2001 From: ajs Date: Wed, 15 Dec 2004 15:07:19 +0000 Subject: 2004-12-15 Andrew J. Schorr * ospf_interface.h: Declare new function ospf_default_iftype. * ospf_interface.c: (ospf_default_iftype) New function to centralize this logic in one place. * ospf_zebra.c: (ospf_interface_add) Use new function ospf_default_iftype. * ospf_vty.c: (no_ip_ospf_network,config_write_interface) Fix logic by using new function ospf_default_iftype. --- ospfd/ospf_interface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ospfd/ospf_interface.h') diff --git a/ospfd/ospf_interface.h b/ospfd/ospf_interface.h index ed6abed0..60ee1650 100644 --- a/ospfd/ospf_interface.h +++ b/ospfd/ospf_interface.h @@ -246,4 +246,6 @@ struct crypt_key *ospf_crypt_key_new (); void ospf_crypt_key_add (struct list *, struct crypt_key *); int ospf_crypt_key_delete (struct list *, u_char); +u_char ospf_default_iftype(struct interface *ifp); + #endif /* _ZEBRA_OSPF_INTERFACE_H */ -- cgit v1.2.1