From owner-freebsd-stable@FreeBSD.ORG Wed Oct 11 15:12:19 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F113816A417 for ; Wed, 11 Oct 2006 15:12:19 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id C011343D8A for ; Wed, 11 Oct 2006 15:12:07 +0000 (GMT) (envelope-from dudu.meyer@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so113015uge for ; Wed, 11 Oct 2006 08:12:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PGIKhV7L3YlpHPMnXEDPiGz/pUIKLcZJu7OpjSJbFtQGNAFbWPvkSudwfuFl7z0SJRSURuI/s/w3YivtOsFKKvd1yzMzcqDojUrP14Bmz4AYjsgUZHvVekV5tg2VO6aS1WOH08wqppL4NPl/QMmELI6R8dsEciXm+Iq5xybSNm0= Received: by 10.67.91.6 with SMTP id t6mr1224674ugl; Wed, 11 Oct 2006 08:12:06 -0700 (PDT) Received: by 10.66.248.4 with HTTP; Wed, 11 Oct 2006 08:12:06 -0700 (PDT) Message-ID: Date: Wed, 11 Oct 2006 12:12:06 -0300 From: "Eduardo Meyer" To: "Eugene Grosbein" , stable@freebsd.org In-Reply-To: <20061011042733.GA12604@svzserv.kemerovo.su> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <57d710000610101008h47c96971v35b5483ca6052fad@mail.gmail.com> <20061011042733.GA12604@svzserv.kemerovo.su> Cc: Subject: Re: Netgraph - ng_bpf help (first experience) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2006 15:12:20 -0000 On 10/11/06, Eugene Grosbein wrote: > On Tue, Oct 10, 2006 at 04:25:23PM -0300, Eduardo Meyer wrote: > > > ngctl: send msg: No such file or directory > > Exit 71 > > > > Same problem. With ngctl list the only node I see is: > > > > There are 1 total nodes: > > Name: ngctl19792 Type: socket ID: 0000003f Num hooks: 0 > > > > You do not have ng_bpf node created and try to assing a program > to nonexisting node. That's what ngctl tries to say to you. > > Eugene Thank you for pointing a way Eugene. But isn't this command supposed to be the one creating the node? ngctl msg my_node: setprogram { thisHook="hook1" ifMatch="hook2" ifNotMatch="hook3" bpf_prog_len=16 bpf_prog=[ { code=40 jt=0 jf=0 k=12 } { code=21 jt=0 jf=4 k=34525 } { code=48 jt=0 jf=0 k=20 } { code=21 jt=0 jf=11 k=6 } { code=40 jt=0 jf=0 k=56 } { code=21 jt=8 jf=9 k=80 } { code=21 jt=0 jf=8 k=2048 } { code=48 jt=0 jf=0 k=23 } { code=21 jt=0 jf=6 k=6 } { code=40 jt=0 jf=0 k=20 } { code=69 jt=4 jf=0 k=8191 } { code=177 jt=0 jf=0 k=14 } { code=72 jt=0 jf=0 k=16 } { code=21 jt=0 jf=1 k=80 } { code=6 jt=0 jf=0 k=8192 } { code=6 jt=0 jf=0 k=0 } ] } } How should I create "my_node" before? -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br