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
00155e76
Commit
00155e76
authored
Dec 28, 2019
by
Antonin Décimo
Committed by
Juliusz Chroboczek
Apr 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define v4prefix in util.
parent
7e5cf811
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
kernel_socket.c
kernel_socket.c
+0
-3
message.c
message.c
+0
-2
util.h
util.h
+2
-0
No files found.
kernel_socket.c
View file @
00155e76
...
...
@@ -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
...
...
message.c
View file @
00155e76
...
...
@@ -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
...
...
util.h
View file @
00155e76
...
...
@@ -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
)
{
...
...
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