Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 2008 11:35:28 -0800
From:      "Li, Qing" <qing.li@bluecoat.com>
To:        "Giorgos Keramidas" <keramida@ceid.upatras.gr>, "Qing Li" <qingli@freebsd.org>
Cc:        freebsd-net@freebsd.org, freebsd-current@freebsd.org
Subject:   RE: HEADSUP: arp-v2 has been committed
Message-ID:  <B583FBF374231F4A89607B4D08578A430295C9C0@bcs-mail03.internal.cacheflow.com>
In-Reply-To: <873agpk11i.fsf@kobe.laptop>
References:  <200812150634.mBF6YDVC060565@freefall.freebsd.org> <873agpk11i.fsf@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
The increase in "Use" count is not a leak. Before the arp-v2 commit,=20
the counter increment occurs in the ARP entry for the gateway, but=20
"rt_gwroute" is no longer necessary and has been removed. The outgoing=20
interface is known from the default route entry, and because the gateway

is on-link, an ARP search is made in that interface.=20
The side effect is the "Use" count is increased in the default route
entry. You will also notice a similar behavior when you access=20
on-link hosts, i.e., the "Use" count for the interface route
192.169.1.0/24 will go up for every outgoing packet.

-- Qing


> -----Original Message-----
> From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd-
> current@freebsd.org] On Behalf Of Giorgos Keramidas
> Sent: Monday, December 15, 2008 5:42 AM
> To: Qing Li
> Cc: freebsd-net@freebsd.org; freebsd-current@freebsd.org
> Subject: Re: HEADSUP: arp-v2 has been committed
>=20
> On Mon, 15 Dec 2008 06:34:13 GMT, Qing Li <qingli@freebsd.org> wrote:
> > Hi All,
> >
> > The arp-v2 changes have been committed into HEAD.
> > Please report problems to me and Kip Macy.
>=20
> Thanks!  I've just updated my installation here to the new kernel and
> userland and it seems to work fine so far.  At least, ARP and IPv4
> seems
> to work without any noticeable problem the last few hours :-)
>=20
> I have one minor question though (still reading through the diff, so I
> am not sure if this is `normal').
>=20
> The new netstat output includes a `Use' column that seems to be ever
> increasing:
>=20
> : % netstat -rn -f inet
> : Routing tables
> :
> : Internet:
> : Destination        Gateway            Flags    Refs      Use  Netif
> Expire
> : default            192.168.1.1        UGS         0     5338    re0
> : 127.0.0.1          link#4             UH          0     1292    lo0
> : 192.168.1.0/24     link#2             U           0        2    re0
> :
> : % netstat -rn -f inet
> : Routing tables
> :
> : Internet:
> : Destination        Gateway            Flags    Refs      Use  Netif
> Expire
> : default            192.168.1.1        UGS         0     5365    re0
> : 127.0.0.1          link#4             UH          0     1337    lo0
> : 192.168.1.0/24     link#2             U           0        2    re0
> :
> : % netstat -rn -f inet
> : Routing tables
> :
> : Internet:
> : Destination        Gateway            Flags    Refs      Use  Netif
> Expire
> : default            192.168.1.1        UGS         0     5409    re0
> : 127.0.0.1          link#4             UH          0     1375    lo0
> : 192.168.1.0/24     link#2             U           0        2    re0
>=20
> Is this expected, or does it look like a leak?
>=20
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-
> unsubscribe@freebsd.org"



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