Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
66261211
Commit
66261211
authored
Jun 06, 2004
by
Ondřej Filip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Struct area_net changed.
parent
b9ed99f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
proto/ospf/config.Y
proto/ospf/config.Y
+4
-4
proto/ospf/ospf.c
proto/ospf/ospf.c
+5
-5
proto/ospf/ospf.h
proto/ospf/ospf.h
+3
-2
No files found.
proto/ospf/config.Y
View file @
66261211
...
...
@@ -112,8 +112,8 @@ pref_el: prefix ';'
{
this_pref = cfg_allocz(sizeof(struct area_net));
add_tail(&this_area->net_list, NODE this_pref);
this_pref->
net
= $1.addr;
this_pref->
m
len = $1.len;
this_pref->
px.addr
= $1.addr;
this_pref->
px.
len = $1.len;
}
;
...
...
@@ -121,8 +121,8 @@ pref_hid: prefix HIDDEN ';'
{
this_pref = cfg_allocz(sizeof(struct area_net));
add_tail(&this_area->net_list, NODE this_pref);
this_pref->
net
= $1.addr;
this_pref->
m
len = $1.len;
this_pref->
px.addr
= $1.addr;
this_pref->
px.
len = $1.len;
this_pref->hidden = 1;
}
;
...
...
proto/ospf/ospf.c
View file @
66261211
...
...
@@ -116,8 +116,8 @@ ospf_start(struct proto *p)
WALK_LIST
(
anet
,
ac
->
net_list
)
{
antmp
=
mb_allocz
(
po
->
proto
.
pool
,
sizeof
(
struct
area_net
));
antmp
->
net
=
anet
->
net
;
antmp
->
m
len
=
anet
->
m
len
;
antmp
->
px
.
addr
=
anet
->
px
.
addr
;
antmp
->
px
.
len
=
anet
->
px
.
len
;
antmp
->
hidden
=
anet
->
hidden
;
add_tail
(
&
oa
->
net_list
,
NODE
antmp
);
}
...
...
@@ -542,8 +542,8 @@ ospf_reconfigure(struct proto *p, struct proto_config *c)
WALK_LIST
(
anet
,
ac2
->
net_list
)
{
antmp
=
mb_alloc
(
p
->
pool
,
sizeof
(
struct
area_net
));
antmp
->
net
=
anet
->
net
;
antmp
->
m
len
=
anet
->
m
len
;
antmp
->
px
.
addr
=
anet
->
px
.
addr
;
antmp
->
px
.
len
=
anet
->
px
.
len
;
antmp
->
hidden
=
anet
->
hidden
;
add_tail
(
&
oa
->
net_list
,
NODE
antmp
);
}
...
...
@@ -836,7 +836,7 @@ ospf_sh(struct proto *p)
cli_msg
(
-
1014
,
"
\t\t
Area networks:"
);
WALK_LIST
(
anet
,
oa
->
net_list
)
{
cli_msg
(
-
1014
,
"
\t\t\t
%1I/%u
\t
%s"
,
anet
->
net
,
anet
->
m
len
,
cli_msg
(
-
1014
,
"
\t\t\t
%1I/%u
\t
%s"
,
anet
->
px
.
addr
,
anet
->
px
.
len
,
anet
->
hidden
?
"Hidden"
:
"Advertise"
);
}
}
...
...
proto/ospf/ospf.h
View file @
66261211
...
...
@@ -67,9 +67,10 @@ struct nbma_node {
struct
area_net
{
node
n
;
ip_addr
net
;
int
mlen
;
struct
prefix
px
;
int
hidden
;
int
active
;
int
oldactive
;
};
struct
ospf_area_config
{
...
...
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