From 3190b01adac79f00390f9e70a3017411be75a7bc Mon Sep 17 00:00:00 2001 From: Benjamin Cama Date: Wed, 17 Aug 2011 02:21:01 +0200 Subject: [PATCH] Fix last commit on switching to CIDR. Signed-off-by: Benjamin Cama --- bgp.c | 2 +- radius.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bgp.c b/bgp.c index eca1518..f1d0ec2 100644 --- a/bgp.c +++ b/bgp.c @@ -415,7 +415,7 @@ int bgp_del_route(in_addr_t ip, int prefixlen) struct bgp_route_list del; int i; - del.dest.ip = ip; + del.dest.prefix = ip; del.dest.len = prefixlen; del.next = 0; diff --git a/radius.c b/radius.c index e337a75..4e67e63 100644 --- a/radius.c +++ b/radius.c @@ -723,7 +723,7 @@ void processrad(uint8_t *buf, int len, char socket_index) else if (ip) { LOG(3, s, session[s].tunnel, " Radius reply contains route for %s/%d\n", - fmtaddr(htonl(ip), 0), bits, 1)); + fmtaddr(htonl(ip), 0), bits); session[s].route[routes].ip = ip; session[s].route[routes].prefixlen = bits; -- 2.20.1