interface metric & quagga



Hi!

'route -n monitor' shows me that 'ifconfig up' command
produces RTM_NEWADDR, RTM_ADD and RTM_IFINFO message.

RTM_NEWADDR contains 'metric 0' regardless of interface metric
value set with ifconfig before. quagga, since version 0.99.3,
takes metric value from RTM_NEWADDR message and this value overrides
right interface metric learned by quagga a milisecond before.
Then it passes zero interface metric to ripd that uses interface
metric as hop count increment for RIP-learned routes.
This effectively breaks RIPv2 for FreeBSD (quagga-0.99.2 and older
versions do not use metric from RTM_NEWADDR and work), perhaps RIPv1 too.

Verified with RELENG_4 and RELENG_6.
Is it kernel bug or quagga bug?

I also suggest to include next patch to the Ports tree
if no objections. It restores RIP support.

--- zebra/kernel_socket.c.orig Fri Jan 26 01:10:06 2007
+++ zebra/kernel_socket.c Fri Jan 26 01:10:17 2007
@@ -585,8 +585,6 @@
if (ifnlen && strncmp (ifp->name, ifname, INTERFACE_NAMSIZ))
isalias = 1;

- ifp->metric = ifam->ifam_metric;
-
/* Add connected address. */
switch (sockunion_family (&addr))
{


Eugene Grosbein
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: interface metric & quagga
    ... right interface metric learned by quagga a milisecond before. ... However, many routing implementations use a metric or distance of 0 to indicate a directly-connected route or interface route, so it has special meaning. ... Is it kernel bug or quagga bug? ... If/when we do equal-cost multipath or source policy we can bump __FreeBSD_version. ...
    (freebsd-net)
  • Re: OT - Quagga/CARP
    ... when an alternate route for the same prefix is in the kernel route table. ... The problem is that quagga just does a stupid RTM_DELETE/RTM_ADD combo to ... limitation in the kernel routing tables or something, ... My understanding is that restarting en ospfd daemon is bad. ...
    (freebsd-net)
  • Re: FC4 internet connection
    ... can you post the output to the following commands? ... service network status ...
    (Fedora)
  • Re: Connecting to internet through ethernet card..
    ... I have ethernet card for inet connection. ... here is results of commands, be shure - hidden IP's pointed correctly. ... I've used ifconfig command to assign certain IPs and netmasks to ... I've used route to add the default gateway. ...
    (comp.os.linux.misc)
  • Re: TCPIP : Lost default route
    ... I have also seen ifconfig commands remove the default route. ... $SYSCONFIG -r inet tcp_recvspace=129904 ...
    (comp.os.vms)