Commit 0f2d7725 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

More checking for down networks.

parent 313934b3
......@@ -402,7 +402,7 @@ send_message(struct network *net,
unsigned short seqno, unsigned short metric,
const unsigned char *address)
{
if(net->bufsize == 0)
if(!net->up)
return;
start_message(net, 24);
......@@ -498,6 +498,9 @@ send_unicast_packet(struct neighbour *neigh, unsigned char *buf, int buflen)
struct sockaddr_in6 sin6;
int rc;
if(!neigh->network->up)
return;
if(check_bucket(neigh->network)) {
memset(&sin6, 0, sizeof(sin6));
sin6.sin6_family = AF_INET6;
......
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