Compare commits

..

4 Commits
v1.16 ... v1.17

Author SHA1 Message Date
Jan Engelhardt
ee24cd1ac1 Xtables-addons 1.17 2009-06-16 16:25:53 +02:00
kd6lvw
71812a2053 build: support for Linux 2.6.30
Fix a compile error with xt_quota2. Linux kernel commit
v2.6.29-7544-g3ba113d removed the "owner" member.
2009-06-12 03:41:00 +02:00
kd6lvw
31e4e18998 build: use readlink -f in extensions/ipset/
Supplement to v1.5.7-5-gf373750.
2009-06-12 03:37:18 +02:00
Marek Michalkiewicz
9fb2ffe1d3 IPMARK: print missing --shift parameter 2009-06-12 03:33:54 +02:00
6 changed files with 22 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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;
} }
@@ -121,6 +122,8 @@ ipmark_tg_print(const void *entry, const struct xt_entry_target *target,
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)
@@ -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)

View File

@@ -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;

View File

@@ -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