From: Benjamin Cama Date: Wed, 17 Aug 2011 00:21:01 +0000 (+0200) Subject: Fix last commit on switching to CIDR. X-Git-Tag: debian/2.2.1-1fdn2~2^2^2~4 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/3190b01adac79f00390f9e70a3017411be75a7bc Fix last commit on switching to CIDR. Signed-off-by: Benjamin Cama --- 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;