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
6f530114
Commit
6f530114
authored
Mar 17, 2009
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new flag SPLIT_HORIZON.
parent
3a055e6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
message.c
message.c
+1
-1
network.c
network.c
+2
-0
network.h
network.h
+1
-0
No files found.
message.c
View file @
6f530114
...
...
@@ -894,7 +894,7 @@ flushupdates(struct network *net)
if
(
metric
<
INFINITY
)
satisfy_request
(
route
->
src
->
prefix
,
route
->
src
->
plen
,
seqno
,
route
->
src
->
id
,
net
);
if
(
split_horizon
&&
(
net
->
flags
&
NET_WIRED
)
&&
if
(
(
net
->
flags
&
NET_SPLIT_HORIZON
)
&&
route
->
neigh
->
network
==
net
)
continue
;
really_send_update
(
net
,
route
->
src
->
id
,
...
...
network.c
View file @
6f530114
...
...
@@ -262,6 +262,8 @@ network_up(struct network *net, int up)
if
(
wired
)
{
net
->
flags
|=
NET_WIRED
;
net
->
cost
=
96
;
if
(
split_horizon
)
net
->
flags
|=
NET_SPLIT_HORIZON
;
}
else
{
net
->
flags
&=
~
NET_WIRED
;
net
->
cost
=
256
;
...
...
network.h
View file @
6f530114
...
...
@@ -34,6 +34,7 @@ struct network_conf {
#define NET_UP (1 << 0)
#define NET_WIRED (1<<1)
#define NET_SPLIT_HORIZON (1 << 2)
struct
network
{
struct
network
*
next
;
...
...
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