version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2016/11/02 10:09:11
|
Line 34 struct ospf6_lsdb
|
Line 34 struct ospf6_lsdb
|
void (*hook_remove) (struct ospf6_lsa *); |
void (*hook_remove) (struct ospf6_lsa *); |
}; |
}; |
|
|
#define OSPF6_LSDB_MAXAGE_REMOVER(lsdb) \ |
|
do { \ |
|
struct ospf6_lsa *lsa; \ |
|
for (lsa = ospf6_lsdb_head (lsdb); lsa; lsa = ospf6_lsdb_next (lsa)) \ |
|
{ \ |
|
if (! OSPF6_LSA_IS_MAXAGE (lsa)) \ |
|
continue; \ |
|
if (lsa->retrans_count != 0) \ |
|
continue; \ |
|
if (IS_OSPF6_DEBUG_LSA_TYPE (lsa->header->type)) \ |
|
zlog_debug ("Remove MaxAge %s", lsa->name); \ |
|
ospf6_lsdb_remove (lsa, lsdb); \ |
|
} \ |
|
} while (0) |
|
|
|
/* Function Prototypes */ |
/* Function Prototypes */ |
extern struct ospf6_lsdb *ospf6_lsdb_create (void *data); |
extern struct ospf6_lsdb *ospf6_lsdb_create (void *data); |
extern void ospf6_lsdb_delete (struct ospf6_lsdb *lsdb); |
extern void ospf6_lsdb_delete (struct ospf6_lsdb *lsdb); |
Line 79 extern struct ospf6_lsa *ospf6_lsdb_type_next (u_int16
|
Line 64 extern struct ospf6_lsa *ospf6_lsdb_type_next (u_int16
|
struct ospf6_lsa *lsa); |
struct ospf6_lsa *lsa); |
|
|
extern void ospf6_lsdb_remove_all (struct ospf6_lsdb *lsdb); |
extern void ospf6_lsdb_remove_all (struct ospf6_lsdb *lsdb); |
|
extern void ospf6_lsdb_lsa_unlock (struct ospf6_lsa *lsa); |
|
|
#define OSPF6_LSDB_SHOW_LEVEL_NORMAL 0 | enum ospf_lsdb_show_level { |
#define OSPF6_LSDB_SHOW_LEVEL_DETAIL 1 | OSPF6_LSDB_SHOW_LEVEL_NORMAL = 0, |
#define OSPF6_LSDB_SHOW_LEVEL_INTERNAL 2 | OSPF6_LSDB_SHOW_LEVEL_DETAIL, |
#define OSPF6_LSDB_SHOW_LEVEL_DUMP 3 | OSPF6_LSDB_SHOW_LEVEL_INTERNAL, |
| OSPF6_LSDB_SHOW_LEVEL_DUMP, |
| }; |
|
|
extern void ospf6_lsdb_show (struct vty *vty, int level, u_int16_t *type, | extern void ospf6_lsdb_show (struct vty *vty, |
| enum ospf_lsdb_show_level level, u_int16_t *type, |
u_int32_t *id, u_int32_t *adv_router, |
u_int32_t *id, u_int32_t *adv_router, |
struct ospf6_lsdb *lsdb); |
struct ospf6_lsdb *lsdb); |
|
|
Line 94 extern u_int32_t ospf6_new_ls_id (u_int16_t type, u_in
|
Line 83 extern u_int32_t ospf6_new_ls_id (u_int16_t type, u_in
|
extern u_int32_t ospf6_new_ls_seqnum (u_int16_t type, u_int32_t id, |
extern u_int32_t ospf6_new_ls_seqnum (u_int16_t type, u_int32_t id, |
u_int32_t adv_router, |
u_int32_t adv_router, |
struct ospf6_lsdb *lsdb); |
struct ospf6_lsdb *lsdb); |
|
extern int ospf6_lsdb_maxage_remover (struct ospf6_lsdb *lsdb); |
|
|
#endif /* OSPF6_LSDB_H */ |
#endif /* OSPF6_LSDB_H */ |