Re: [PATCH] [XFRM] Add CONFIG_INET dependency to CONFIG_XFRM_STATISTICS

2008-02-15 Thread Masahide NAKAMURA
`xfrm_init': (.init.text+0xcd7): undefined reference to `snmp_mib_init' Signed-off-by: Johann Felix Soden [EMAIL PROTECTED] CC: Masahide NAKAMURA [EMAIL PROTECTED] A fix for this has been in my net-2.6 tree for a few days, and Linus pulled it in this morning. Thank you guys for taking care

[PATCH][XFRM]: Fix statistics.

2008-01-30 Thread Masahide NAKAMURA
to XfrmInStateMismatch. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- Documentation/networking/xfrm_proc.txt |8 ++-- include/linux/snmp.h |3 ++- net/xfrm/xfrm_input.c |4 ++-- net/xfrm/xfrm_output.c |1 + net/xfrm

[PATCH][XFRM] Statistics: Add outbound-dropping error.

2008-01-07 Thread Masahide NAKAMURA
: Add outbound-dropping error. o Increment PolError counter when flow_cache_lookup() returns errored pointer. o Increment NoStates counter at larval-drop. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/xfrm/xfrm_policy.c |5 - 1 files changed, 4 insertions(+), 1 deletions

[XFRM]: Fix outbound statistics.

2007-12-21 Thread Masahide NAKAMURA
David, I failed to include this statistics codes since I didn't notice the conflict with the latest Herbert XFRM fix. Please apply this, too. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/xfrm/xfrm_output.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff

[XFRM]: Fix outbound statistics.

2007-12-21 Thread Masahide NAKAMURA
Hello David, I'm sorry, the previous mail contains wrong code: David, I failed to include this statistics codes since I didn't notice the conflict with the latest Herbert XFRM fix. Please apply this, too. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- [snip] do

[no subject]

