Commit 5a082dbb authored by Dave Taht's avatar Dave Taht Committed by Juliusz Chroboczek

Make v4prefix a shared constant between util.c and message.c

Share the data better.
parent 33c3b6c2
...@@ -54,8 +54,7 @@ unsigned char *unicast_buffer = NULL; ...@@ -54,8 +54,7 @@ unsigned char *unicast_buffer = NULL;
struct neighbour *unicast_neighbour = NULL; struct neighbour *unicast_neighbour = NULL;
struct timeval unicast_flush_timeout = {0, 0}; struct timeval unicast_flush_timeout = {0, 0};
static const unsigned char v4prefix[16] = extern const unsigned char v4prefix[16];
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, 0, 0, 0, 0 };
#define MAX_CHANNEL_HOPS 20 #define MAX_CHANNEL_HOPS 20
......
...@@ -246,7 +246,7 @@ normalize_prefix(unsigned char *restrict ret, ...@@ -246,7 +246,7 @@ normalize_prefix(unsigned char *restrict ret,
return ret; return ret;
} }
static const unsigned char v4prefix[16] = const unsigned char v4prefix[16] =
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, 0, 0, 0, 0 }; {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, 0, 0, 0, 0 };
static const unsigned char llprefix[16] = static const unsigned char llprefix[16] =
......
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