Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 2010 15:19:01 -0700
From:      "Li, Qing" <qing.li@bluecoat.com>
To:        "Mike Tancsa" <mike@sentex.net>, <freebsd-stable@freebsd.org>
Subject:   RE: if_rtdel: error 47
Message-ID:  <B583FBF374231F4A89607B4D08578A4308026A4D@bcs-mail03.internal.cacheflow.com>
In-Reply-To: <201008312102.o7VL2MJr000894@lava.sentex.ca>
References:  <201008312102.o7VL2MJr000894@lava.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Without seeing your mpd link configuration, I am guessing the IP address
of all of=20
the local end points of your ppp links is the same IP address. If that's
the case,=20
the error message is harmless.

The reason being, for ppp links and in pre 8.0 release, if you try
pinging the local=20
end IP address, you will see packets are leaked out towards the default
gateway.

I fixed this issue by installing a loopback route for the local end.

Since multiple ppp links all having the same local IP address, but only
one such
loopback route is installed, when links are torn down they would try
deleting but=20
that entry would stay until the final link referring to that
self-pointing route=20
is gone.

--Qing



> -----Original Message-----
> From: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd-
> stable@freebsd.org] On Behalf Of Mike Tancsa
> Sent: Tuesday, August 31, 2010 2:02 PM
> To: freebsd-stable@freebsd.org
> Subject: if_rtdel: error 47
>=20
> On a RELENG_8 box from aug 25th, I started seeing a constant spew of
>=20
> Aug 31 00:17:46 gate8 kernel: if_rtdel: error 47
> Aug 31 00:18:29 gate8 kernel: ifa_del_loopback_route: deletion failed
> Aug 31 00:18:29 gate8 kernel: if_rtdel: error 3
> Aug 31 00:18:29 gate8 last message repeated 2 times
> Aug 31 00:18:37 gate8 kernel: ifa_del_loopback_route: deletion failed
> Aug 31 00:18:37 gate8 kernel: if_rtdel: error 3
> Aug 31 00:18:37 gate8 last message repeated 2 times
> Aug 31 00:18:38 gate8 kernel: ifa_del_loopback_route: deletion failed
> Aug 31 00:18:38 gate8 kernel: if_rtdel: error 3
> Aug 31 00:18:38 gate8 last message repeated 2 times
>=20
>=20
> What do they mean and how can I find the cause of it ? The box acts
> as an LNS with about 700 ng interfaces with mpd5.5.  ipv6 is enabled
> on this server as well, so I am guessing it might be related to ipv6
> as I havent seen it on the other LNS boxes that have the same setup,
> except no ipv6.  It was happily running for a few days until this
> error started showing up ?
>=20
> The error seems to be in sys/if.c
>=20
> if_rtdel(struct radix_node *rn, void *arg)
> {
>          struct rtentry  *rt =3D (struct rtentry *)rn;
>          struct ifnet    *ifp =3D arg;
>          int             err;
>=20
>          if (rt->rt_ifp =3D=3D ifp) {
>=20
>                  /*
>                   * Protect (sorta) against walktree recursion
problems
>                   * with cloned routes
>                   */
>                  if ((rt->rt_flags & RTF_UP) =3D=3D 0)
>                          return (0);
>=20
>                  err =3D rtrequest_fib(RTM_DELETE, rt_key(rt), rt-
> >rt_gateway,
>                                  rt_mask(rt), rt-
> >rt_flags|RTF_RNH_LOCKED,
>                                  (struct rtentry **) NULL, rt-
> >rt_fibnum);
>                  if (err) {
>                          log(LOG_WARNING, "if_rtdel: error %d\n",
err);
>                  }
>          }
>=20
>          return (0);
> }
>=20
>=20
>=20
>          ---Mike
>=20
>=20
> --------------------------------------------------------------------
> Mike Tancsa,                                      tel +1 519 651 3400
> Sentex Communications,                            mike@sentex.net
> Providing Internet since 1994                    www.sentex.net
> Cambridge, Ontario Canada                         www.sentex.net/mike
>=20
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-
> unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B583FBF374231F4A89607B4D08578A4308026A4D>