Bump max rule size to 512 opcodes.

This commit is contained in:
Alexander V. Chernikov 2014-10-04 12:46:26 +00:00
parent d19c297e5f
commit e3cadfdb32

View File

@ -940,7 +940,7 @@ ipfw_getrules(struct ip_fw_chain *chain, void *buf, size_t space)
int
ipfw_ctl(struct sockopt *sopt)
{
#define RULE_MAXSIZE (256*sizeof(u_int32_t))
#define RULE_MAXSIZE (512*sizeof(u_int32_t))
int error;
size_t size, len, valsize;
struct ip_fw *buf, *rule;