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
e7437c40
Commit
e7437c40
authored
Apr 19, 2020
by
Théophile Bastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decode prefixes with v4-over-v6 AE.
parent
4af65f9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
message.c
message.c
+2
-1
message.h
message.h
+1
-0
No files found.
message.c
View file @
e7437c40
...
...
@@ -54,7 +54,7 @@ struct timeval seqno_time = {0, 0};
static
int
known_ae
(
int
ae
)
{
return
ae
<=
AE_IPV6_LOCAL
;
return
ae
<=
AE_IPV6_LOCAL
||
ae
==
AE_V4OV6
;
}
/* Parse a network prefix, encoded in the somewhat baroque compressed
...
...
@@ -85,6 +85,7 @@ network_prefix(int ae, int plen, unsigned int omitted,
ret
=
0
;
break
;
case
AE_IPV4
:
case
AE_V4OV6
:
if
(
omitted
>
4
||
pb
>
4
||
(
pb
>
omitted
&&
len
<
pb
-
omitted
))
return
-
1
;
memcpy
(
prefix
,
v4prefix
,
12
);
...
...
message.h
View file @
e7437c40
...
...
@@ -46,6 +46,7 @@ THE SOFTWARE.
#define AE_IPV4 1
#define AE_IPV6 2
#define AE_IPV6_LOCAL 3
#define AE_V4OV6 240
extern
unsigned
short
myseqno
;
extern
struct
timeval
seqno_time
;
...
...
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