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
56755718
Commit
56755718
authored
May 22, 2013
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Jul 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve route printing with "from" field.
parent
f73407b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
babeld.c
babeld.c
+5
-3
No files found.
babeld.c
View file @
56755718
...
@@ -1028,9 +1028,10 @@ dump_route(FILE *out, struct babel_route *route)
...
@@ -1028,9 +1028,10 @@ dump_route(FILE *out, struct babel_route *route)
channels
[
0
]
=
'\0'
;
channels
[
0
]
=
'\0'
;
}
}
fprintf
(
out
,
"%s
metric %d (%d) refmetric %d id %s seqno %d%s age %d
"
fprintf
(
out
,
"%s
from %s metric %d (%d) refmetric %d id %s
"
"via %s neigh %s%s%s%s
\n
"
,
"
seqno %d%s age %d
via %s neigh %s%s%s%s
\n
"
,
format_prefix
(
route
->
src
->
prefix
,
route
->
src
->
plen
),
format_prefix
(
route
->
src
->
prefix
,
route
->
src
->
plen
),
format_prefix
(
route
->
src
->
src_prefix
,
route
->
src
->
src_plen
),
route_metric
(
route
),
route_smoothed_metric
(
route
),
route
->
refmetric
,
route_metric
(
route
),
route_smoothed_metric
(
route
),
route
->
refmetric
,
format_eui64
(
route
->
src
->
id
),
format_eui64
(
route
->
src
->
id
),
(
int
)
route
->
seqno
,
(
int
)
route
->
seqno
,
...
@@ -1047,8 +1048,9 @@ dump_route(FILE *out, struct babel_route *route)
...
@@ -1047,8 +1048,9 @@ dump_route(FILE *out, struct babel_route *route)
static
void
static
void
dump_xroute
(
FILE
*
out
,
struct
xroute
*
xroute
)
dump_xroute
(
FILE
*
out
,
struct
xroute
*
xroute
)
{
{
fprintf
(
out
,
"%s metric %d (exported)
\n
"
,
fprintf
(
out
,
"%s
from %s
metric %d (exported)
\n
"
,
format_prefix
(
xroute
->
prefix
,
xroute
->
plen
),
format_prefix
(
xroute
->
prefix
,
xroute
->
plen
),
format_prefix
(
xroute
->
src_prefix
,
xroute
->
src_plen
),
xroute
->
metric
);
xroute
->
metric
);
}
}
...
...
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