ospf6_lsdb_count_assert(lsdb);
}
-struct ospf6_lsa *ospf6_lsdb_lookup(u_int16_t type, u_int32_t id,
- u_int32_t adv_router,
+struct ospf6_lsa *ospf6_lsdb_lookup(uint16_t type, uint32_t id,
+ uint32_t adv_router,
struct ospf6_lsdb *lsdb)
{
struct route_node *node;
return (struct ospf6_lsa *)node->info;
}
-struct ospf6_lsa *ospf6_lsdb_lookup_next(u_int16_t type, u_int32_t id,
- u_int32_t adv_router,
+struct ospf6_lsa *ospf6_lsdb_lookup_next(uint16_t type, uint32_t id,
+ uint32_t adv_router,
struct ospf6_lsdb *lsdb)
{
struct route_node *node;
}
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,
+ uint16_t *type, uint32_t *id, uint32_t *adv_router,
struct ospf6_lsdb *lsdb)
{
struct ospf6_lsa *lsa;
}
}
-u_int32_t ospf6_new_ls_id(u_int16_t type, u_int32_t adv_router,
- struct ospf6_lsdb *lsdb)
+uint32_t ospf6_new_ls_id(uint16_t type, uint32_t adv_router,
+ struct ospf6_lsdb *lsdb)
{
struct ospf6_lsa *lsa;
- u_int32_t id = 1, tmp_id;
+ uint32_t id = 1, tmp_id;
/* This routine is curently invoked only for Inter-Prefix LSAs for
* non-summarized routes (no area/range).
id++;
}
- return ((u_int32_t)htonl(id));
+ return ((uint32_t)htonl(id));
}
/* Decide new LS sequence number to originate.
note return value is network byte order */
-u_int32_t ospf6_new_ls_seqnum(u_int16_t type, u_int32_t id,
- u_int32_t adv_router, struct ospf6_lsdb *lsdb)
+uint32_t ospf6_new_ls_seqnum(uint16_t type, uint32_t id, uint32_t adv_router,
+ struct ospf6_lsdb *lsdb)
{
struct ospf6_lsa *lsa;
signed long seqnum = 0;
else
seqnum = (signed long)ntohl(lsa->header->seqnum) + 1;
- return ((u_int32_t)htonl(seqnum));
+ return ((uint32_t)htonl(seqnum));
}