From owner-freebsd-stable@FreeBSD.ORG Tue Oct 10 19:58:20 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 8B0D716A415 for ; Tue, 10 Oct 2006 19:58:20 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6A8243D58 for ; Tue, 10 Oct 2006 19:57:58 +0000 (GMT) (envelope-from dudu.meyer@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so775220uge for ; Tue, 10 Oct 2006 12:57:58 -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=uuL/pA20pyZCMvCt7M8Z49Dp0il/OO41oVTvP/2UEkY2X4+329JOZlUc1ARbC9Tpwg1rlzBBhBdbkyW8WcSCEvE0rJ32pxu3RBfsK1ivQz56pz02HBpepZPw3CE3RFpmpCn7f2K/p+qAAyS1IRVXd0BIEWPbFrBeD31UpCY7N4s= Received: by 10.67.89.5 with SMTP id r5mr8595416ugl; Tue, 10 Oct 2006 12:00:52 -0700 (PDT) Received: by 10.66.248.4 with HTTP; Tue, 10 Oct 2006 12:00:51 -0700 (PDT) Message-ID: Date: Tue, 10 Oct 2006 16:00:51 -0300 From: "Eduardo Meyer" To: stable@freebsd.org In-Reply-To: <57d710000610101008h47c96971v35b5483ca6052fad@mail.gmail.com> 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> 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: Tue, 10 Oct 2006 19:58:20 -0000 Pete, thank you for asking. > are you sure you are able to write to /tmp, this error looks like it > is not able to read /tmp/bpf.awk. Yes, I can write. It is not the problem, since the generated code from the awk file is OK. > > > I printed the full commands that returns the error, it is: > > > > ngctl msg setprogram { thisHook="" ifMatch="" ifNotMatch="" > > bpf_prog_len=8 bpf_prog=[ { code=32 jt=0 jf=0 k=40 } { code=21 jt=0 > > jf=5 k=323901508 } { code=32 jt=0 jf=0 k=44 } { code=21 jt=0 jf=3 > > k=1869439337 } { code=32 jt=0 jf=0 k=48 } { code=21 jt=0 jf=1 k=28170 > > } { code=6 jt=0 jf=0 k=8192 } { code=6 jt=0 jf=0 k=0 } ] } } > > > > i suspect this is what the contents of /tmp/bpf.awk are. if not maybe > post that to the thread.... No, this is the out from echo ngctl msg ${NODEPATH} setprogram { thisHook=\"${INHOOK}\" ifMatch=\"${MATCHHOOK}\" ifNotMatch=\"${NOTMATCHHOOK}\" ${BPFPROG} } } I added the echo command to see how it is getting executed. So I have the echo and on the next line the command itself. Note that this was just copied/pasted from the man page, with the exception of the PATTERN. -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br