* conntrackd: fix IPv6 address pattern
@ 2013-03-19 14:36 Roman Hoog Antink
2013-03-20 14:53 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Roman Hoog Antink @ 2013-03-19 14:36 UTC (permalink / raw)
To: netfilter
[-- Attachment #1: Type: text/plain, Size: 116 bytes --]
Hi
Please consider accepting the following patch that fixes an IPv6 address
pattern in the lexical parser.
-Roman
[-- Attachment #2: ipv6-conntrackd.patch --]
[-- Type: text/x-patch, Size: 1170 bytes --]
commit 747bb23944cca2e6927f05f60fc6fba70e187ca0
Author: James Guthrie <jag@open.ch>
Date: Tue Mar 19 15:12:35 2013 +0100
conntrackd: fix IPv6 address pattern
The conntrackd configuration allows for IPv6 addresses to be specified that
should be ignored (connections for which should not be synchronised). The
Conntrackd config accepts two forms of IPv6 address:
1: fe80::1
2: fe80:0:0:0:0:0:0:1
This patch fixes the lexical parser for form 2.
Signed-off-by: Roman Hoog Antink <rha@open.ch>
diff --git a/src/read_config_lex.l b/src/read_config_lex.l
index bec2d81..b4d11d4 100644
--- a/src/read_config_lex.l
+++ b/src/read_config_lex.l
@@ -44,8 +44,8 @@ ip4 {ip4_part}\.{ip4_part}\.{ip4_part}\.{ip4_part}{ip4_cidr}?
hex_255 [0-9a-fA-F]{1,4}
ip6_cidr \/[0-1]*[0-9]*[0-9]+
ip6_part {hex_255}":"?
-ip6_form1 {ip6_part}{0,16}"::"{ip6_part}{0,16}
-ip6_form2 ({hex_255}":"){16}{hex_255}
+ip6_form1 {ip6_part}{0,7}"::"{ip6_part}{0,7}
+ip6_form2 ({hex_255}":"){0,7}{hex_255}
ip6 {ip6_form1}{ip6_cidr}?|{ip6_form2}{ip6_cidr}?
string [a-zA-Z][a-zA-Z0-9\.\-]*
persistent [P|p][E|e][R|r][S|s][I|i][S|s][T|t][E|e][N|n][T|T]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: conntrackd: fix IPv6 address pattern
2013-03-19 14:36 conntrackd: fix IPv6 address pattern Roman Hoog Antink
@ 2013-03-20 14:53 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2013-03-20 14:53 UTC (permalink / raw)
To: Roman Hoog Antink; +Cc: netfilter, Netfilter Development Mailing list
Hi Roman,
On Tue, Mar 19, 2013 at 03:36:18PM +0100, Roman Hoog Antink wrote:
> Hi
>
> Please consider accepting the following patch that fixes an IPv6 address
> pattern in the lexical parser.
Applied, thanks.
BTW, please, next time post your patch to netfilter-devel ML. That
should help to make sure the patch hits mainstream.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-20 14:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 14:36 conntrackd: fix IPv6 address pattern Roman Hoog Antink
2013-03-20 14:53 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox