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

2008-02-15 Thread Masahide NAKAMURA
ld failure: > > > > net/built-in.o: In function `xfrm_init': > > (.init.text+0xcd7): undefined reference to `snmp_mib_init' > > > > Signed-off-by: Johann Felix Soden <[EMAIL PROTECTED]> > > CC: Masahide NAKAMURA <[EMAIL PROTECTED]> >

[PATCH][XFRM]: Fix statistics.

2008-01-30 Thread Masahide NAKAMURA
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 + ne

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

2008-01-07 Thread Masahide NAKAMURA
stics: 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(+),

[PATCH][XFRM] Documentaion: Fix error example at XFRMOUTSTATEMODEERROR. (Re: [XFRM]: Fix outbound statistics.)

2007-12-25 Thread Masahide NAKAMURA
# This is resent email since the Subject is blank at the first time; 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 = xf

[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: >

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

[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(+),

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

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

[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 chang

[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

[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 <[EM

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

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

2007-12-20 Thread Masahide NAKAMURA
n which 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

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

2007-11-27 Thread Masahide NAKAMURA
everting it completely I'm just going 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 i

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

2007-11-25 Thread Masahide NAKAMURA
ut any lock since it is called within the list global lock (aka xfrm_state_lock ) is held i.e. af_key.c(dump_sa), xfrm_user.c(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, >

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 precis

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 specifi

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

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

2007-10-21 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]> --- i

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

2007-10-21 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_ou

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

2007-10-21 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 @@

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

2007-10-21 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 lin

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

2007-10-21 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

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

2007-10-14 Thread Masahide NAKAMURA
ves the NULL check. > > Signed-off-by: Adrian Bunk <[EMAIL 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
for catching this. the issue is caused with patch "[IPV6] XFRM: Fix connected socket to use transformation." which I sent to netdev. (a85d5450ddeb959bdf9e4603f9c06e9d79217cfa on net-2.6.24). I'd prefer to modify the original patch to use "ifdef 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 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
patch. 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 @@ -1

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

2007-08-24 Thread Masahide NAKAMURA
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

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

[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

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

2007-08-23 Thread Masahide NAKAMURA
typo. Signed-off-by: Masahide NAKAMURA <[EMAIL PROTECTED]> --- ip/ipxfrm.c | 18 +--- ip/xfrm.h|1 + ip/xfrm_policy.c | 55 - ip/xfrm_state.c |6 +++- 4 files changed, 72 insertions(+), 8 deletions(-) dif

[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 c

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 suppor

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

[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: [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 s

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 (MIPv

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

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

2007-04-11 Thread Masahide NAKAMURA
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 any comments yet. Does anybody have it? I hope it to be applied. It is in my backlog.

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

2007-04-11 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 sel

[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
[i]->props.mode == XFRM_MODE_ROUTEOPTIMIZATION" there to make it clearer for other developers about RO-is-there than restoring the code. # FYI, we don't have to fix another side of inter-family IPsec tunneling (xfrm4_policy.c) # where you have similar patch (IPv4 over IPv6 IPsec tu

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

2007-01-24 Thread Masahide NAKAMURA
acket). So this fix is not mandatory 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

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

2007-01-03 Thread Masahide NAKAMURA
d 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 in

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

2007-01-03 Thread Masahide NAKAMURA
d 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 in

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

2007-01-03 Thread Masahide NAKAMURA
ff-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 --

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

2006-12-26 Thread Masahide NAKAMURA
6 as raw socket stuff 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

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 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: [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 /* rule is permanen

[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 socka

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

[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

[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/

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

[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 del

[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/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

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

2006-12-05 Thread Masahide NAKAMURA
or hdrincl 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 @@ b

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

2006-11-27 Thread Masahide NAKAMURA
ke 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 NAK

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 &l

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

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 pol

[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: F

[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
i.e. include/linux/{if_link.h,if_addr.h,neighbour.h}) which is split from rtnetlink.h. [PATCH] Add missing macros which was removed from kernel header. {IFA,IFLA,NDA,NDTA}_{RTA,PAYLOAD} macro is removed from kernel header since net-2.6.19 because it is not used by kernel code. Signed-

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

2006-09-28 Thread Masahide NAKAMURA
x27;t have seen > the error. Yes, as David mentioned you need to copy the latest rtnetlink.h at first. It is also required to be added if_{link,addr}.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

Re: [PATCH] xfrm: remove xerr_idxp from __xfrm_policy_check()

2006-09-01 Thread Masahide NAKAMURA
review & apply. Signed-off-by: James Morris <[EMAIL PROTECTED]> It seems fine for me. David, please apply it. -- 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 ht

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

[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
f cloned skbuff it is required to replace 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]> > > Sign

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

2006-08-31 Thread Masahide NAKAMURA
Hello, This is a minor fix about transformation state flushing for net-2.6.19. Please apply it. --- net/xfrm/xfrm_state.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 4341795..9f63edd 100644 --- a/net/xfrm/xfrm_stat

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

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

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 p

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

2006-08-24 Thread Masahide NAKAMURA
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 which I will describe later since they are almost out of XFRM. Regards, -- Masahide NAKAMURA - To unsubscribe from this list: send the line "unsubscr

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

2006-08-23 Thread Masahide NAKAMURA
o make user-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 provide

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]> Signe

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 c

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

Re: [RFC] Mobile IPv6 introduction

2006-08-02 Thread Masahide NAKAMURA
number and its length. All other things can be modified at user-space application. If there is much requirement 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

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.

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:9

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.) -- Masahi

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

2006-08-01 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

Re: [RFC] Mobile IPv6 introduction

2006-08-01 Thread Masahide NAKAMURA
Pv6 specific". I agree XFRM should be generic transformation. XFRM_ADVANCED will be removed from my patch because some comments are sent. -- 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: [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)(st

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

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/

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

2006-08-01 Thread Masahide NAKAMURA
DR or something, 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/majordomo-info.html

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

[PATCH 2/20] [PATCH] [XFRM] IPV6: Support Mobile IPv6 extension headers sorting.

2006-07-29 Thread Masahide NAKAMURA
Support Mobile IPv6 extension headers sorting for two transformation policies. Mobile IPv6 extension headers should be placed after IPsec transport mode, but before transport AH when outbound. --- net/ipv6/xfrm6_state.c | 28 ++-- 1 files changed, 26 insertions(+), 2 dele

[PATCH 12/20] [PATCH] [IPV6] MIP6: Add routing header type 2 transformation.

2006-07-29 Thread Masahide NAKAMURA
program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +/* + * Authors: + * Noriaki TAKAMIYA @USAGI + * Masahide NAKAMURA @USAGI + * YOSHIFUJI Hideaki @USAGI + */ +#ifndef _NET_MIP6_H +#define _NET_MIP6_H + +extern int

[PATCH 8/20] [PATCH] [IPV6] MIP6: Add home address option definition.

2006-07-29 Thread Masahide NAKAMURA
Add home address option definition for Mobile IPv6. Based on MIPL2 kernel patch. --- include/linux/in6.h |1 + include/linux/ipv6.h | 10 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/linux/in6.h b/include/linux/in6.h index 304aaed..086ec2a 100644 --- a/

[PATCH 17/20] [PATCH] [IPV6] MIP6: Add receiving mobility header functions through raw socket.

2006-07-29 Thread Masahide NAKAMURA
Like ICMPv6, mobility header is handled through raw socket. In inbound case, check only whether ICMPv6 error should be sent as a reply or not by kernel. Based on MIPL2 kernel patch. --- include/net/mip6.h |4 ++ net/ipv6/mip6.c| 87 ne

[PATCH 19/20] [PATCH] [IPV6] MIP6: Add sending mobility header functions through raw socket.

2006-07-29 Thread Masahide NAKAMURA
Mobility header is built by user-space and sent through raw socket. Kernel just extracts its type to flow. Based on MIPL2 kernel patch. --- net/ipv6/raw.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index e0faf4d..0e8dca

[PATCH 18/20] [PATCH] [IPV6] MIP6: Ignore mobility headers if it is rejected.

2006-07-29 Thread Masahide NAKAMURA
Ignore mobility headers if it is rejected by route optimization. Mobility headers should be bypassed for any route optimization and application should use transformation policy and wild-card states corerctly to catch mobility headers prior than other packets. This case which such reject is occurred

[PATCH 15/20] [PATCH] [XFRM] STATE: Add Mobile IPv6 route optimization protocols to netlink interface.

2006-07-29 Thread Masahide NAKAMURA
Add Mobile IPv6 route optimization protocols to netlink interface. Route optimization states carry care-of address. Based on MIPL2 kernel patch. --- net/xfrm/xfrm_user.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/x

[PATCH 4/20] [PATCH] [IPV6] MIP6: Add inbound interface of routing header type 2.

2006-07-29 Thread Masahide NAKAMURA
Add inbound interface of routing header type 2 for Mobile IPv6. Based on MIPL2 kernel patch. --- include/net/addrconf.h |7 + net/ipv6/exthdrs.c | 71 +++- 2 files changed, 70 insertions(+), 8 deletions(-) diff --git a/include/net/addrconf

  1   2   >