Commit ef13e4bb authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Move nets to network.c.

parent fded50b1
...@@ -67,9 +67,6 @@ int wired_hello_interval = -1; ...@@ -67,9 +67,6 @@ int wired_hello_interval = -1;
int idle_hello_interval = -1; int idle_hello_interval = -1;
int update_interval = -1; int update_interval = -1;
struct network nets[MAXNETS];
int numnets = 0;
const unsigned char zeroes[16] = {0}; const unsigned char zeroes[16] = {0};
const unsigned char ones[16] = const unsigned char ones[16] =
{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
......
...@@ -31,6 +31,9 @@ THE SOFTWARE. ...@@ -31,6 +31,9 @@ THE SOFTWARE.
#include "neighbour.h" #include "neighbour.h"
#include "message.h" #include "message.h"
struct network nets[MAXNETS];
int numnets = 0;
struct network * struct network *
add_network(char *ifname, int ifindex, int mtu, int wired, unsigned int cost) add_network(char *ifname, int ifindex, int mtu, int wired, unsigned int cost)
{ {
......
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