Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jun 2015 16:30:06 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        samira <nazari.s11@gmail.com>, freebsd-ipfw@freebsd.org
Subject:   Re: chnage source of IPFW
Message-ID:  <556C5E5E.1040601@yandex.ru>
In-Reply-To: <1433151867517-6015918.post@n5.nabble.com>
References:  <1433151867517-6015918.post@n5.nabble.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?556C5E5E.1040601>