From owner-freebsd-current@FreeBSD.ORG Fri Sep 22 18:07:45 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EE2216A40F for ; Fri, 22 Sep 2006 18:07:45 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-1.cisco.com (sj-iport-1-in.cisco.com [171.71.176.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91C3643D68 for ; Fri, 22 Sep 2006 18:07:43 +0000 (GMT) (envelope-from rrs@cisco.com) Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-1.cisco.com with ESMTP; 22 Sep 2006 11:07:43 -0700 Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-3.cisco.com (8.12.11.20060308/8.12.11) with ESMTP id k8MI7hA3023902 for ; Fri, 22 Sep 2006 11:07:43 -0700 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id k8MI7hYr009826 for ; Fri, 22 Sep 2006 11:07:43 -0700 (PDT) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 22 Sep 2006 11:07:43 -0700 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 22 Sep 2006 11:07:42 -0700 Message-ID: <45142651.1040709@cisco.com> Date: Fri, 22 Sep 2006 14:07:13 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <45142352.2060600@cisco.com> In-Reply-To: <45142352.2060600@cisco.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Sep 2006 18:07:43.0194 (UTC) FILETIME=[FFDC5BA0:01C6DE71] DKIM-Signature: a=rsa-sha1; q=dns; l=1471; t=1158948463; x=1159812463; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:Randall=20Stewart=20 |Subject:Re=3A=20Anyone=20play=20with=20divert=20sockets=20lately?; X=v=3Dcisco.com=3B=20h=3D501uzIGYshBKoQ9c94cTaL/zwjI=3D; b=fy4hza+ya9yAVgEY9C1381yR8tQSoWArZYf+f1Z8aQJHWI8vXgbarU2ZPTPJQnwROTdoXzKc JWdRcmBaVJM0ZG5CZu+7ENYbHHz5VRzPWZYeGGCVzXSPBAYUah5z57Ce; Authentication-Results: sj-dkim-3.cisco.com; header.From=rrs@cisco.com; dkim=pass ( sig from cisco.com verified; ); Subject: Re: Anyone play with divert sockets lately? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 18:07:45 -0000 Randall Stewart wrote: > Hi all: > > Due to something I need to do at I had to bring > up a couple of daemon's that use DIVERT sockets. > So I grabbed my two test machines.. one runs > 6.1 the other 7.0... > > I had not updated in a while... (the 7.0 machine). > So anyway, I got everything configured.. started > my router with the proper VRF's.. setup the > tunnels ... > > the 6.1 machine came up fine.. > > The 7.0 could not write into the tunnel... it > is sending to addr.sin_addr.s_addr = 0 and getting > error EACCESS back.. > > So I cvsup to current as of today.. rebuild.. > > and I get a bunch of: > > error's from the divert code.. and then a > crash in kern_exec/kern_proc.c > > (system ran out of memory I think).. > > The system was constantly printing > > divert_packet: no divert tag > > Even after I got a listener up on the divert port... > > Hmm.. any hints would be nice... > > I will go dig around and look.. > > R Well.. I did not see anything explicitly.. its interesting. That message continually prints out... (as the router sends in the packet I want diverted.. and there is no listner)... Now, when I start the daemon.. thats when the memory leak begins.. I don't see mbuf's leaking but the stats netstat shows the amount of memory alloc'd to network is on the rise.. very strange.. R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 815-342-5222 (cell)