Skip to content

Commit

Permalink
reorder statement to meet the above comment (or should we change comm…
Browse files Browse the repository at this point in the history
…ent?)
  • Loading branch information
itojun committed Dec 4, 2006
1 parent 110ec3d commit 5bd7dbf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions 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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5bd7dbf

Please sign in to comment.