From: Tom Eastep <teastep@shorewall.net>
To: netfilter-devel@lists.netfilter.org
Cc: kadlec@blackhole.kfki.hu
Subject: [PATCH] IPSET parsing buglet
Date: Fri, 06 May 2005 09:19:34 -0700 [thread overview]
Message-ID: <427B9916.7060305@shorewall.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
gateway:/etc/test# ipset -R < ipsets
ipset v2.2.1: Missing cidr from `218.85.95.0/24'
Try `ipset -H' or 'ipset --help' for more information.
gateway:/etc/test#
The 'ipsets' file contains:
# Generated by ipset 2.2.1 on Fri May 6 07:05:09 2005
-N SMTP portmap --from 1 --to 31
-A SMTP 25
-N Blacklistnets nethash --hashsize 1024 --probes 2 --resize 50
-A Blacklistnets 218.85.95.0/24
-B Blacklistnets 218.85.95.0/24 -b SMTP
COMMIT
# Completed on Fri May 6 07:05:09 2005
The error is occurring on the -B command.
The attached patch corrects the problem.
-Tom
--
Tom Eastep \ Nothing is foolproof to a sufficiently talented fool
Shoreline, \ http://shorewall.net
Washington USA \ teastep@shorewall.net
PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
[-- Attachment #2: parsebug.diff --]
[-- Type: text/x-patch, Size: 328 bytes --]
--- ../ipset.jk/ipset_nethash.c 2005-04-17 21:07:12.000000000 -0700
+++ ipset_nethash.c 2005-05-06 09:15:57.000000000 -0700
@@ -296,7 +296,7 @@
static void parse_net(const char *str, ip_set_ip_t *ip)
{
char *saved = strdup(str);
- char *ptr, *tmp;
+ char *ptr, *tmp = saved;
ip_set_ip_t cidr;
ptr = strsep(&tmp, "/");
next reply other threads:[~2005-05-06 16:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-06 16:19 Tom Eastep [this message]
2005-05-09 6:39 ` [PATCH] IPSET parsing buglet Jozsef Kadlecsik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=427B9916.7060305@shorewall.net \
--to=teastep@shorewall.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.