From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 3 09:47:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81B3C16A4DE for ; Wed, 3 Mar 2004 09:47:44 -0800 (PST) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FF9D43D39 for ; Wed, 3 Mar 2004 09:47:44 -0800 (PST) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i23Hlh9Q026811; Wed, 3 Mar 2004 09:47:43 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i23HlhcG026810; Wed, 3 Mar 2004 09:47:43 -0800 (PST) (envelope-from rizzo) Date: Wed, 3 Mar 2004 09:47:42 -0800 From: Luigi Rizzo To: Matt Message-ID: <20040303094742.C26257@xorpc.icir.org> References: <20040303073706.GB29286@IneedAname.eviloverlord.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20040303073706.GB29286@IneedAname.eviloverlord.org>; from mgoward@eviloverlord.org on Wed, Mar 03, 2004 at 07:37:06AM +0000 cc: freebsd-hackers@freebsd.org Subject: Re: Adding an IPFW rule from C program X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 17:47:44 -0000 On Wed, Mar 03, 2004 at 07:37:06AM +0000, Matt wrote: > Tried this on the ipfw list but didnt get any response. > > Part of an app I am playing with needs to be able to add an ipfw > rule. I had though i got all of what i need from ipfw2.c and ip_fw.h > but I am painfully new to C and must be missing something. Not you don't want to use the native APi, do a system("ipfw add ...") instead. cheers luigi