2007-12-21 Thread Masahide NAKAMURA
Subject: [XFRM] Documentaion: Fix error example at XFRMOUTSTATEMODEERROR. (Re: [XFRM]: Fix outbound statistics.) Hello, On Fri, 21 Dec 2007 23:11:11 +0800 Herbert Xu [EMAIL PROTECTED] wrote: On Fri, Dec 21, 2007 at 11:25:00PM +0900, Masahide NAKAMURA wrote: do { err

[PATCH 3/3] [XFRM]: Add packet processing statistics option.

2007-12-20 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/xfrm/Kconfig | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig index 577a4f8..6b5b50f 100644 --- a/net/xfrm/Kconfig +++ b/net/xfrm/Kconfig @@ -35,6 +35,16 @@ config

[PATCH] [XFRM] IPv6: Fix dst/routing check at transformation.

2007-12-20 Thread Masahide NAKAMURA
is for non-fragment transformation used by MIPv6 to rt6i_nfheader_len as IPv6 name space. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- include/net/ip6_fib.h |2 +- include/net/xfrm.h |3 +++ net/ipv4/xfrm4_policy.c |7 +++ net/ipv6/ip6_output.c |4 ++-- net/ipv6

[PATCH] [XFRM] MIPv6: Fix to input RO state correctly.

2007-12-20 Thread Masahide NAKAMURA
Disable spin_lock during xfrm_type.input() function. Follow design as IPsec inbound does. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv6/xfrm6_input.c | 54 +-- 1 files changed, 29 insertions(+), 25 deletions(-) diff --git a/net

[PATCH 1/3] [XFRM]: Define packet dropping statistics.

2007-12-20 Thread Masahide NAKAMURA
This statistics is shown factor dropped by transformation at /proc/net/xfrm_stat for developer. It is a counter designed from current transformation source code and defined as linux private MIB. See Documentation/networking/xfrm_proc.txt for the detail. Signed-off-by: Masahide NAKAMURA [EMAIL

[PATCH 2/3] [XFRM]: Support to increment packet dropping statistics.

2007-12-20 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv6/xfrm6_input.c |3 ++ net/xfrm/xfrm_input.c | 41 +++--- net/xfrm/xfrm_output.c |6 - net/xfrm/xfrm_policy.c | 63 ++- 4 files changed, 90 insertions

Re: [PATCH] [XFRM] IPv6: Fix dst/routing check at transformation.

2007-12-20 Thread Masahide NAKAMURA
Friday 21 December 2007 12:50, David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Fri, 21 Dec 2007 12:48:31 +0900 My 5 patches for XFRM sent to netdev should be TOed to David, but it is not. It does not seems that the command works for me. git-send-email --to David S

Re: (usagi-core 34097) Re: [PATCH] [XFRM] IPv6: Fix dst/routing check at transformation.

2007-12-20 Thread Masahide NAKAMURA
Friday 21 December 2007 14:06, Masahide NAKAMURA wrote: Thanks, I'll resend by hand this time. Mayby I use your e-mail address without name by current git-send-email. Ah, they are already applied. I don't need resend anymore. I'll be careful this next time. Regards, -- Masahide NAKAMURA

Re: [PATCH 6/7] [IPSEC]: Lock state when copying non-atomic fields to user-space

2007-11-27 Thread Masahide NAKAMURA
to remove the newly added locks which should be just as effective. This would reduce the churn in the code as we'd be putting most of it back soon anyway. With the patch you sent, the xfrm_state_walk() issue I reported is solved at current net-2.6.25. -- Masahide NAKAMURA - To unsubscribe from

Re: [PATCH 6/7] [IPSEC]: Lock state when copying non-atomic fields to user-space

2007-11-25 Thread Masahide NAKAMURA
(copy_to_user_state_extra). Regards, -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC][PATCH 0/3][XFRM]: Support packet processing error statistics.

2007-10-25 Thread Masahide NAKAMURA
Wednesday 24 October 2007 21:18, jamal wrote: On Wed, 2007-24-10 at 12:30 +0900, Masahide NAKAMURA wrote: At IPsec point of view, actually SPI mismatch caused by user configuration cannot be identified easily since identify of SAD is consist of SPI, address and protocol(ESP/AH

Re: [RFC][PATCH 0/3][XFRM]: Support packet processing error statistics.

2007-10-23 Thread Masahide NAKAMURA
Monday 22 October 2007 21:28, jamal wrote: On Mon, 2007-22-10 at 15:11 +0900, Masahide NAKAMURA wrote: This patch introduces statistics about transformation error (or almost error) factor at packet processing for developer. It is not a SNMP/MIB specification from IPsec/MIPv6

Re: [RFC][PATCH 0/3][XFRM]: Support packet processing error statistics.

2007-10-23 Thread Masahide NAKAMURA
Wednesday 24 October 2007 04:47, jamal wrote: On Tue, 2007-23-10 at 16:08 +0900, Masahide NAKAMURA wrote: Thanks. I would like you to find too much item at my patch for the statistics, too. I am not anywhere close to a machine where i can give you precise details to this; the one thing

[RFC][PATCH 0/3][XFRM]: Support packet processing error statistics.

2007-10-22 Thread Masahide NAKAMURA
This patch introduces statistics about transformation error (or almost error) factor at packet processing for developer. It is not a SNMP/MIB specification from IPsec/MIPv6 but a counter designed from current transformation source code. Comment please. - To unsubscribe from this list: send the

[PATCH] [IPSEC] IPV6: Fix to add tunnel mode SA correctly.

2007-10-22 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv6/ah6.c |1 + net/ipv6/esp6.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 67cd066..66a9139 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c @@ -483,6 +483,7

[RFC][PATCH 2/3][XFRM]: Support to increment packet processing statistics.

2007-10-22 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv4/xfrm4_input.c | 48 +++- net/ipv4/xfrm4_output.c |4 ++- net/ipv6/xfrm6_input.c | 56 -- net/ipv6/xfrm6_output.c |4 ++- net/xfrm/xfrm_output.c

[RFC][PATCH 1/3][XFRM]: Define packet processing statistics.

2007-10-22 Thread Masahide NAKAMURA
XfrmOutStateProtoError- error at transformation protocol XfrmOutStateModeError - error at transformation mode XfrmOutStateExpired - state expired XfrmOutPolBlock - policy discards XfrmOutPolError - policy error Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- include

[RFC][PATCH 3/3][XFRM]: Add packet processing statistics option.

2007-10-22 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/xfrm/Kconfig | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig index 577a4f8..6b5b50f 100644 --- a/net/xfrm/Kconfig +++ b/net/xfrm/Kconfig @@ -35,6 +35,16 @@ config

Re: [RFC][PATCH 0/3][XFRM]: Support packet processing error statistics.

2007-10-22 Thread Masahide NAKAMURA
Monday 22 October 2007 17:50, Herbert Xu wrote: On Mon, Oct 22, 2007 at 03:11:06PM +0900, Masahide NAKAMURA wrote: This patch introduces statistics about transformation error (or almost error) factor at packet processing for developer. It is not a SNMP/MIB specification from IPsec/MIPv6

Re: [2.6 patch] __inet6_csk_dst_store(): fix check-after-use

2007-10-14 Thread Masahide NAKAMURA
PROTECTED] Agreed. Acked-by: Masahide NAKAMURA [EMAIL PROTECTED] -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [-mm patch] IPV6 must select XFRM

2007-09-03 Thread Masahide NAKAMURA
CONFIG_XFRM than changing kernel config depends. Does it make sense? Please review the attached patch. -- Masahide NAKAMURA 0001-PATCH-IPV6-XFRM-Fix-dependency-issue-at-inet6_csk_xmit.txt Description: Binary data

[PATCH] [XFRM] : Fix pointer copy size for encap_tmpl and coaddr.

2007-08-24 Thread Masahide NAKAMURA
This is minor fix about sizeof argument using with kmemdup(). Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/xfrm/xfrm_user.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 0b8491f..46076f5 100644

[PATCH] [IPV6] XFRM: Fix connected socket to use transformation.

2007-08-24 Thread Masahide NAKAMURA
it is done only when routing cookie is changed. This patch fix that non-transformation dst can be changed to transformation one. This behavior is required by MIPv6 and improves IPv6 IPsec. Signed-off-by: Noriaki TAKAMIYA [EMAIL PROTECTED] Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED

[PATCH 1/2] [IPV6] IPSEC: Omit redirect for tunnelled packet.

2007-08-24 Thread Masahide NAKAMURA
should be assumed as a decapsulated packet from IPsec tunnel by own. It may be a rare case for an IPsec security gateway, however it is not rare when the gateway is MIPv6 Home Agent since the another tunnel end-point is Mobile Node and it changes the attached network. Signed-off-by: Masahide

[PATCH 2/2] [IPV4] IPSEC: Omit redirect for tunnelled packet.

2007-08-24 Thread Masahide NAKAMURA
. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv4/ip_forward.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index 8c95cf0..afbf938 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c @@ -105,7 +105,7

[PATCH 2/3] [IPROUTE2] ip: xfrm: Fix policy and state flags.

2007-08-23 Thread Masahide NAKAMURA
o Support policy flag with string format. Note that kernel defines only one name localok for the flag and it has not had any effect currently. o Support state flag value XFRM_STATE_NOPMTUDISC. o Fix to show detailed flags value when -s option is used. o Fix minor typo. Signed-off-by: Masahide

[PATCH 1/3] [IPROUTE2] ip: xfrm: Clean-up for internal mask to filter.

2007-08-23 Thread Masahide NAKAMURA
Remove unused or redundant usage for xfrm_filter. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- ip/xfrm_policy.c | 17 - ip/xfrm_state.c |2 -- 2 files changed, 0 insertions(+), 19 deletions(-) diff --git a/ip/xfrm_policy.c b/ip/xfrm_policy.c index c1086f1

[PATCH 3/3] [IPROUTE2] ip: xfrm: Fix flush message.

2007-08-23 Thread Masahide NAKAMURA
Fix xfrm state or policy flush message. And minor updates are included: o Use static buffer to show unknown value as string. o Show policy type (ptype) only when kernel specified it. o Clean-up xfrm_monitor. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- ip/ipxfrm.c | 48

[PATCH 0/3] [IPROUTE2] ip command updates

2007-08-23 Thread Masahide NAKAMURA
Hello, There are updates for ip command. They are almost minor fixes and are not changes about 2.6.23 new features. Please apply if it is not too late for next release. -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL

Re: [PATCH 2/2] [IPV6] MIP6: Loadable module support for MIPv6.

2007-05-24 Thread Masahide NAKAMURA
Hi Ingo, Ingo Oeser wrote: Masahide NAKAMURA schrieb: Ingo Oeser wrote: What about MODULE_ALIAS(xfrm-type-10-60) and MODULE_ALIAS(xfrm-type-10-43) in mip6.c ? Just replace your second patch (Loadable module support) with one, which additionally adds these two lines to mip6.c

[PATCH 0/2] [IPV6] MIP6: Mobile IPv6 patch updates

2007-05-23 Thread Masahide NAKAMURA
Hello, There are Mobile IPv6 patches for net-2.6 (2.6.22-rc2), which are minor fixes and modularization. Please review and apply them. [IPV6] MIP6: Kill unnecessary ifdefs. [IPV6] MIP6: Loadable module support for MIPv6. -- Masahide NAKAMURA - To unsubscribe from this list

Re: [PATCH 2/2] [IPV6] MIP6: Loadable module support for MIPv6.

2007-05-23 Thread Masahide NAKAMURA
Ingo Oeser wrote: [EMAIL PROTECTED] schrieb: From: Masahide NAKAMURA [EMAIL PROTECTED] This patch makes MIPv6 loadable module named mip6. Here is a modprobe.conf(5) example to load it automatically when user application uses XFRM state for MIPv6: alias xfrm-type-10-43 mip6 alias xfrm-type-10

Re: [RFC] [PATCH] [XFRM]: Restrict upper layer information by bundle.

2007-04-30 Thread Masahide NAKAMURA
On Sun, 29 Apr 2007 22:21:45 -0700 (PDT) David Miller [EMAIL PROTECTED] wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Mon, 30 Apr 2007 13:36:03 +0900 Can you have a time to check this? If it is lost, I can send it again. I still have it, I just have not processed it yet

Re: [RFC] [PATCH] [XFRM]: Restrict upper layer information by bundle.

2007-04-30 Thread Masahide NAKAMURA
On Mon, 30 Apr 2007 00:34:37 -0700 (PDT) David Miller [EMAIL PROTECTED] wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Fri, 6 Apr 2007 16:25:39 +0900 On MIPv6 usage, XFRM sub policy is enabled. When main (IPsec) and sub (MIPv6) policy selectors have the same address set

Re: [RFC] [PATCH] [XFRM]: Restrict upper layer information by bundle.

2007-04-29 Thread Masahide NAKAMURA
Hello, On Thu, 12 Apr 2007 15:53:33 +0900 Masahide NAKAMURA [EMAIL PROTECTED] wrote: David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Thu, 12 Apr 2007 14:42:00 +0900 Hello, I sent the patch, which is required for IPsec usage by Mobile IPv6. I have not obtained

Re: [RFC] [PATCH] [XFRM]: Restrict upper layer information by bundle.

2007-04-12 Thread Masahide NAKAMURA
Hello, I sent the patch, which is required for IPsec usage by Mobile IPv6. I have not obtained any comments yet. Does anybody have it? I hope it to be applied. Thanks, Masahide NAKAMURA wrote: On MIPv6 usage, XFRM sub policy is enabled. When main (IPsec) and sub (MIPv6) policy selectors

[RFC] [PATCH] [XFRM]: Restrict upper layer information by bundle.

2007-04-06 Thread Masahide NAKAMURA
does not match the selector, it goes to slow path to restructure new bundle by single policy. 2. Bundle was created by one policy Flow cache is added to xfrm_dst as originated one. If the flow does not match the cache, it goes to slow path to try searching another policy. Signed-off-by: Masahide

Re: [RFC][PATCH][IPSEC][2/3] IPv6 over IPv4 IPsec tunnel

2007-02-09 Thread Masahide NAKAMURA
with including mine). Regards, -- Masahide NAKAMURA From ce9f1ac8c8df22b462a15d4609d05ec939930208 Mon Sep 17 00:00:00 2001 From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Sat, 10 Feb 2007 11:48:49 +0900 Subject: [PATCH][XFRM] IPV6: Fix outbound RO transformation which is broken by IPsec tunnel patch

