mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
xt_quota2: minor fixes, merge into main config files
This commit is contained in:
@@ -16,6 +16,7 @@ obj-${build_condition} += xt_condition.o
|
|||||||
obj-${build_geoip} += xt_geoip.o
|
obj-${build_geoip} += xt_geoip.o
|
||||||
obj-${build_ipp2p} += xt_ipp2p.o
|
obj-${build_ipp2p} += xt_ipp2p.o
|
||||||
obj-${build_portscan} += xt_portscan.o
|
obj-${build_portscan} += xt_portscan.o
|
||||||
|
obj-${build_quota2} += xt_quota2.o
|
||||||
|
|
||||||
-include ${M}/*.Kbuild
|
-include ${M}/*.Kbuild
|
||||||
-include ${M}/Kbuild.*
|
-include ${M}/Kbuild.*
|
||||||
|
@@ -9,3 +9,4 @@ obj-${build_condition} += libxt_condition.so
|
|||||||
obj-${build_geoip} += libxt_geoip.so
|
obj-${build_geoip} += libxt_geoip.so
|
||||||
obj-${build_ipp2p} += libxt_ipp2p.so
|
obj-${build_ipp2p} += libxt_ipp2p.so
|
||||||
obj-${build_portscan} += libxt_portscan.so
|
obj-${build_portscan} += libxt_portscan.so
|
||||||
|
obj-${build_quota2} += libxt_quota2.so
|
||||||
|
@@ -23,7 +23,7 @@ static const struct option quota_mt2_opts[] = {
|
|||||||
{.name = "grow", .has_arg = false, .val = 'g'},
|
{.name = "grow", .has_arg = false, .val = 'g'},
|
||||||
{.name = "name", .has_arg = true, .val = 'n'},
|
{.name = "name", .has_arg = true, .val = 'n'},
|
||||||
{.name = "quota", .has_arg = true, .val = 'q'},
|
{.name = "quota", .has_arg = true, .val = 'q'},
|
||||||
{.name = "packets", .has_arg = true, .val = 'p'},
|
{.name = "packets", .has_arg = false, .val = 'p'},
|
||||||
{NULL},
|
{NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ quota_mt2_parse(int c, char **argv, int invert, unsigned int *flags,
|
|||||||
*flags |= FL_NAME;
|
*flags |= FL_NAME;
|
||||||
return true;
|
return true;
|
||||||
case 'p':
|
case 'p':
|
||||||
param_act(P_ONLY_ONCE, "quota", "--packets", *flags & FL_PACKETS);
|
param_act(P_ONLY_ONCE, "quota", "--packets", *flags & FL_PACKET);
|
||||||
param_act(P_NO_INVERT, "quota", "--packets", invert);
|
param_act(P_NO_INVERT, "quota", "--packets", invert);
|
||||||
info->flags |= XT_QUOTA_PACKET;
|
info->flags |= XT_QUOTA_PACKET;
|
||||||
*flags |= FL_PACKET;
|
*flags |= FL_PACKET;
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
# -*- Makefile -*-
|
|
||||||
|
|
||||||
obj-${build_quota2} += xt_quota2.o
|
|
@@ -1,3 +0,0 @@
|
|||||||
# -*- Makefile -*-
|
|
||||||
|
|
||||||
obj-${build_quota2} += libxt_quota2.so
|
|
1
mconfig
1
mconfig
@@ -11,3 +11,4 @@ build_condition=m
|
|||||||
build_geoip=m
|
build_geoip=m
|
||||||
build_ipp2p=m
|
build_ipp2p=m
|
||||||
build_portscan=m
|
build_portscan=m
|
||||||
|
build_quota2=m
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
# -*- Makefile -*-
|
|
||||||
|
|
||||||
build_quota2=m
|
|
Reference in New Issue
Block a user