mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:51:17 +00:00
Merge pull request #13245 from anlancs/cleanup/ripd-1
ripd: Cosmetic changes for ripd
This commit is contained in:
commit
48e829d40d
13
ripd/ripd.c
13
ripd/ripd.c
@ -1500,7 +1500,7 @@ static int rip_send_packet(uint8_t *buf, int size, struct sockaddr_in *to,
|
||||
ret = sendmsg(rip->sock, &msg, 0);
|
||||
|
||||
if (IS_RIP_DEBUG_EVENT)
|
||||
zlog_debug("SEND to %pI4%d", &sin.sin_addr,
|
||||
zlog_debug("SEND to %pI4 port %d", &sin.sin_addr,
|
||||
ntohs(sin.sin_port));
|
||||
|
||||
if (ret < 0)
|
||||
@ -2836,16 +2836,11 @@ uint8_t rip_distance_apply(struct rip *rip, struct rip_info *rinfo)
|
||||
if (access_list_apply(alist, &rinfo->rp->p)
|
||||
== FILTER_DENY)
|
||||
return 0;
|
||||
|
||||
return rdistance->distance;
|
||||
} else
|
||||
return rdistance->distance;
|
||||
}
|
||||
return rdistance->distance;
|
||||
}
|
||||
|
||||
if (rip->distance)
|
||||
return rip->distance;
|
||||
|
||||
return 0;
|
||||
return rip->distance;
|
||||
}
|
||||
|
||||
static void rip_distance_show(struct vty *vty, struct rip *rip)
|
||||
|
Loading…
Reference in New Issue
Block a user