summaryrefslogtreecommitdiff
path: root/babeld/message.c
diff options
context:
space:
mode:
authorJuliusz Chroboczek <jch@pps.jussieu.fr>2012-02-14 15:43:34 +0100
committerPaul Jakma <paul@quagga.net>2012-03-25 17:06:54 +0100
commit6881f2698279f3c47a55e8969860eeac59e8c3d7 (patch)
tree7408dfdeff638ce16273cd7c8c4d9c35a99cfe87 /babeld/message.c
parentcbde15513ba47f6e7f6d02fcafcfb12cd5b1df77 (diff)
babeld: remove "parasitic" mode.
This is the functionality described in Appendix C of RFC 6126. Its main purpose is to avoid keeping a full source table, which makes it possible to implement a subset of Babel in just a few hundred lines of code. However, in Quagga the code for maintaining the source table is already there, and a parasitic implementation can be simulated using filtering -- so it makes little sense to keep the functionality.
Diffstat (limited to 'babeld/message.c')
-rw-r--r--babeld/message.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/babeld/message.c b/babeld/message.c
index e86b4325..9dcfc677 100644
--- a/babeld/message.c
+++ b/babeld/message.c
@@ -54,7 +54,6 @@ THE SOFTWARE.
unsigned char packet_header[4] = {42, 2};
-int parasitic = 0;
int split_horizon = 1;
unsigned short myseqno = 0;
@@ -1153,18 +1152,13 @@ send_update(struct interface *ifp, int urgent,
babel_ifp = babel_get_if_nfo(ifp);
if(prefix) {
- if(!parasitic || find_xroute(prefix, plen)) {
- debugf(BABEL_DEBUG_COMMON,"Sending update to %s for %s.",
- ifp->name, format_prefix(prefix, plen));
- buffer_update(ifp, prefix, plen);
- }
+ debugf(BABEL_DEBUG_COMMON,"Sending update to %s for %s.",
+ ifp->name, format_prefix(prefix, plen));
+ buffer_update(ifp, prefix, plen);
} else {
send_self_update(ifp);
- if(!parasitic) {
- debugf(BABEL_DEBUG_COMMON,"Sending update to %s for any.",
- ifp->name);
- for_all_installed_routes(buffer_update_callback, ifp);
- }
+ debugf(BABEL_DEBUG_COMMON,"Sending update to %s for any.", ifp->name);
+ for_all_installed_routes(buffer_update_callback, ifp);
set_timeout(&babel_ifp->update_timeout, babel_ifp->update_interval);
babel_ifp->last_update_time = babel_now.tv_sec;
}