Fix last commit on switching to CIDR.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-08-17 02:21:01 +02:00
parent 7c474381d4
commit 3190b01ada
2 changed files with 2 additions and 2 deletions

2
bgp.c
View file

@ -415,7 +415,7 @@ int bgp_del_route(in_addr_t ip, int prefixlen)
struct bgp_route_list del; struct bgp_route_list del;
int i; int i;
del.dest.ip = ip; del.dest.prefix = ip;
del.dest.len = prefixlen; del.dest.len = prefixlen;
del.next = 0; del.next = 0;

View file

@ -723,7 +723,7 @@ void processrad(uint8_t *buf, int len, char socket_index)
else if (ip) else if (ip)
{ {
LOG(3, s, session[s].tunnel, " Radius reply contains route for %s/%d\n", 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].ip = ip;
session[s].route[routes].prefixlen = bits; session[s].route[routes].prefixlen = bits;