Skip to content
GitLab
Menu
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
ea9bb932
Commit
ea9bb932
authored
Nov 17, 1999
by
Martin Mareš
Browse files
Commented out nexthop selection, see the comment.
parent
7d509304
Changes
1
Hide whitespace changes
Inline
Side-by-side
proto/rip/rip.c
View file @
ea9bb932
...
...
@@ -103,12 +103,20 @@ rip_tx( sock *s )
ipa_hton
(
packet
->
block
[
i
].
netmask
);
packet
->
block
[
i
].
nexthop
=
IPA_NONE
;
{
/*
* FIXME: This DOESN'T work. The s->daddr will be typically
* a broadcast or multicast address which will be of course
* rejected by the neighbor cache. I've #ifdef'd out the whole
* test to avoid dereferencing NULL pointer. --mj
*/
#if 0
neighbor *n1, *n2;
n1 = neigh_find( p, &s->daddr, 0 ); /* FIXME, mj: this is neccessary for responses, still it is too complicated for common case */
n2 = neigh_find( p, &e->nexthop, 0 );
if (n1->iface == n2->iface)
packet->block[i].nexthop = e->nexthop;
else
#endif
packet
->
block
[
i
].
nexthop
=
IPA_NONE
;
}
ipa_hton
(
packet
->
block
[
i
].
nexthop
);
...
...
Write
Preview
Supports
Markdown
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