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
4ebf4c38
Commit
4ebf4c38
authored
Oct 09, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add places to cache information about buffering to network structure.
parent
21bdbeaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
network.c
network.c
+0
-6
network.h
network.h
+7
-0
No files found.
network.c
View file @
4ebf4c38
...
...
@@ -64,14 +64,8 @@ add_network(char *ifname)
return
NULL
;
memset
(
net
,
0
,
sizeof
(
struct
network
));
net
->
up
=
0
;
net
->
ifindex
=
0
;
net
->
ipv4
=
NULL
;
net
->
activity_time
=
now
.
tv_sec
;
net
->
bufsize
=
0
;
strncpy
(
net
->
ifname
,
ifname
,
IF_NAMESIZE
);
net
->
sendbuf
=
NULL
;
net
->
buffered
=
0
;
net
->
bucket_time
=
now
.
tv_sec
;
net
->
bucket
=
BUCKET_TOKENS_MAX
;
net
->
hello_seqno
=
(
random
()
&
0xFFFF
);
...
...
network.h
View file @
4ebf4c38
...
...
@@ -39,6 +39,13 @@ struct network {
int
buffered
;
struct
timeval
flush_timeout
;
int
bufsize
;
int
have_buffered_hello
;
int
have_buffered_id
;
int
have_buffered_nh
;
int
have_buffered_prefix
;
unsigned
char
buffered_id
[
16
];
unsigned
char
buffered_nh
[
4
];
unsigned
char
buffered_prefix
[
16
];
unsigned
char
*
sendbuf
;
time_t
bucket_time
;
unsigned
int
bucket
;
...
...
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