]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed a bunch of FIXME's by removing them :)
authorMartin Mares <mj@ucw.cz>
Sun, 12 Mar 2000 22:53:05 +0000 (22:53 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 12 Mar 2000 22:53:05 +0000 (22:53 +0000)
TODO
nest/proto.c
nest/rt-table.c
sysdep/unix/io.c
sysdep/unix/log.c
sysdep/unix/main.c

diff --git a/TODO b/TODO
index 44aa9821df508ddc893af95816b88869312cffd4..5bca22e037a5bbde7d37286376521830b93ba42f 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,5 +1,7 @@
 Core
 ~~~~
+- config: when parsing prefix, check zero bits
+
 - static: check validity of route destination?
 - static: allow specifying a per-route filter program for setting route attributes?
 
@@ -9,7 +11,6 @@ Core
 
 Commands
 ~~~~~~~~
-- show status
 - showing of routing table as seen by given protocol
 - printing of dynamic attributes
 
@@ -39,7 +40,6 @@ Various ideas
 - netlink: import Linux route attributes to our rta's, so that they can be filtered?
 - config: executable config files
 - client: access control
-- config: when parsing prefix, check zero bits
 - io: use poll if available
 - IPv6 router advertisements
 - real multipath (doesn't seem to be simple at all :()
index 7243fcd55ceee4e744a6f74b455eccabaa9def48..937cda2de5aa363d56241b28c66377c881ddf0ed 100644 (file)
@@ -283,7 +283,7 @@ proto_rethink_goal(struct proto *p)
       mb_free(p);
       if (!nc)
        return;
-      p = proto_init(nc);              /* FIXME: What about protocol priorities??? */
+      p = proto_init(nc);
     }
 
   /* Determine what state we want to reach */
index f255a05eae976818d2e2525b3dea03c516f1c2eb..b959770f339a1da470d82a18e78c5d5d0029e204 100644 (file)
@@ -710,7 +710,11 @@ static void
 rt_show_cont(struct cli *c)
 {
   struct rt_show_data *d = c->rover;
-  unsigned max = 1;                    /* FIXME: After some debugging, increase to reasonable amount */
+#ifdef DEBUGGING
+  unsigned max = 4;
+#else
+  unsigned max = 64;
+#endif
   struct fib *fib = &d->table->fib;
   struct fib_iterator *it = &d->fit;
 
index 267e5896d185da305fd08127dd3aabad53e54801..824c7e297ca2aa0f1fdbdbbe5c6efb3a0e04a3ce 100644 (file)
@@ -897,8 +897,6 @@ io_loop(void)
   sock *s;
   node *n, *p;
 
-  /* FIXME: Use poll() if available */
-
   FD_ZERO(&rd);
   FD_ZERO(&wr);
   for(;;)
index b4a028da49cd8a4053d32b3d8a7536caa40afb7e..fa2902e6d82667ec4ef96d2d93fcd488ee362ab8 100644 (file)
@@ -184,4 +184,6 @@ log_init_debug(char *f)
     dbgf = stderr;
   else if (!(dbgf = fopen(f, "a")))
     log(L_ERR "Error opening debug file `%s': %m", f);
+  if (dbgf)
+    setvbuf(dbgf, NULL, _IONBF, 0);
 }
index 58fffda455b9cecb662c022889230421b69fd508..c6f489362e4115072d76bf75eee219c2b0906cbe 100644 (file)
@@ -385,8 +385,6 @@ main(int argc, char **argv)
     dmalloc_debug(0x2f03d00);
 #endif
 
-  setvbuf(stdout, NULL, _IONBF, 0);    /* FIXME: Kill some day. */
-  setvbuf(stderr, NULL, _IONBF, 0);
   parse_args(argc, argv);
   if (debug_flag == 1)
     log_init_debug("");