Commit 00155e76 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Define v4prefix in util.

parent 7e5cf811
......@@ -53,9 +53,6 @@ THE SOFTWARE.
static int get_sdl(struct sockaddr_dl *sdl, char *ifname);
static const unsigned char v4prefix[16] =
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, 0, 0, 0, 0 };
int export_table = -1, import_table_count = 0, import_tables[MAX_IMPORT_TABLES];
int
......
......@@ -48,8 +48,6 @@ int split_horizon = 1;
unsigned short myseqno = 0;
struct timeval seqno_time = {0, 0};
extern const unsigned char v4prefix[16];
#define MAX_CHANNEL_HOPS 20
/* Parse a network prefix, encoded in the somewhat baroque compressed
......
......@@ -103,6 +103,8 @@ void v4tov6(unsigned char *dst, const unsigned char *src);
int daemonise(void);
int set_src_prefix(unsigned char *src_addr, unsigned char *src_plen);
extern const unsigned char v4prefix[16];
static inline int
is_default(const unsigned char *prefix, int plen)
{
......
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