From owner-freebsd-ipfw@FreeBSD.ORG Mon Jun 1 13:32:23 2015 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76033D99 for ; Mon, 1 Jun 2015 13:32:23 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward8l.mail.yandex.net (forward8l.mail.yandex.net [IPv6:2a02:6b8:0:1819::8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 306FD181D for ; Mon, 1 Jun 2015 13:32:23 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [IPv6:2a02:6b8:0:f05::116]) by forward8l.mail.yandex.net (Yandex) with ESMTP id 631E31A412E7; Mon, 1 Jun 2015 16:32:20 +0300 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id CE7B71706E50; Mon, 1 Jun 2015 16:32:19 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:6::a8]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id tmXUCti3l6-WJCqpx5u; Mon, 1 Jun 2015 16:32:19 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1433165539; bh=7ATczC9RSjYxpXZuJC52kCxTY2sQCTJ9vi765Ntl/fA=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type; b=uGd+MUvXMzf6mTpbNtVsRHJMNJpHX7t8n0CnCAbfyCiu8EdOek7u9MHi3y8ArpeN1 +7Yb4sTfULOY9lX+bxMZ8lznnz2mPeGBa6q86IJQ+pWGex8/Bq+fs3Zb8pOEi+tVkK muHsfRe3jzuCBV/n4LkWKNpILrSW3y8cFdbCYEiQ= Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <556C5E5E.1040601@yandex.ru> Date: Mon, 01 Jun 2015 16:30:06 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: samira , freebsd-ipfw@freebsd.org Subject: Re: chnage source of IPFW References: <1433151867517-6015918.post@n5.nabble.com> In-Reply-To: <1433151867517-6015918.post@n5.nabble.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nCiqHs4vXOt9vFR8MKMbMRhm0R4H1isof" 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 13:32:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nCiqHs4vXOt9vFR8MKMbMRhm0R4H1isof Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 01.06.2015 12:44, samira wrote: > Hello every one, > I want to add a parameter in commands for ipfw, like " ipfw add allow = udp > from any to any *udpdatalen 10 * ". >=20 > 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) t= his > error occurred. > " *ipfw: getsockopt(IP_FW_ADD): Invalid argument* " >=20 > also I define variables in /usr/src/sys/netinet/ip_fw.h and change .c f= iles > in /usr/src/sys/net pfil/ and build kernel and did not changed that err= or. >=20 > Thank you for all of your comments and help. Probably, you need to modify ip_fw_sockopt.c:check_ipfw_rule_body() function. --=20 WBR, Andrey V. Elsukov --nCiqHs4vXOt9vFR8MKMbMRhm0R4H1isof Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVbF5fAAoJEAHF6gQQyKF6abMH/32R/HDry/nWf1JokSiG1EnH IVityiHofqrcpGtEkimk+r0eIv+KHKjjdeKszPBw59H6MeVYWa6WsYrNZzfifFXJ XiY/yv+PZlKhTo7SwrJxkngXtjpvn1qGe9jOOt8CbdM6h9tCe4Bh+mxE8c3BmUYq RGKzp5Bh51nh12/eQT2Pmrd3S1n2BMMjY6lIJ2zq/XDSt9Fy0yp+xvA6mAqZbkpm hxUQsa0gDlvjz8w6rVdfcdEQfKOFUeN1/hqmFCGahkSCBuiX1erxsidnpbLSRFUP EDPoeypsgXMB1hFnq39sG12zgovx7nqqW0F0d2OmThY9Y1u8+rnSeG/161bUJVw= =Kq10 -----END PGP SIGNATURE----- --nCiqHs4vXOt9vFR8MKMbMRhm0R4H1isof--