Re: [IPV6] RAW: Add checksum default defines for MH.

2007-01-24 Thread Masahide NAKAMURA
feature for kernel. This patch just relaxes user application like ICMPv6 case then we can cancel this if it is too much. Thanks for taking care of this again, guys. -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED

[IP] TUNNEL: Fix to be built with user application.

2007-01-03 Thread Masahide NAKAMURA
-by: Masahide NAKAMURA [EMAIL PROTECTED] Signed-off-by: TAKAMIYA Noriaki [EMAIL PROTECTED] --- include/linux/if_tunnel.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h index 8de079b..660b501 100644 --- a/include/linux

[IPV6] RAW: Add checksum default defines for MH.

2007-01-03 Thread Masahide NAKAMURA
and was redundant check with raw socket code. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv6/mip6.c | 26 -- net/ipv6/raw.c | 13 +++-- 2 files changed, 11 insertions(+), 28 deletions(-) diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index be7dd7d..681bb07

[IPV6] RAW: Add checksum default defines for MH.

2007-01-03 Thread Masahide NAKAMURA
and was redundant check with raw socket code. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv6/mip6.c | 26 -- net/ipv6/raw.c | 13 +++-- 2 files changed, 11 insertions(+), 28 deletions(-) diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index be7dd7d..681bb07

