Skip to contentSkip to conversation

: fixes for ip6t_eui64

PATCH In review Yasuyuki Kozakai 1 participant 1 message Dec 1, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/10 : fixes for ip6t_eui64

According to report from Peter, user cannot insert rule with eui64 match to FORWARD chain.

From: [email protected]
Date: Sat, 09 Oct 2004 18:09:59 +0200

Quoted 27 lines

Could you fix this problem in the next patch, please? There is a wrong condition at the loading :(

Thank you in advance,

Andras

From: Peter Ivancik <[email protected]>
Date: Sat, 09 Oct 2004 17:37:45 +0200

Quoted 18 lines

Hi again,

it looks, that there's problem in source code of ip6t_eui64.c file. (linux/net/ipv6/netfilter/ip6t_eui64.c).
There's twice deffined PRE_ROUTING table and isn't there FORWARD table. This is diff between original and modified version:
61c61

 <               (1 << NF_IP6_PRE_ROUTING) )) {
   ---
Quoted 1 line
              (1 << NF_IP6_FORWARD) )) {

I'm not sure, if I'm right, but it works for me good now :) Bye.

Peter

-----------------------------------------------------------------
Yasuyuki KOZAKAI @ USAGI Project <[email protected]>

./net/ipv6/netfilter/ip6t_eui64.c +1 -1
@@ -58,7 +58,7 @@ ip6t_eui64_checkentry(const char *tablen
 {
 	if (hook_mask
 	    & ~((1 << NF_IP6_PRE_ROUTING) | (1 << NF_IP6_LOCAL_IN) |
-		(1 << NF_IP6_PRE_ROUTING) )) {
+		(1 << NF_IP6_FORWARD))) {
 		printk("ip6t_eui64: only valid for PRE_ROUTING, LOCAL_IN or FORWARD.\n");
 		return 0;
 	}