Do not send empty packets in rip.
This commit is contained in:
parent
8660913ba8
commit
bd215f8bab
1 changed files with 8 additions and 4 deletions
|
@ -162,10 +162,14 @@ rip_tx( sock *s )
|
||||||
if (i == !!P_CF->authtype)
|
if (i == !!P_CF->authtype)
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
if (ipa_nonzero(c->daddr))
|
if (!i)
|
||||||
i = sk_send_to( s, packetlen, c->daddr, c->dport );
|
DBG( "not sending NULL update\n" );
|
||||||
else
|
else {
|
||||||
i = sk_send( s, packetlen );
|
if (ipa_nonzero(c->daddr))
|
||||||
|
i = sk_send_to( s, packetlen, c->daddr, c->dport );
|
||||||
|
else
|
||||||
|
i = sk_send( s, packetlen );
|
||||||
|
}
|
||||||
|
|
||||||
DBG( "it wants more\n" );
|
DBG( "it wants more\n" );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue