Commit 3337e1f5 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Increase max number of xroutes in single update.

parent adca107f
......@@ -64,7 +64,7 @@ parse_packet(const unsigned char *from, struct network *net,
int i, j;
const unsigned char *message;
struct neighbour *neigh;
struct xroute pxroutes[20];
struct xroute pxroutes[40];
int numpxroutes = 0;
if(len % 20 != 4 || packet[0] != 42) {
......@@ -151,7 +151,7 @@ parse_packet(const unsigned char *from, struct network *net,
} else if(message[0] == 4) {
debugf("Received xroute from %s.\n",
format_address(from));
if(numpxroutes >= 20) {
if(numpxroutes >= 40) {
fprintf(stderr, "Too many xroutes in update.\n");
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment