mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-21 20:14:56 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ee24cd1ac1 | ||
![]() |
71812a2053 | ||
![]() |
31e4e18998 | ||
![]() |
9fb2ffe1d3 |
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
AC_INIT([xtables-addons], [1.16])
|
AC_INIT([xtables-addons], [1.17])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
@@ -1,5 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
Xtables-addons 1.17 (June 16 2009)
|
||||||
|
==================================
|
||||||
|
- IPMARK: print missing --shift parameter
|
||||||
|
- build: use readlink -f in extensions/ipset/
|
||||||
|
- build: support for Linux 2.6.30
|
||||||
|
|
||||||
|
|
||||||
Xtables-addons 1.16 (May 27 2009)
|
Xtables-addons 1.16 (May 27 2009)
|
||||||
=================================
|
=================================
|
||||||
- RAWNAT: make iptable_rawpost compile with 2.6.30-rc5
|
- RAWNAT: make iptable_rawpost compile with 2.6.30-rc5
|
||||||
|
@@ -3,8 +3,8 @@
|
|||||||
top_srcdir := @top_srcdir@
|
top_srcdir := @top_srcdir@
|
||||||
srcdir := @srcdir@
|
srcdir := @srcdir@
|
||||||
datarootdir := @datarootdir@
|
datarootdir := @datarootdir@
|
||||||
abstop_srcdir := $(shell readlink -e ${top_srcdir})
|
abstop_srcdir := $(shell readlink -f ${top_srcdir})
|
||||||
abssrcdir := $(shell readlink -e ${srcdir})
|
abssrcdir := $(shell readlink -f ${srcdir})
|
||||||
|
|
||||||
ifeq (${abstop_srcdir},)
|
ifeq (${abstop_srcdir},)
|
||||||
$(error Path resolution of ${top_srcdir} failed)
|
$(error Path resolution of ${top_srcdir} failed)
|
||||||
|
@@ -97,6 +97,7 @@ static int ipmark_tg_parse(int c, char **argv, int invert, unsigned int *flags,
|
|||||||
if (!xtables_strtoui(optarg, NULL, &n, 0, 128))
|
if (!xtables_strtoui(optarg, NULL, &n, 0, 128))
|
||||||
xtables_param_act(XTF_BAD_VALUE, "IPMARK", "--shift", optarg);
|
xtables_param_act(XTF_BAD_VALUE, "IPMARK", "--shift", optarg);
|
||||||
info->shift = n;
|
info->shift = n;
|
||||||
|
*flags |= FL_SHIFT;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,14 +118,16 @@ ipmark_tg_print(const void *entry, const struct xt_entry_target *target,
|
|||||||
const struct xt_ipmark_tginfo *info = (const void *)target->data;
|
const struct xt_ipmark_tginfo *info = (const void *)target->data;
|
||||||
|
|
||||||
if (info->selector == XT_IPMARK_SRC)
|
if (info->selector == XT_IPMARK_SRC)
|
||||||
printf("IPMARK src ip");
|
printf("IPMARK src ip ");
|
||||||
else
|
else
|
||||||
printf("IPMARK dst ip");
|
printf("IPMARK dst ip ");
|
||||||
|
|
||||||
|
if (info->shift != 0)
|
||||||
|
printf("shift %u ", (unsigned int)info->shift);
|
||||||
if (info->andmask != ~0U)
|
if (info->andmask != ~0U)
|
||||||
printf(" and 0x%x ", (unsigned int)info->andmask);
|
printf("and 0x%x ", (unsigned int)info->andmask);
|
||||||
if (info->ormask != 0)
|
if (info->ormask != 0)
|
||||||
printf(" or 0x%x ", (unsigned int)info->ormask);
|
printf("or 0x%x ", (unsigned int)info->ormask);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -137,6 +140,8 @@ ipmark_tg_save(const void *entry, const struct xt_entry_target *target)
|
|||||||
else
|
else
|
||||||
printf("--addr dst ");
|
printf("--addr dst ");
|
||||||
|
|
||||||
|
if (info->shift != 0)
|
||||||
|
printf("--shift %u ", (unsigned int)info->shift);
|
||||||
if (info->andmask != ~0U)
|
if (info->andmask != ~0U)
|
||||||
printf("--and-mask 0x%x ", (unsigned int)info->andmask);
|
printf("--and-mask 0x%x ", (unsigned int)info->andmask);
|
||||||
if (info->ormask != 0)
|
if (info->ormask != 0)
|
||||||
|
@@ -104,7 +104,9 @@ static struct quota_counter *q2_get_counter(const struct xt_quota_mtinfo2 *q)
|
|||||||
if (p == NULL || IS_ERR(p))
|
if (p == NULL || IS_ERR(p))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 29)
|
||||||
p->owner = THIS_MODULE;
|
p->owner = THIS_MODULE;
|
||||||
|
#endif
|
||||||
p->data = e;
|
p->data = e;
|
||||||
p->read_proc = quota_proc_read;
|
p->read_proc = quota_proc_read;
|
||||||
p->write_proc = quota_proc_write;
|
p->write_proc = quota_proc_write;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.TH xtables\-addons 8 "v1.16 (2009\-05\-27)" "" "v1.16 (2009\-05\-27)"
|
.TH xtables\-addons 8 "v1.17 (2009\-06\-16)" "" "v1.17 (2009\-06\-16)"
|
||||||
.SH Name
|
.SH Name
|
||||||
Xtables\-addons - additional extensions for iptables, ip6tables, etc.
|
Xtables\-addons - additional extensions for iptables, ip6tables, etc.
|
||||||
.SH Targets
|
.SH Targets
|
||||||
|
Reference in New Issue
Block a user