Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
f15cb99c
Commit
f15cb99c
authored
Jan 12, 2009
by
Ondřej Zajíček
Browse files
Add check detecting packet overwrite in TX buffer.
parent
02a9eeeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
proto/ospf/packet.c
View file @
f15cb99c
...
...
@@ -398,6 +398,9 @@ ospf_send_to(sock *sk, ip_addr ip, struct ospf_iface *ifa)
int
len
=
ntohs
(
pkt
->
length
)
+
((
ifa
->
autype
==
OSPF_AUTH_CRYPT
)
?
OSPF_AUTH_CRYPT_SIZE
:
0
);
ospf_pkt_finalize
(
ifa
,
pkt
);
if
(
sk
->
tbuf
!=
sk
->
tpos
)
log
(
L_ERR
"Aiee, old packet was overwritted in TX buffer"
);
if
(
ipa_equal
(
ip
,
IPA_NONE
))
sk_send
(
sk
,
len
);
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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