diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-04-11 14:31:51 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-11 14:31:51 +0300 | 
| commit | 48e829d40d05bb4e809659446864525e5b52b05f (patch) | |
| tree | c70c7eb0de81f6b74dca7a3df67bf089e085c6c1 | |
| parent | 59cb833f6a602b39eb59f5b62e270fb310b4fb03 (diff) | |
| parent | b769fdc88b2445cb6965ac70ffb87a87af26a79d (diff) | |
Merge pull request #13245 from anlancs/cleanup/ripd-1
ripd: Cosmetic changes for ripd
| -rw-r--r-- | ripd/ripd.c | 13 | 
1 files changed, 4 insertions, 9 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index ae4d93b4f5..7dbe2bbccf 100644 --- a/ripd/ripd.c +++ b/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)  | 
