[Babel-users] Duplicating externals

Michael Grant mgrant at grant.org
Mon Nov 9 10:13:00 UTC 2009


Oops, you missed the getopts line to accept that -A flag

*** babeld.c.ORIG       Mon Nov  9 10:55:45 2009
--- babeld.c    Mon Nov  9 10:56:38 2009
***************
*** 127,133 ****
      protocol_port = 8475;

      while(1) {
!         opt = getopt(argc, argv, "m:p:h:H:i:k:PsS:d:g:lwt:T:c:C:DL:I:");
          if(opt < 0)
              break;

--- 127,133 ----
      protocol_port = 8475;

      while(1) {
!         opt = getopt(argc, argv, "m:p:h:H:i:k:A:PsS:d:g:lwt:T:c:C:DL:I:");
          if(opt < 0)
              break;



On Sat, Nov 7, 2009 at 18:57, Juliusz Chroboczek
<Juliusz.Chroboczek at pps.jussieu.fr> wrote:
>> Please try this patch, running Babel with ``-A''.
>
> Er, slightly more complicated than that.
>
> You'll need to patch babel-pinger (see below) and run
>
>  babeld -k 2048 -A 2048
>
> The idea is that with -A, we use the kernel priority to choose between
> Babel and external routes.  So babel-pinger needs to install its route
> at a priority that less than the priority that Babel uses.
>
> Note that if you weren't using babel-pinger, you wouldn't need to use
> multiple routing tables with this patch -- it'd just work out of the
> box with the right -k and -A values.
>
> (I'm using priority, rather than metric, to avoid confusion between
> routing protocol metrics and kernel priorities -- they are orthogonal
> concepts.  Cisco uses the term ``administrative distance'', which you're
> welcome to google.)
>
>                                        Juliusz
>
> diff -rN -u old-babel-pinger/babel-pinger.c
> new-babel-pinger/babel-pinger.c
> --- old-babel-pinger/babel-pinger.c     2009-11-07 18:53:06.032768279
> +0100
> +++ new-babel-pinger/babel-pinger.c     2009-11-07 18:53:06.032768279
> +0100
> @@ -407,7 +407,7 @@
>     char buf[100];
>     if(!installed) {
>         snprintf(buf, 100,
> -                 "ip route add 0.0.0.0/0 dev lo metric 65534 proto %d",
> +                 "ip route add 0.0.0.0/0 dev lo metric 1234 proto %d",
>                  protocol);
>         system(buf);
>     }
>
>



More information about the Babel-users mailing list