From f390d2c7839c04100e4de8246215ce10ea96b653 Mon Sep 17 00:00:00 2001 From: hasso Date: Fri, 10 Sep 2004 20:48:21 +0000 Subject: Indentation only. No any functional changes. --- isisd/isis_adjacency.h | 91 +++++++++++++++++++++++++------------------------- 1 file changed, 46 insertions(+), 45 deletions(-) (limited to 'isisd/isis_adjacency.h') diff --git a/isisd/isis_adjacency.h b/isisd/isis_adjacency.h index 5c0772cc..a9b1913e 100644 --- a/isisd/isis_adjacency.h +++ b/isisd/isis_adjacency.h @@ -33,7 +33,7 @@ enum isis_adj_usage ISIS_ADJ_LEVEL1AND2 }; -enum isis_system_type +enum isis_system_type { ISIS_SYSTYPE_UNKNOWN, ISIS_SYSTYPE_ES, @@ -42,7 +42,7 @@ enum isis_system_type ISIS_SYSTYPE_L2_IS }; -enum isis_adj_state +enum isis_adj_state { ISIS_ADJ_INITIALIZING, ISIS_ADJ_UP, @@ -62,65 +62,66 @@ enum isis_adj_updown_reason ISIS_ADJ_REASON_CHECKSUM_FAILED }; -#define DIS_RECORDS 8 /* keep the last 8 DIS state changes on record */ +#define DIS_RECORDS 8 /* keep the last 8 DIS state changes on record */ -struct isis_dis_record { - int dis; /* is our neighbor the DIS ? */ time_t last_dis_change; /* timestamp for last dis change */ +struct isis_dis_record +{ + int dis; /* is our neighbor the DIS ? */ + time_t last_dis_change; /* timestamp for last dis change */ }; -struct isis_adjacency{ - u_char snpa[ETH_ALEN]; /* NeighbourSNPAAddress */ - u_char sysid[ISIS_SYS_ID_LEN]; /* neighbourSystemIdentifier */ - u_char lanid[ISIS_SYS_ID_LEN+1]; /* LAN id on bcast circuits */ - int dischanges[ISIS_LEVELS]; /* how many DIS changes ?*/ +struct isis_adjacency +{ + u_char snpa[ETH_ALEN]; /* NeighbourSNPAAddress */ + u_char sysid[ISIS_SYS_ID_LEN]; /* neighbourSystemIdentifier */ + u_char lanid[ISIS_SYS_ID_LEN + 1]; /* LAN id on bcast circuits */ + int dischanges[ISIS_LEVELS]; /* how many DIS changes ? */ /* an array of N levels for M records */ - struct isis_dis_record dis_record[DIS_RECORDS * ISIS_LEVELS]; - enum isis_adj_state adj_state; /* adjacencyState */ - enum isis_adj_usage adj_usage; /* adjacencyUsage */ - struct list *area_addrs; /* areaAdressesOfNeighbour */ - struct nlpids nlpids; /* protocols spoken ... */ + struct isis_dis_record dis_record[DIS_RECORDS * ISIS_LEVELS]; + enum isis_adj_state adj_state; /* adjacencyState */ + enum isis_adj_usage adj_usage; /* adjacencyUsage */ + struct list *area_addrs; /* areaAdressesOfNeighbour */ + struct nlpids nlpids; /* protocols spoken ... */ struct list *ipv4_addrs; #ifdef HAVE_IPV6 struct list *ipv6_addrs; -#endif /* HAVE_IPV6 */ - u_char prio[ISIS_LEVELS]; /* priorityOfNeighbour for DIS*/ - int circuit_t; /* from hello PDU hdr */ - int level; /* level (1 or 2) */ - enum isis_system_type sys_type; /* neighbourSystemType */ - u_int16_t hold_time; /* entryRemainingTime */ +#endif /* HAVE_IPV6 */ + u_char prio[ISIS_LEVELS]; /* priorityOfNeighbour for DIS */ + int circuit_t; /* from hello PDU hdr */ + int level; /* level (1 or 2) */ + enum isis_system_type sys_type; /* neighbourSystemType */ + u_int16_t hold_time; /* entryRemainingTime */ u_int32_t last_upd; - u_int32_t last_flap; /* last time the adj flapped */ - int flaps; /* number of adjacency flaps */ - struct thread *t_expire; /* expire after hold_time */ - struct isis_circuit *circuit; /* back pointer */ + u_int32_t last_flap; /* last time the adj flapped */ + int flaps; /* number of adjacency flaps */ + struct thread *t_expire; /* expire after hold_time */ + struct isis_circuit *circuit; /* back pointer */ }; - -struct isis_adjacency *isis_adj_lookup (u_char *sysid, struct list *adjdb); -struct isis_adjacency *isis_adj_lookup_snpa (u_char *ssnpa, +struct isis_adjacency *isis_adj_lookup (u_char * sysid, struct list *adjdb); +struct isis_adjacency *isis_adj_lookup_snpa (u_char * ssnpa, struct list *adjdb); -struct isis_adjacency *isis_new_adj (u_char *id, u_char *snpa, int level, - struct isis_circuit *circuit); -void isis_delete_adj (struct isis_adjacency *adj, struct list *adjdb); -void isis_adj_state_change (struct isis_adjacency *adj, - enum isis_adj_state state, char *reason); -void isis_adj_print (struct isis_adjacency *adj); -int isis_adj_expire (struct thread *thread); +struct isis_adjacency *isis_new_adj (u_char * id, u_char * snpa, int level, + struct isis_circuit *circuit); +void isis_delete_adj (struct isis_adjacency *adj, struct list *adjdb); +void isis_adj_state_change (struct isis_adjacency *adj, + enum isis_adj_state state, char *reason); +void isis_adj_print (struct isis_adjacency *adj); +int isis_adj_expire (struct thread *thread); void isis_adj_print_vty (struct isis_adjacency *adj, struct vty *vty); void isis_adj_print_vty_detail (struct isis_adjacency *adj, struct vty *vty); -void isis_adj_print_vty_extensive (struct isis_adjacency *adj, - struct vty *vty); +void isis_adj_print_vty_extensive (struct isis_adjacency *adj, + struct vty *vty); void isis_adj_p2p_print_vty (struct isis_adjacency *adj, struct vty *vty); -void isis_adj_p2p_print_vty_detail (struct isis_adjacency *adj, - struct vty *vty); -void isis_adj_p2p_print_vty_extensive (struct isis_adjacency *adj, - struct vty *vty); +void isis_adj_p2p_print_vty_detail (struct isis_adjacency *adj, + struct vty *vty); +void isis_adj_p2p_print_vty_extensive (struct isis_adjacency *adj, + struct vty *vty); void isis_adj_build_neigh_list (struct list *adjdb, struct list *list); void isis_adj_build_up_list (struct list *adjdb, struct list *list); -void isis_adjdb_iterate (struct list *adjdb, - void (*func)(struct isis_adjacency*, - void *), void *arg); +void isis_adjdb_iterate (struct list *adjdb, + void (*func) (struct isis_adjacency *, + void *), void *arg); #endif /* ISIS_ADJACENCY_H */ - -- cgit v1.2.1