Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
5a082dbb
Commit
5a082dbb
authored
Mar 09, 2017
by
Dave Taht
Committed by
Juliusz Chroboczek
Mar 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make v4prefix a shared constant between util.c and message.c
Share the data better.
parent
33c3b6c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
message.c
message.c
+1
-2
util.c
util.c
+1
-1
No files found.
message.c
View file @
5a082dbb
...
@@ -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
...
...
util.c
View file @
5a082dbb
...
@@ -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
]
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment