Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BIRD Internet Routing Daemon
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
5cdf264f
Commit
5cdf264f
authored
Nov 10, 2010
by
Ondřej Zajíček
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes a bug related to implicit backbone on ABR.
parent
c4443085
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
proto/ospf/ospf.c
proto/ospf/ospf.c
+1
-0
proto/ospf/ospf.h
proto/ospf/ospf.h
+1
-1
proto/ospf/topology.c
proto/ospf/topology.c
+10
-5
No files found.
proto/ospf/ospf.c
View file @
5cdf264f
...
...
@@ -205,6 +205,7 @@ ospf_start(struct proto *p)
oa
=
mb_allocz
(
p
->
pool
,
sizeof
(
struct
ospf_area
));
add_tail
(
&
po
->
area_list
,
NODE
oa
);
po
->
areano
++
;
oa
->
ac
=
NULL
;
oa
->
stub
=
0
;
oa
->
areaid
=
0
;
oa
->
rt
=
NULL
;
...
...
proto/ospf/ospf.h
View file @
5cdf264f
...
...
@@ -701,7 +701,7 @@ struct ospf_area
{
node
n
;
u32
areaid
;
struct
ospf_area_config
*
ac
;
/* Related area config */
struct
ospf_area_config
*
ac
;
/* Related area config
, might be NULL
*/
int
origrt
;
/* Rt lsa origination scheduled? */
struct
top_hash_entry
*
rt
;
/* My own router LSA */
struct
top_hash_entry
*
pxr_lsa
;
/* Originated prefix LSA */
...
...
proto/ospf/topology.c
View file @
5cdf264f
...
...
@@ -157,6 +157,9 @@ get_seqnum(struct top_hash_entry *en)
static
int
configured_stubnet
(
struct
ospf_area
*
oa
,
struct
ifa
*
a
)
{
if
(
!
oa
->
ac
)
return
0
;
struct
ospf_stubnet_config
*
sn
;
WALK_LIST
(
sn
,
oa
->
ac
->
stubnet_list
)
{
...
...
@@ -309,8 +312,9 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length)
}
struct
ospf_stubnet_config
*
sn
;
WALK_LIST
(
sn
,
oa
->
ac
->
stubnet_list
)
if
(
!
sn
->
hidden
)
if
(
oa
->
ac
)
WALK_LIST
(
sn
,
oa
->
ac
->
stubnet_list
)
if
(
!
sn
->
hidden
)
{
ln
=
lsab_alloc
(
po
,
sizeof
(
struct
ospf_lsa_rt_link
));
ln
->
type
=
LSART_STUB
;
...
...
@@ -1197,7 +1201,7 @@ originate_prefix_rt_lsa_body(struct ospf_area *oa, u16 *length)
/* If there are some configured vlinks, add some global address,
which will be used as a vlink endpoint. */
if
(
!
EMPTY_LIST
(
oa
->
ac
->
vlink_list
)
&&
!
host_addr
&&
vlink_addr
)
if
(
oa
->
ac
&&
!
EMPTY_LIST
(
oa
->
ac
->
vlink_list
)
&&
!
host_addr
&&
vlink_addr
)
{
put_ipv6_prefix
(
lsab_alloc
(
po
,
IPV6_PREFIX_SPACE
(
MAX_PREFIX_LENGTH
)),
vlink_addr
->
ip
,
MAX_PREFIX_LENGTH
,
OPT_PX_LA
,
0
);
...
...
@@ -1205,8 +1209,9 @@ originate_prefix_rt_lsa_body(struct ospf_area *oa, u16 *length)
}
struct
ospf_stubnet_config
*
sn
;
WALK_LIST
(
sn
,
oa
->
ac
->
stubnet_list
)
if
(
!
sn
->
hidden
)
if
(
oa
->
ac
)
WALK_LIST
(
sn
,
oa
->
ac
->
stubnet_list
)
if
(
!
sn
->
hidden
)
{
flags
=
(
sn
->
px
.
len
<
MAX_PREFIX_LENGTH
)
?
0
:
OPT_PX_LA
;
put_ipv6_prefix
(
lsab_alloc
(
po
,
IPV6_PREFIX_SPACE
(
sn
->
px
.
len
)),
...
...
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