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
69fbf9a2
Commit
69fbf9a2
authored
Dec 03, 2009
by
Ondřej Zajíček
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix in LSA update.
parent
e4a810b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
proto/ospf/lsack.c
proto/ospf/lsack.c
+2
-2
proto/ospf/lsupd.c
proto/ospf/lsupd.c
+3
-2
No files found.
proto/ospf/lsack.c
View file @
69fbf9a2
...
...
@@ -76,9 +76,9 @@ ospf_lsack_send(struct ospf_neighbor *n, int queue)
{
no
=
(
struct
lsah_n
*
)
HEAD
(
n
->
ackl
[
queue
]);
memcpy
(
h
+
i
,
&
no
->
lsa
,
sizeof
(
struct
ospf_lsa_header
));
i
++
;
DBG
(
"Iter %u ID: %R, RT: %R, Type: %u
\n
"
,
i
,
ntohl
((
h
+
i
)
->
id
),
DBG
(
"Iter %u ID: %R, RT: %R, Type: %04x
\n
"
,
i
,
ntohl
((
h
+
i
)
->
id
),
ntohl
((
h
+
i
)
->
rt
),
(
h
+
i
)
->
type
);
i
++
;
rem_node
(
NODE
no
);
mb_free
(
no
);
if
((
i
*
sizeof
(
struct
ospf_lsa_header
)
+
...
...
proto/ospf/lsupd.c
View file @
69fbf9a2
...
...
@@ -449,8 +449,9 @@ ospf_lsupd_receive(struct ospf_packet *ps_i, struct ospf_iface *ifa,
struct
ospf_lsa_header
*
lsa
=
(
void
*
)
(((
u8
*
)
ps
)
+
offset
);
unsigned
int
lsalen
=
ntohs
(
lsa
->
length
);
if
(((
offset
+
lsalen
)
>
size
)
||
((
lsalen
%
4
)
!=
0
)
||
offset
+=
lsalen
;
if
((
offset
>
size
)
||
((
lsalen
%
4
)
!=
0
)
||
(
lsalen
<=
sizeof
(
struct
ospf_lsa_header
)))
{
log
(
L_WARN
"Received LSA from %I with bad length"
,
n
->
ip
);
...
...
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