From 5bd7dbfdcd1a79565e16a9b0073ec574720f1a61 Mon Sep 17 00:00:00 2001 From: itojun Date: Mon, 4 Dec 2006 07:30:30 +0000 Subject: [PATCH] reorder statement to meet the above comment (or should we change comment?) --- kame/sys/netinet6/ip6_output.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kame/sys/netinet6/ip6_output.c b/kame/sys/netinet6/ip6_output.c index 4661cf0bda..dba307e43f 100644 --- a/kame/sys/netinet6/ip6_output.c +++ b/kame/sys/netinet6/ip6_output.c @@ -1,4 +1,4 @@ -/* $KAME: ip6_output.c,v 1.493 2006/12/04 07:28:57 itojun Exp $ */ +/* $KAME: ip6_output.c,v 1.494 2006/12/04 07:30:30 itojun Exp $ */ /* * Copyright (c) 2002 INRIA. All rights reserved. @@ -1117,11 +1117,6 @@ skip_ipsec2:; /* * then rt (for unicast) and ifp must be non-NULL valid values. */ - if ((flags & IPV6_FORWARDING) == 0) { - /* XXX: the FORWARDING flag can be set for mrouting. */ - in6_ifstat_inc(ifp, ifs6_out_request); - } - if (rt) { ia = (struct in6_ifaddr *)(rt->rt_ifa); #ifdef RTUSE @@ -1131,6 +1126,12 @@ skip_ipsec2:; } #endif + if ((flags & IPV6_FORWARDING) == 0) { + /* XXX: the FORWARDING flag can be set for mrouting. */ + in6_ifstat_inc(ifp, ifs6_out_request); + } + + /* * The outgoing interface must be in the zone of source and * destination addresses. We should use ia_ifp to support the