Re: [PATCH 2/2] [IPV6] RAW: Add checksum default defines for mobility header.

2006-12-26 Thread Masahide NAKAMURA
than you pointed. Regards, -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 1/2] [IPV6] RAW: Don't release unlocked sock.

2006-12-05 Thread Masahide NAKAMURA
one. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv6/raw.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index d6dedc4..aa1d420 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -855,7 +855,8 @@ back_from_confirm

[PATCH 2/2] [IPV6] RAW: Add checksum default defines for mobility header.

2006-12-05 Thread Masahide NAKAMURA
Add checksum default defines for mobility header(MH). As the result kernel's behavior is to handle MH checksum as default. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- net/ipv6/raw.c | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/net/ipv6/raw.c

[PATCH 0/7] iproute2: 2.6.19 updates and Mobile IPv6 support for ip command

2006-12-05 Thread Masahide NAKAMURA
. Please review and apply them. Thanks, -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 2/7] Add missing macros which was removed from kernel header.

2006-12-05 Thread Masahide NAKAMURA
{IFA,IFLA,NDA,NDTA}_{RTA,PAYLOAD} macro is removed from kernel header since linux-2.6.19 because it is not used by kernel code. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- include/libnetlink.h | 35 +++ 1 files changed, 35 insertions(+), 0 deletions

