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
bc8035ad
Commit
bc8035ad
authored
Feb 02, 2011
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add channel information to update_route.
parent
fadd362d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
message.c
message.c
+1
-1
route.c
route.c
+5
-1
route.h
route.h
+2
-1
No files found.
message.c
View file @
bc8035ad
...
...
@@ -355,7 +355,7 @@ parse_packet(const unsigned char *from, struct network *net,
}
update_route
(
router_id
,
prefix
,
plen
,
seqno
,
metric
,
interval
,
neigh
,
nh
);
neigh
,
nh
,
NULL
,
0
);
}
else
if
(
type
==
MESSAGE_REQUEST
)
{
unsigned
char
prefix
[
16
],
plen
;
int
rc
;
...
...
route.c
View file @
bc8035ad
...
...
@@ -428,7 +428,8 @@ struct route *
update_route
(
const
unsigned
char
*
a
,
const
unsigned
char
*
p
,
unsigned
char
plen
,
unsigned
short
seqno
,
unsigned
short
refmetric
,
unsigned
short
interval
,
struct
neighbour
*
neigh
,
const
unsigned
char
*
nexthop
)
struct
neighbour
*
neigh
,
const
unsigned
char
*
nexthop
,
const
unsigned
char
*
channels
,
int
channels_len
)
{
struct
route
*
route
;
struct
source
*
src
;
...
...
@@ -528,6 +529,9 @@ update_route(const unsigned char *a, const unsigned char *p, unsigned char plen,
route
->
hold_time
=
hold_time
;
route
->
installed
=
0
;
memset
(
&
route
->
channels
,
0
,
sizeof
(
route
->
channels
));
if
(
channels_len
>
0
)
memcpy
(
&
route
->
channels
,
channels
,
MIN
(
channels_len
,
DIVERSITY_HOPS
));
numroutes
++
;
local_notify_route
(
route
,
LOCAL_ADD
);
consider_route
(
route
);
...
...
route.h
View file @
bc8035ad
...
...
@@ -80,7 +80,8 @@ struct route *update_route(const unsigned char *a,
const
unsigned
char
*
p
,
unsigned
char
plen
,
unsigned
short
seqno
,
unsigned
short
refmetric
,
unsigned
short
interval
,
struct
neighbour
*
neigh
,
const
unsigned
char
*
nexthop
);
const
unsigned
char
*
nexthop
,
const
unsigned
char
*
channels
,
int
channels_len
);
void
retract_neighbour_routes
(
struct
neighbour
*
neigh
);
void
send_unfeasible_request
(
struct
neighbour
*
neigh
,
int
force
,
unsigned
short
seqno
,
unsigned
short
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