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
[-- Attachment #1 --] 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 * ". > > 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. Probably, you need to modify ip_fw_sockopt.c:check_ipfw_rule_body() function. -- WBR, Andrey V. Elsukov [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?556C5E5E.1040601>
