Fix last commit on switching to CIDR.
authorBenjamin Cama <benoar@dolka.fr>
Wed, 17 Aug 2011 00:21:01 +0000 (02:21 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Wed, 17 Aug 2011 00:21:01 +0000 (02:21 +0200)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
bgp.c
radius.c

diff --git a/bgp.c b/bgp.c
index eca1518..f1d0ec2 100644 (file)
--- 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;
 
index e337a75..4e67e63 100644 (file)
--- 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;