From owner-freebsd-net@FreeBSD.ORG Fri Apr 8 20:13:37 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 326B3106566C for ; Fri, 8 Apr 2011 20:13:37 +0000 (UTC) (envelope-from przemyslaw@frasunek.com) Received: from lagoon.freebsd.lublin.pl (lagoon.freebsd.lublin.pl [IPv6:2a02:2928:a::3]) by mx1.freebsd.org (Postfix) with ESMTP id AFFA28FC1E for ; Fri, 8 Apr 2011 20:13:36 +0000 (UTC) Received: from [IPv6:2a02:2928:a:ffff:965:9c23:fece:cec1] (unknown [IPv6:2a02:2928:a:ffff:965:9c23:fece:cec1]) by lagoon.freebsd.lublin.pl (Postfix) with ESMTPSA id D213B23944A for ; Fri, 8 Apr 2011 22:13:35 +0200 (CEST) Message-ID: <4D9F6C71.1040209@frasunek.com> Date: Fri, 08 Apr 2011 22:13:37 +0200 From: Przemyslaw Frasunek Organization: frasunek.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4D947756.6050808@freebsd.lublin.pl> In-Reply-To: <4D947756.6050808@freebsd.lublin.pl> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: mpd5/Netgraph issues after upgrading to 7.4 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2011 20:13:37 -0000 [...] > Mar 31 13:48:06 lsm-gw mpd: [B-150] Bundle: Interface ng149 created > Mar 31 13:48:06 lsm-gw mpd: [B-150] can't create ppp node at ".:"->"b150": > Operation not permitted [...] I'm still looking for a help in investigating this issue. The problem appears on two 7.4 boxes, while 7.3 are working OK. Ktrace shows, that indeed some of sendto() calls on netgraph control socket are failing with EPERM: 1246 mpd5 CALL sendto(0x5,0x2886e020,0x98,0,0xbf7fc9b2,0x5) 1246 mpd5 RET sendto -1 errno 1 Operation not permitted but few seconds later, sendto() called on the same socket succeeds: 1246 mpd5 CALL sendto(0x5,0x286487c0,0x38,0,0xbf9feae2,0x6) 1246 mpd5 GIO fd 5 wrote 56 bytes 0x0000 0800 0000 0000 0000 0100 0000 0000 0000 |................| 0x0010 b2b1 c600 1e51 c643 636d 6431 0000 0000 |.....Q.Ccmd1....| 0x0020 0000 0000 0000 0000 0000 0000 0000 0000 |................| 0x0030 0000 0000 0000 0000 |........| I looked at the netgraph code and I couldn't find any place where it returns EPERM.