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
9506268a
Commit
9506268a
authored
Jul 20, 2014
by
Matthieu Boutier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a source prefix field in interface buffers.
parent
d3fafe01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
interface.h
interface.h
+5
-1
message.c
message.c
+1
-0
No files found.
interface.h
View file @
9506268a
...
@@ -23,8 +23,10 @@ THE SOFTWARE.
...
@@ -23,8 +23,10 @@ THE SOFTWARE.
struct
buffered_update
{
struct
buffered_update
{
unsigned
char
id
[
8
];
unsigned
char
id
[
8
];
unsigned
char
prefix
[
16
];
unsigned
char
prefix
[
16
];
unsigned
char
src_prefix
[
16
];
unsigned
char
plen
;
unsigned
char
plen
;
unsigned
char
pad
[
3
];
unsigned
char
src_plen
;
/* 0 <=> no src prefix */
unsigned
char
pad
[
2
];
};
};
struct
interface_conf
{
struct
interface_conf
{
...
@@ -84,9 +86,11 @@ struct interface {
...
@@ -84,9 +86,11 @@ struct interface {
char
have_buffered_id
;
char
have_buffered_id
;
char
have_buffered_nh
;
char
have_buffered_nh
;
char
have_buffered_prefix
;
char
have_buffered_prefix
;
char
have_buffered_src_prefix
;
unsigned
char
buffered_id
[
16
];
unsigned
char
buffered_id
[
16
];
unsigned
char
buffered_nh
[
4
];
unsigned
char
buffered_nh
[
4
];
unsigned
char
buffered_prefix
[
16
];
unsigned
char
buffered_prefix
[
16
];
unsigned
char
buffered_src_prefix
[
16
];
unsigned
char
*
sendbuf
;
unsigned
char
*
sendbuf
;
struct
buffered_update
*
buffered_updates
;
struct
buffered_update
*
buffered_updates
;
int
num_buffered_updates
;
int
num_buffered_updates
;
...
...
message.c
View file @
9506268a
...
@@ -726,6 +726,7 @@ flushbuf(struct interface *ifp)
...
@@ -726,6 +726,7 @@ flushbuf(struct interface *ifp)
ifp
->
have_buffered_id
=
0
;
ifp
->
have_buffered_id
=
0
;
ifp
->
have_buffered_nh
=
0
;
ifp
->
have_buffered_nh
=
0
;
ifp
->
have_buffered_prefix
=
0
;
ifp
->
have_buffered_prefix
=
0
;
ifp
->
have_buffered_src_prefix
=
0
;
ifp
->
flush_timeout
.
tv_sec
=
0
;
ifp
->
flush_timeout
.
tv_sec
=
0
;
ifp
->
flush_timeout
.
tv_usec
=
0
;
ifp
->
flush_timeout
.
tv_usec
=
0
;
}
}
...
...
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