Author: bz
Date: Fri Jul  3 09:53:56 2015
New Revision: 285084
URL: https://svnweb.freebsd.org/changeset/base/285084

Log:
  Move comment to the right position.
  
  PR:           152791
  Submitted by: vangyzen (as part of the functional change)
  MFC after:    3 days

Modified:
  head/sys/netinet6/icmp6.c

Modified: head/sys/netinet6/icmp6.c
==============================================================================
--- head/sys/netinet6/icmp6.c   Fri Jul  3 07:00:24 2015        (r285083)
+++ head/sys/netinet6/icmp6.c   Fri Jul  3 09:53:56 2015        (r285084)
@@ -2404,7 +2404,6 @@ icmp6_redirect_input(struct mbuf *m, int
                    icmp6_redirect_diag(&src6, &reddst6, &redtgt6)));
                goto bad;
        }
-       /* validation passed */
 
        icmp6len -= sizeof(*nd_rd);
        nd6_option_init(nd_rd + 1, icmp6len, &ndopts);
@@ -2429,6 +2428,8 @@ icmp6_redirect_input(struct mbuf *m, int
                goto bad;
        }
 
+       /* Validation passed. */
+
        /* RFC 2461 8.3 */
        nd6_cache_lladdr(ifp, &redtgt6, lladdr, lladdrlen, ND_REDIRECT,
            is_onlink ? ND_REDIRECT_ONLINK : ND_REDIRECT_ROUTER);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to