]> git.proxmox.com Git - mirror_frr.git/blobdiff - eigrpd/eigrp_interface.h
Merge pull request #3502 from donaldsharp/socket_to_me_baby
[mirror_frr.git] / eigrpd / eigrp_interface.h
index c7de3b75b62ea7df50063e666f1883ac619fb49d..a18b0b7015d0f1c69d5f07bf9a1c7d78f7b21714 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef _ZEBRA_EIGRP_INTERFACE_H_
 #define _ZEBRA_EIGRP_INTERFACE_H_
 
 /*Prototypes*/
-extern void eigrp_if_init (void);
-extern int eigrp_if_new_hook (struct interface *);
-extern int eigrp_if_delete_hook (struct interface *);
+extern void eigrp_if_init(void);
+extern int eigrp_if_new_hook(struct interface *);
+extern int eigrp_if_delete_hook(struct interface *);
 
-extern void eigrp_del_if_params (struct eigrp_if_params *);
-extern struct eigrp_if_params *eigrp_new_if_params (void);
-extern struct eigrp_interface * eigrp_if_new (struct eigrp *, struct interface *,
-                                              struct prefix *);
-extern struct eigrp_interface * eigrp_if_table_lookup (struct interface *,
-                                                       struct prefix *);
-extern struct eigrp_if_params *eigrp_lookup_if_params (struct interface *,
-                                                struct in_addr);
-extern int eigrp_if_up (struct eigrp_interface *);
-extern void eigrp_if_stream_set (struct eigrp_interface *);
-extern void eigrp_if_set_multicast (struct eigrp_interface *);
-extern u_char eigrp_default_iftype (struct interface *);
-extern void eigrp_if_free (struct eigrp_interface *, int);
-extern int eigrp_if_down (struct eigrp_interface *);
-extern void eigrp_if_stream_unset (struct eigrp_interface *);
+extern bool eigrp_if_is_passive(struct eigrp_interface *ei);
+extern void eigrp_del_if_params(struct eigrp_if_params *);
+extern struct eigrp_interface *eigrp_if_new(struct eigrp *, struct interface *,
+                                           struct prefix *);
+extern int eigrp_if_up(struct eigrp_interface *);
+extern void eigrp_if_stream_set(struct eigrp_interface *);
+extern void eigrp_if_set_multicast(struct eigrp_interface *);
+extern uint8_t eigrp_default_iftype(struct interface *);
+extern void eigrp_if_free(struct eigrp_interface *, int);
+extern int eigrp_if_down(struct eigrp_interface *);
+extern void eigrp_if_stream_unset(struct eigrp_interface *);
 
-extern struct eigrp_interface *eigrp_if_lookup_by_local_addr (struct eigrp *,
-                                                              struct interface *,
-                                                              struct in_addr);
-extern struct eigrp_interface *eigrp_if_lookup_by_name (struct eigrp *, const char *);
-struct eigrp_interface * eigrp_if_lookup_recv_if (struct eigrp *, struct in_addr,
-                                                  struct interface *);
+extern struct eigrp_interface *eigrp_if_lookup_by_local_addr(struct eigrp *,
+                                                            struct interface *,
+                                                            struct in_addr);
+extern struct eigrp_interface *eigrp_if_lookup_by_name(struct eigrp *,
+                                                      const char *);
 
 /* Simulate down/up on the interface. */
-extern void eigrp_if_reset (struct interface *);
+extern void eigrp_if_reset(struct interface *);
 
-extern u_int32_t eigrp_bandwidth_to_scaled (u_int32_t);
-extern u_int32_t eigrp_scaled_to_bandwidth (u_int32_t);
-extern u_int32_t eigrp_delay_to_scaled (u_int32_t);
-extern u_int32_t eigrp_scaled_to_delay (u_int32_t);
+extern uint32_t eigrp_bandwidth_to_scaled(uint32_t);
+extern uint32_t eigrp_scaled_to_bandwidth(uint32_t);
+extern uint32_t eigrp_delay_to_scaled(uint32_t);
+extern uint32_t eigrp_scaled_to_delay(uint32_t);
 
 
 #endif /* ZEBRA_EIGRP_INTERFACE_H_ */