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
9b2ff477
Commit
9b2ff477
authored
Jun 11, 2013
by
Baptiste Jonglez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also display RTT cost on the local interface
parent
a75fd3e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
local.c
local.c
+4
-3
No files found.
local.c
View file @
9b2ff477
...
@@ -133,13 +133,14 @@ local_kind(int kind)
...
@@ -133,13 +133,14 @@ local_kind(int kind)
static
void
static
void
local_notify_neighbour_1
(
int
s
,
struct
neighbour
*
neigh
,
int
kind
)
local_notify_neighbour_1
(
int
s
,
struct
neighbour
*
neigh
,
int
kind
)
{
{
char
buf
[
512
],
rttbuf
[
30
];
char
buf
[
512
],
rttbuf
[
64
];
int
rc
;
int
rc
;
rttbuf
[
0
]
=
'\0'
;
rttbuf
[
0
]
=
'\0'
;
if
(
valid_rtt
(
neigh
))
{
if
(
valid_rtt
(
neigh
))
{
rc
=
snprintf
(
rttbuf
,
30
,
" rtt %d"
,
neigh
->
rtt
);
rc
=
snprintf
(
rttbuf
,
64
,
" rtt %d rttcost %d"
,
neigh
->
rtt
,
if
(
rc
<
0
||
rc
>=
30
)
neighbour_rttcost
(
neigh
));
if
(
rc
<
0
||
rc
>=
64
)
rttbuf
[
0
]
=
'\0'
;
rttbuf
[
0
]
=
'\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