From: "Andriy T. Yanko" Subject: how to fill ipt_entry for simple rule Date: Wed, 9 Jul 2003 17:02:43 +0300 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20030709170243.56d3b3ee.wireless@wireless.org.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org Hi I'd like create a simple rule for INPUT chain with my progam wich use libiptc like it do iptables progam: iptables -A INPUT -s 192.168.1.1 - j ACCEPT Please tell me how I must fill ipt_entry for this simple example? --------------------------------------------------------------- ... iptc_handle_t h; const struct ipt_entry e; h=iptc_init("filter"); /* now must fill struct e, but how? */ iptc_append_entry("INPUT",&e,&h); iptc_commit(&h); ... --------------------------------------------------------------- -- Andriy T. Yanko wireless@wireless.org.ua * Avoid The Gates of Hell use Linux ** Wenn ich sterbe, legt mir eine Birne in mein Grab ...