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
c18eb1e1
Commit
c18eb1e1
authored
Oct 31, 2013
by
Baptiste Jonglez
Committed by
Juliusz Chroboczek
Nov 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give names to the various types of sub-TLV
parent
aa85696d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
message.c
message.c
+3
-3
message.h
message.h
+7
-0
No files found.
message.c
View file @
c18eb1e1
...
...
@@ -127,7 +127,7 @@ parse_route_attributes(const unsigned char *a, int alen,
while
(
i
<
alen
)
{
type
=
a
[
i
];
if
(
type
==
0
)
{
if
(
type
==
SUBTLV_PAD1
)
{
i
++
;
continue
;
}
...
...
@@ -142,9 +142,9 @@ parse_route_attributes(const unsigned char *a, int alen,
return
;
}
if
(
type
==
1
)
{
if
(
type
==
SUBTLV_PADN
)
{
/* Nothing. */
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
SUBTLV_DIVERSITY
)
{
if
(
len
>
DIVERSITY_HOPS
)
{
fprintf
(
stderr
,
"Received overlong channel information (%d > %d).
\n
"
,
...
...
message.h
View file @
c18eb1e1
...
...
@@ -25,6 +25,9 @@ THE SOFTWARE.
#define BUCKET_TOKENS_MAX 200
#define BUCKET_TOKENS_PER_SEC 40
/* A registry of assigned TLV and sub-TLV types is available at
http://www.pps.univ-paris-diderot.fr/~jch/software/babel/babel-tlv-registry.text
*/
#define MESSAGE_PAD1 0
#define MESSAGE_PADN 1
#define MESSAGE_ACK_REQ 2
...
...
@@ -37,6 +40,10 @@ THE SOFTWARE.
#define MESSAGE_REQUEST 9
#define MESSAGE_MH_REQUEST 10
/* Protocol extension through sub-TLVs. */
#define SUBTLV_PAD1 0
#define SUBTLV_PADN 1
#define SUBTLV_DIVERSITY 2
/* Also known as babelz. */
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