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
98955023
Commit
98955023
authored
Dec 03, 2009
by
Ondřej Zajíček
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes OSPFv2 build.
parent
bb3c7c6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
proto/ospf/ospf.c
proto/ospf/ospf.c
+4
-0
proto/ospf/topology.c
proto/ospf/topology.c
+2
-2
No files found.
proto/ospf/ospf.c
View file @
98955023
...
...
@@ -1049,6 +1049,8 @@ ospf_sh_iface(struct proto *p, char *iff)
* values
*/
#ifdef OSPFv3
static
struct
ospf_lsa_header
*
fake_lsa_from_prefix_lsa
(
struct
ospf_lsa_header
*
dst
,
struct
ospf_lsa_header
*
src
,
struct
ospf_lsa_prefix
*
px
)
...
...
@@ -1062,6 +1064,8 @@ fake_lsa_from_prefix_lsa(struct ospf_lsa_header *dst, struct ospf_lsa_header *sr
return
dst
;
}
#endif
static
int
lsa_compare_for_state
(
const
void
*
p1
,
const
void
*
p2
)
{
...
...
proto/ospf/topology.c
View file @
98955023
...
...
@@ -635,14 +635,14 @@ static inline int
check_sum_net_lsaid_collision
(
struct
fib_node
*
fn
,
struct
top_hash_entry
*
en
)
{
struct
ospf_lsa_sum
*
sum
=
en
->
lsa_body
;
return
(
fn
->
pxlen
!=
ipa_mklen
(
sum
->
netmask
)
)
return
fn
->
pxlen
!=
ipa_mklen
(
sum
->
netmask
)
;
}
static
inline
int
check_ext_lsaid_collision
(
struct
fib_node
*
fn
,
struct
top_hash_entry
*
en
)
{
struct
ospf_lsa_ext
*
ext
=
en
->
lsa_body
;
return
(
fn
->
pxlen
!=
ipa_mklen
(
ext
->
netmask
)
)
return
fn
->
pxlen
!=
ipa_mklen
(
ext
->
netmask
)
;
}
#else
/* OSPFv3 */
...
...
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