[PATCH 7/7] [IP] XFRM: Mobility header support.

2006-12-05 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- ip/ipxfrm.c |9 + ip/xfrm.h |3 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c index 7c9fd0b..9c8b4bd 100644 --- a/ip/ipxfrm.c +++ b/ip/ipxfrm.c @@ -483,6 +483,14 @@ void

[PATCH 6/7] [IP] XFRM: support report message by monitor.

2006-12-05 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- ip/xfrm.h |2 ++ ip/xfrm_monitor.c | 52 2 files changed, 54 insertions(+), 0 deletions(-) diff --git a/ip/xfrm.h b/ip/xfrm.h index 51ffa4b..d33ff94 100644 --- a/ip/xfrm.h

[PATCH 4/7] [IP] XFRM: sub policy support.

2006-12-05 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- ip/ipxfrm.c | 27 ++ ip/xfrm.h|4 + ip/xfrm_policy.c | 150 -- 3 files changed, 164 insertions(+), 17 deletions(-) diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c index

[PATCH 5/7] [IP] XFRM: Mobile IPv6 route optimization support.

2006-12-05 Thread Masahide NAKAMURA
f proto ah ; ip x s f proto comp` Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- ip/ipxfrm.c | 84 ++ ip/xfrm.h|2 + ip/xfrm_policy.c |7 ++-- ip/xfrm_state.c | 107 -- 4

[PATCH 3/7] [IP] RULE: Add ifdef to FIB_RULE_INVERT since it is missing.

2006-12-05 Thread Masahide NAKAMURA
Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- ip/iprule.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ip/iprule.c b/ip/iprule.c index c584b18..1da64b8 100644 --- a/ip/iprule.c +++ b/ip/iprule.c @@ -83,8 +83,10 @@ int print_rule(const struct sockaddr_nl

Re: [PATCH 1/7] Sync with 2.6.19 kernel header about include/linux.

2006-12-05 Thread Masahide NAKAMURA
Thomas Graf wrote: * Masahide NAKAMURA [EMAIL PROTECTED] 2006-12-05 19:15 diff --git a/include/linux/fib_rules.h b/include/linux/fib_rules.h index 8270aac..4418c8d 100644 --- a/include/linux/fib_rules.h +++ b/include/linux/fib_rules.h @@ -6,7 +6,6 @@ #include linux/rtnetlink.h /* rule

Re: [PATCH 1/7] Sync with 2.6.19 kernel header about include/linux.

2006-12-05 Thread Masahide NAKAMURA
updated to newer version except fib_fules.h, iprule.c? Regards, -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: iproute2 update

2006-12-05 Thread Masahide NAKAMURA
Stephen Hemminger wrote: I am about to push out a new version, so if you have any more patches pending the window is about to close. Please retest with current git tree Brief tests for MIPv6 xfrm are passed with the tree on kernel 2.6.19. -- Masahide NAKAMURA - To unsubscribe from this list

Re: [PATCH 0/7][IP] IProute2 ip command updates

2006-11-27 Thread Masahide NAKAMURA
to know when to update your tree's kernel headers, too. To use this chance to test with your tree, can I send my patches with the header update to 2.6.19-rcX in advance (updating headers by you is also fine with me), or just wait till 2.6.19 final release is done? Regards, -- Masahide NAKAMURA

Re: [[PATCH][XFRM]: Sub-policies broke policy events

2006-11-18 Thread Masahide NAKAMURA
On Fri, 17 Nov 2006 08:34:44 -0500 jamal [EMAIL PROTECTED] wrote: Found the cause of my problems. Dave, this is against Linus tree because it is bug fix. Nakamura-san please ACK. cheers, jamal It looks fine to me. Thanks, Jamal. Acked-by: Masahide NAKAMURA [EMAIL PROTECTED

Re: [PATCH][XFRM]: nlmsg length not computed correctly in the presence of subpolicies

2006-11-18 Thread Masahide NAKAMURA
On Fri, 17 Nov 2006 08:48:31 -0500 jamal [EMAIL PROTECTED] wrote: Another one in the same spirit as before. Compiles. I dont have a good test case, but looks right. Nakamura-san please ACK and Dave (as before this goes in as a bug-fix). Acked-by: Masahide NAKAMURA [EMAIL PROTECTED] I've

Re: [PATCH][XFRM] Fixes for net-2.6

2006-10-03 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Tue, 03 Oct 2006 12:29:54 +0900 [XFRM] POLICY: Fix per-direction policy counter after flushing. Currently when xfrm_policy_flush() is called per-direction policy counter is cleared. However flusing policy

[PATCH][XFRM] Fixes for net-2.6

2006-10-02 Thread Masahide NAKAMURA
/xfrm_policy.c |4 ++-- net/xfrm/xfrm_state.c | 16 +--- 3 files changed, 15 insertions(+), 12 deletions(-) CHANGESETS -- commit 90c1f7d3e1019b2885844b03088588268e38cec5 Author: Masahide NAKAMURA [EMAIL PROTECTED] Date: Sun Sep 24 14:46:59 2006 +0900 [XFRM] POLICY: Fix per

[IPROUTE2][PATCH] Add missing macros which was removed from kernel header. (Re: [GIT PATCH] NET: Fixes for net-2.6.19)

2006-09-30 Thread Masahide NAKAMURA
by kernel code. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] --- include/libnetlink.h | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/libnetlink.h b/include/libnetlink.h index 63cc3c8..9de3a0b 100644 --- a/include/libnetlink.h

Re: [GIT PATCH] NET: Fixes for net-2.6.19

2006-09-28 Thread Masahide NAKAMURA
}.h, neighbour.h to iproute2 tree. Some macros may be needed for libnetlink.h, too. I'll send the patch to you if you haven't started on it. Regards, -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo

Re: [PATCH] [XFRM] STATE: Fix flusing with hash mask.

2006-08-31 Thread Masahide NAKAMURA
David Miller wrote: Masahide-san, please provide a Signed-off-by: line in the future, even for simple changes like this one. OK, I'll :-) Regards, -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More

[IPV6] MIP6: Fix to update IP6CB when cloned skbuff is received at HAO. (Re: [PATCH 23/44] [IPV6]: Allow to replace skbuff by TLV parser.)

2006-08-31 Thread Masahide NAKAMURA
it by the parser just like routing header case. This is a framework to achieve that to allow TLV parser to replace inbound skbuff pointer. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] Signed-off-by: YOSHIFUJI Hideaki [EMAIL PROTECTED] Applied to net-2.6.19, thanks a lot. I've found

Re: [PATCH 44/44] [XFRM] IPV6: Support Mobile IPv6 extension headers sorting.

2006-08-25 Thread Masahide NAKAMURA
Masahide NAKAMURA wrote: David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Thu, 24 Aug 2006 16:05:39 +0900 David Miller wrote: In the mean time, I will work on porting my XFRM hashing changes for the current net-2.6.19 tree. FYI, your work will not have any conflict

Re: [PATCH 44/44] [XFRM] IPV6: Support Mobile IPv6 extension headers sorting.

2006-08-25 Thread Masahide NAKAMURA
On Fri, 25 Aug 2006 03:16:51 -0700 (PDT) David Miller [EMAIL PROTECTED] wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Fri, 25 Aug 2006 19:06:40 +0900 I've found a problem about MIPv6 CN with the patch below. We just need to search by priority in the inexact list, even if we get

Re: [PATCH 36/44] [XFRM]: Introduce XFRM_MSG_REPORT.

2006-08-24 Thread Masahide NAKAMURA
-space know a binding error requirement. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED] Signed-off-by: YOSHIFUJI Hideaki [EMAIL PROTECTED] Applied to net-2.6.19, but... Please check whether this XFRM_MSG_REPORT functionality can be provided via XFRM_MSG_*AE

Re: [PATCH 44/44] [XFRM] IPV6: Support Mobile IPv6 extension headers sorting.

2006-08-24 Thread Masahide NAKAMURA
for the current net-2.6.19 tree. FYI, your work will not have any conflict with the left of MIPv6 patches which I will describe later since they are almost out of XFRM. Regards, -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: [PATCH 44/44] [XFRM] IPV6: Support Mobile IPv6 extension headers sorting.

2006-08-24 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Thu, 24 Aug 2006 16:05:39 +0900 David Miller wrote: In the mean time, I will work on porting my XFRM hashing changes for the current net-2.6.19 tree. FYI, your work will not have any conflict with the left of MIPv6 patches

Re: [PATCH 5/44] [XFRM] STATE: Add source address list.

2006-08-23 Thread Masahide NAKAMURA
David Miller wrote: From: YOSHIFUJI Hideaki [EMAIL PROTECTED] Date: Thu, 24 Aug 2006 00:02:06 +0900 From: Masahide NAKAMURA [EMAIL PROTECTED] Support source address based searching. Mobile IPv6 will use it. Based on MIPL2 kernel patch. Signed-off-by: Masahide NAKAMURA [EMAIL PROTECTED

Re: [PATCH 16/44] [XFRM] IPV6: Restrict bundle reusing

2006-08-23 Thread Masahide NAKAMURA
David Miller wrote: From: YOSHIFUJI Hideaki [EMAIL PROTECTED] Date: Thu, 24 Aug 2006 00:02:17 +0900 From: Masahide NAKAMURA [EMAIL PROTECTED] For outbound transformation, bundle is checked whether it is suitable for current flow to be reused or not. In such IPv6 case as below, transformation

Re: [PATCH 18/44] [IPV6]: Add Kconfig to enable Mobile IPv6.

2006-08-23 Thread Masahide NAKAMURA
David Miller wrote: From: YOSHIFUJI Hideaki [EMAIL PROTECTED] Date: Thu, 24 Aug 2006 00:02:19 +0900 From: Masahide NAKAMURA [EMAIL PROTECTED] Add Kconfig to enable Mobile IPv6. Based on MIPL2 kernel patch. Signed-off-by: Noriaki TAKAMIYA [EMAIL PROTECTED] Signed-off-by: Masahide NAKAMURA

Re: (usagi-core 30280) Re: [PATCH 10/23] [PATCH] [XFRM]: Trace which secpath state is reject factor.

2006-08-02 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Sat, 29 Jul 2006 18:30:29 +0900 @@ -272,6 +272,9 @@ #define XFRM_TYPE_NON_FRAGMENT 1 void(*destructor)(struct xfrm_state *); int (*input)(struct xfrm_state *, struct

Re: [PATCH 1/23] [PATCH] [XFRM]: Add XFRM_MODE_xxx for future use.

2006-08-02 Thread Masahide NAKAMURA
Herbert Xu wrote: Please rebase your tree on something that's more recent. We've had xfrm modes for more than two months now. OK, I use rebase to catch up with the latest tree. (This tree is just for review then it is not against the latest but 2.6.17.) -- Masahide NAKAMURA - To unsubscribe

Re: [PATCH 0/20][IPV6/XFRM] MIPv6 CN (part B)

2006-08-02 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Sat, 29 Jul 2006 18:37:04 +0900 Here is Part B patches, following this mail. Part B is also available as mip6cn-20060716-review branch at: git://git.skbuff.net:9419/gitroot/nakam/linux-2.6-mip6cn This tree includes part

Re: [PATCH 7/23] [PATCH] [XFRM] STATE: Add a hook to find where to be inserted header in outbound.

2006-08-02 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Wed, 02 Aug 2006 11:20:30 +0900 David Miller wrote: I see a dangerous pattern of adding many, many, many methods to the xfrm_type structure which are only used by ipv6. But I cannot suggest another method. Sometimes

Re: [RFC] Mobile IPv6 introduction

2006-08-02 Thread Masahide NAKAMURA
to add new type number without any modification of kernel code at all I would support ICMPv6 filter approach, too. -- Masahide NAKAMURA - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [PATCH 1/23] [PATCH] [XFRM]: Add XFRM_MODE_xxx for future use.

2006-08-01 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Sat, 29 Jul 2006 18:29:45 +0900 Transformation mode is used as either IPsec transport or tunnel. It is required to add two more items, route-optimization and inbound trigger by Mobile IPv6. Based on MIPL2 kernel patch

Re: [PATCH 5/23] [PATCH] [XFRM] STATE: Add source address list.

2006-08-01 Thread Masahide NAKAMURA
which records the source address (if any such thing does exist). There is no xfrm netlink attribute to carry source address. I'll add it like XFRMA_SRCADDR. BTW another patch newly defined XFRMA_ADDR to carry care-of address. This would be changed e.g. XFRMA_COADDR or something, too. -- Masahide

Re: [PATCH 22/23] [PATCH] [XFRM] POLICY: Support netlink socket interface for sub policy.

2006-08-01 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Sat, 29 Jul 2006 18:30:55 +0900 diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index 901bb65..68d3443 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h @@ -303,12 +303,14 @@ #define XFRM_POLICY_BLOCK

Re: [PATCH 6/23] [PATCH] [XFRM] STATE: Search by address using source address list.

2006-08-01 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Sat, 29 Jul 2006 18:30:18 +0900 +#ifdef CONFIG_XFRM_ADVANCED +struct xfrm_state *(*state_lookup_byaddr)(xfrm_address_t *daddr, xfrm_address_t *saddr, u8 proto); +#endif I think we should delete XFRM_ADVANCED

Re: [PATCH 7/23] [PATCH] [XFRM] STATE: Add a hook to find where to be inserted header in outbound.

2006-08-01 Thread Masahide NAKAMURA
David Miller wrote: From: Masahide NAKAMURA [EMAIL PROTECTED] Date: Sat, 29 Jul 2006 18:30:23 +0900 @@ -270,6 +270,7 @@ struct xfrm_type void(*destructor)(struct xfrm_state *); int (*input)(struct xfrm_state *, struct sk_buff *skb

Re: [RFC] Mobile IPv6 introduction

2006-08-01 Thread Masahide NAKAMURA
transform in order to support it's binding cache. Also, these new modes are not advanced but instead Mobile IPv6 specific. I agree XFRM should be generic transformation. XFRM_ADVANCED will be removed from my patch because some comments are sent. -- Masahide NAKAMURA

[RFC] Mobile IPv6 introduction

2006-07-29 Thread Masahide NAKAMURA
but works with the above categories since they are finally confirmed as the MIPv6 node behavior; e.g. home addressing for MN, proxy forwarding for HA. At first I'll send patches about category 3 very soon, just for review. Can you check them? Thanks, -- Masahide NAKAMURA - To unsubscribe from

[PATCH 0/23][XFRM] MIPv6 CN introduction (part A) (Re: [RFC] Mobile IPv6 introduction)

2006-07-29 Thread Masahide NAKAMURA
for CN Route optimization defined MIPv6 specification is designed as XFRM extension. IPv6 extension headers handling is included, too. This feature is required by all MIPv6 nodes(CN, MN, HA) then it can be said MIPv6 platform. -- Masahide NAKAMURA - To unsubscribe from this list: send

[PATCH 5/23] [PATCH] [XFRM] STATE: Add source address list.

2006-07-29 Thread Masahide NAKAMURA
Support source address based searching. Mobile IPv6 will use it. Based on MIPL2 kernel patch. --- include/linux/xfrm.h |1 + include/net/xfrm.h | 32 net/ipv4/xfrm4_state.c |5 + net/ipv6/xfrm6_state.c |5 + net/xfrm/xfrm_state.c |

[PATCH 2/23] [PATCH] [XFRM]: Introduce a helper to compare id protocol.

2006-07-29 Thread Masahide NAKAMURA
Put the helper to header for future use. --- include/net/xfrm.h|6 ++ net/xfrm/xfrm_state.c |6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/net/xfrm.h b/include/net/xfrm.h index ddb153d..ca537b5 100644 --- a/include/net/xfrm.h +++

[PATCH 4/23] [PATCH] [XFRM]: Fix message about transformation user interface.

2006-07-29 Thread Masahide NAKAMURA
Transformation user interface is not only for IPsec. Based on MIPL2 kernel patch. --- net/xfrm/Kconfig |6 +++--- net/xfrm/xfrm_user.c |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig index 95f4f09..50f2fb3 100644 ---

[PATCH 1/23] [PATCH] [XFRM]: Add XFRM_MODE_xxx for future use.

2006-07-29 Thread Masahide NAKAMURA
Transformation mode is used as either IPsec transport or tunnel. It is required to add two more items, route-optimization and inbound trigger by Mobile IPv6. Based on MIPL2 kernel patch. --- include/linux/xfrm.h|9 - include/net/xfrm.h |2 +- net/ipv4/ah4.c |

[PATCH 3/23] [PATCH] [XFRM]: Add Kconfig to enable advanced transformation.

2006-07-29 Thread Masahide NAKAMURA
This option is for enhanced transformation features and it will be used by Mobile IPv6. Based on MIPL2 kernel patch. --- net/xfrm/Kconfig |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig index 0c1c043..95f4f09 100644 ---

[PATCH 15/23] [PATCH] [XFRM] STATE: Allow non IPsec protocol.

2006-07-29 Thread Masahide NAKAMURA
It will be added two more transformation protocols (routing header and destination options header) by Mobile IPv6. xfrm_id_proto_match() can be handle zero as all, IPSEC_PROTO_ANY as all IPsec and otherwise as exact one. Based on MIPL2 kernel patch. --- include/net/xfrm.h |7 +++

[PATCH 8/23] [PATCH] [XFRM] STATE: Add a hook to obtain local/remote outbound address.

2006-07-29 Thread Masahide NAKAMURA
Outbound transformation replaces both source and destination address with state's end-point addresses at the same time when IPsec tunnel mode. It is also required to change them for Mobile IPv6 route optimization, but we should care about the following differences: - changing result is not

[PATCH 14/23] [PATCH] [XFRM]: Restrict authentication algorithm only when inbound transformation protocol is IPsec.

2006-07-29 Thread Masahide NAKAMURA
For Mobile IPv6 usage, routing header or destination options header is used and it doesn't require this compare. It is checked only when IPsec template. Based on MIPL2 kernel patch. --- net/xfrm/xfrm_policy.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git

[PATCH 20/23] [PATCH] [XFRM] POLICY: sub policy support.

2006-07-29 Thread Masahide NAKAMURA
Sub policy is introduced. Main and sub policy are applied the same flow. (Policy that current kernel uses is named as main.) It is required another transformation policy management to keep IPsec and Mobile IPv6 lives separate. Policy which lives shorter time in kernel should be a sub i.e. normally

[PATCH 21/23] [PATCH] [XFRM]: Add sorting interface for state and template.

2006-07-29 Thread Masahide NAKAMURA
Under two transformation policies it is required to merge them. This is a platform to sort state for outbound and templates for inbound respectively. Mobile IPv6 will use it. --- include/net/xfrm.h | 22 ++ net/xfrm/xfrm_policy.c | 16 ++--

  1   2   >