From owner-freebsd-ipfw@FreeBSD.ORG Mon Mar 10 02:11:12 2008 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 863EA1065674 for ; Mon, 10 Mar 2008 02:11:12 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id 4134D8FC17 for ; Mon, 10 Mar 2008 02:11:11 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so507560anc.13 for ; Sun, 09 Mar 2008 19:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:reply-to:organization:user-agent:mime-version:to:cc:subject:x-enigmail-version:openpgp:content-type:from; bh=IBCMiAUw+i4PVibkcU7uR0St+TKIhY+GxLYtmJjkUtc=; b=MKDR9Jf3Qou2R16815N4MGOpK/4x8/bN/pwYY4w6vXwiwMLDIMiwuJNYexyrT397UoeH6SLsljZcXA75qlY2R5Pv1Br611I9XxiiWGAICylGI93kUj8Zrf/su+XOeOO8EilzuykbzRpjl/9Rll6s/GysU5W+ys/fZqds2kQLwKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:reply-to:organization:user-agent:mime-version:to:cc:subject:x-enigmail-version:openpgp:content-type:from; b=jI5BthKI3PDP49KK27XNBtoXS6Y5gQPx2xqjt/vyC5fcaaxFTyH+j1WKEZCH8cjpmvoFpD9nOv460qXqIwlC1E9wpBr+SLkeb+Of08Ta7Z9FXII0iewDXinJdwlD5JmZYdQQEzh7C/PKDB6Ldwxa3QySwebrOXjsvrk1epYCngE= Received: by 10.100.173.18 with SMTP id v18mr9875668ane.101.1205115071344; Sun, 09 Mar 2008 19:11:11 -0700 (PDT) Received: from island.freebsd.org ( [201.47.46.197]) by mx.google.com with ESMTPS id b32sm12838499ana.33.2008.03.09.19.11.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Mar 2008 19:11:10 -0700 (PDT) Message-ID: <47D498BD.9060702@FreeBSD.org> Date: Sun, 09 Mar 2008 23:11:09 -0300 Organization: FreeBSD User-Agent: Thunderbird 2.0.0.0 (X11/20070521) MIME-Version: 1.0 To: "Andrey V. Elsukov" X-Enigmail-Version: 0.95.0 OpenPGP: id=53E4CFA8 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9F6A38EB869DB60F4788D144" From: Marcelo Araujo Cc: stas@mbsd.msk.ru, Luigi Rizzo , novel@FreeBSD.org, Oleg Bulyzhin , freebsd-ipfw@freebsd.org, Julian Elischer , Ion-Mihai Tetcu , "Bruce M. Simpson" Subject: ipfw modip X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: araujo@FreeBSD.org List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 02:11:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9F6A38EB869DB60F4788D144 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, In this weekend I worked again in modip function and I added the patchs sent by novel@, but I've a some doubt around an error. When I add within ip_fw.h: 162 O_TAGGED, /* arg1=3Dtag number */ 163 164 O_SET_IPDF, 165 O_SETIPTOSPRE, The O_SET_IPDF running right, but O_SETIPTOSPRE no as below: island# ipfw add modip df:0 ip from any to any 65100 setdf 0 ip from any to any island# ipfw add modip ippre:flash ip from any to any ipfw: getsockopt(IP_FW_ADD): Invalid argument island# When I change the sequence and put the O_IPTOSPRE in first location within ip_fw.h: 162 O_TAGGED, /* arg1=3Dtag number */ 163 164 O_SETIPTOSPRE, 165 O_SET_IPDF, island# ipfw add modip ippre:flash ip from any to any 65300 iptospre flash ip from any to any island# ipfw add modip df:0 ip from any to any ipfw: getsockopt(IP_FW_ADD): Invalid argument Somebody can close look and point where I did an error. The patch are at: http://people.freebsd.org/~araujo/logs/modip.diff Best Regards, --=20 Marcelo Araujo (__) araujo@FreeBSD.org \\\'',) http://www.FreeBSD.org \/ \ ^ Power To Server. .\. /_) --------------enig9F6A38EB869DB60F4788D144 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFH1JjEovxJd1Pkz6gRApeIAJ9b+59aIhIcWwMZK+4WfohH/ltOEwCeL/pL vG9xZk6D8zoPVxQqONitXeo= =qnYK -----END PGP SIGNATURE----- --------------enig9F6A38EB869DB60F4788D144--