0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Do not send empty packets in rip.

This commit is contained in:
Pavel Machek 2000-01-26 14:12:18 +00:00
parent 8660913ba8
commit bd215f8bab

View File

@ -162,10 +162,14 @@ rip_tx( sock *s )
if (i == !!P_CF->authtype) if (i == !!P_CF->authtype)
continue; continue;
#endif #endif
if (!i)
DBG( "not sending NULL update\n" );
else {
if (ipa_nonzero(c->daddr)) if (ipa_nonzero(c->daddr))
i = sk_send_to( s, packetlen, c->daddr, c->dport ); i = sk_send_to( s, packetlen, c->daddr, c->dport );
else else
i = sk_send( s, packetlen ); i = sk_send( s, packetlen );
}
DBG( "it wants more\n" ); DBG( "it wants more\n" );