mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 02:46:37 +00:00
ospfd: Remove usage of inet_ntop
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
e279bfdf06
commit
be4b502a76
@ -350,7 +350,6 @@ static int ospf_abr_nssa_am_elected(struct ospf_area *area)
|
||||
struct ospf_lsa *lsa;
|
||||
struct router_lsa *rlsa;
|
||||
struct in_addr *best = NULL;
|
||||
char buf[PREFIX_STRLEN];
|
||||
|
||||
LSDB_LOOP (ROUTER_LSDB(area), rn, lsa) {
|
||||
/* sanity checks */
|
||||
@ -382,9 +381,8 @@ static int ospf_abr_nssa_am_elected(struct ospf_area *area)
|
||||
|
||||
if (IS_DEBUG_OSPF_NSSA)
|
||||
zlog_debug(
|
||||
"ospf_abr_nssa_am_elected: best electable ABR is: %s",
|
||||
(best) ? inet_ntop(AF_INET, best, buf, sizeof(buf)) :
|
||||
"<none>");
|
||||
"ospf_abr_nssa_am_elected: best electable ABR is: %pI4",
|
||||
best);
|
||||
|
||||
if (best == NULL)
|
||||
return 1;
|
||||
|
@ -454,16 +454,13 @@ int ospf_flood_through_interface(struct ospf_interface *oi,
|
||||
struct ospf_neighbor *onbr;
|
||||
struct route_node *rn;
|
||||
int retx_flag;
|
||||
char buf[PREFIX_STRLEN];
|
||||
|
||||
if (IS_DEBUG_OSPF_EVENT)
|
||||
zlog_debug(
|
||||
"%s: considering int %s (%s), INBR(%s), LSA[%s] AGE %u",
|
||||
"%s: considering int %s (%s), INBR(%pI4), LSA[%s] AGE %u",
|
||||
__func__, IF_NAME(oi), ospf_get_name(oi->ospf),
|
||||
inbr ? inet_ntop(AF_INET, &inbr->router_id, buf,
|
||||
sizeof(buf))
|
||||
: "NULL",
|
||||
dump_lsa_key(lsa), ntohs(lsa->data->ls_age));
|
||||
inbr ? &inbr->router_id : NULL, dump_lsa_key(lsa),
|
||||
ntohs(lsa->data->ls_age));
|
||||
|
||||
if (!ospf_if_is_enable(oi))
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user