chnage source of IPFW

Andrey V. Elsukov bu7cher at yandex.ru
Mon Jun 1 13:32:23 UTC 2015


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ipfw/attachments/20150601/768a997b/attachment.sig>


More information about the freebsd-ipfw mailing list