From owner-freebsd-ipfw@FreeBSD.ORG Mon Jun 1 09:53:36 2015 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B1B675B3 for ; Mon, 1 Jun 2015 09:53:36 +0000 (UTC) (envelope-from nazari.s11@gmail.com) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1.freebsd.org (Postfix) with ESMTP id 9E62F1040 for ; Mon, 1 Jun 2015 09:53:36 +0000 (UTC) (envelope-from nazari.s11@gmail.com) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 95B88DF2447 for ; Mon, 1 Jun 2015 02:44:27 -0700 (PDT) Date: Mon, 1 Jun 2015 02:44:27 -0700 (MST) From: samira To: freebsd-ipfw@freebsd.org Message-ID: <1433151867517-6015918.post@n5.nabble.com> Subject: chnage source of IPFW MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 09:53:36 -0000 Hello every one, I want to add a parameter in commands for ipfw, like " ipfw add allow udp from any to any *udpdatalen 10 * ". I changes in /usr/src/sbin/ipfw/ipfw2.c like tcpdatalen option and now i have udpdatalen command correctly in cli, but when i add argument(10) this error occurred. " *ipfw: getsockopt(IP_FW_ADD): Invalid argument* " also I define variables in /usr/src/sys/netinet/ip_fw.h and change .c files in /usr/src/sys/net pfil/ and build kernel and did not changed that error. Thank you for all of your comments and help. -- View this message in context: http://freebsd.1045724.n5.nabble.com/chnage-source-of-IPFW-tp6015918.html Sent from the freebsd-ipfw mailing list archive at Nabble.com.