Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Mar 2008 23:11:09 -0300
From:      Marcelo Araujo <araujobsdport@gmail.com>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        stas@mbsd.msk.ru, Luigi Rizzo <rizzo@icir.org>, novel@FreeBSD.org, Oleg Bulyzhin <oleg@FreeBSD.org>, freebsd-ipfw@freebsd.org, Julian Elischer <julian@elischer.org>, Ion-Mihai Tetcu <itetcu@FreeBSD.org>, "Bruce M. Simpson" <bms@FreeBSD.org>
Subject:   ipfw modip
Message-ID:  <47D498BD.9060702@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47D498BD.9060702>