Author: pluknet
Date: Wed Jan  4 14:06:17 2012
New Revision: 229484
URL: http://svn.freebsd.org/changeset/base/229484

Log:
  MFC r227055:
   Remove a couple of write-only variables.

Modified:
  stable/7/sys/netinet6/icmp6.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/netinet6/icmp6.c
==============================================================================
--- stable/7/sys/netinet6/icmp6.c       Wed Jan  4 14:03:45 2012        
(r229483)
+++ stable/7/sys/netinet6/icmp6.c       Wed Jan  4 14:06:17 2012        
(r229484)
@@ -2212,8 +2212,6 @@ icmp6_redirect_input(struct mbuf *m, int
        int icmp6len = ntohs(ip6->ip6_plen);
        char *lladdr = NULL;
        int lladdrlen = 0;
-       u_char *redirhdr = NULL;
-       int redirhdrlen = 0;
        struct rtentry *rt = NULL;
        int is_router;
        int is_onlink;
@@ -2349,11 +2347,6 @@ icmp6_redirect_input(struct mbuf *m, int
                lladdrlen = ndopts.nd_opts_tgt_lladdr->nd_opt_len << 3;
        }
 
-       if (ndopts.nd_opts_rh) {
-               redirhdrlen = ndopts.nd_opts_rh->nd_opt_rh_len;
-               redirhdr = (u_char *)(ndopts.nd_opts_rh + 1); /* xxx */
-       }
-
        if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) {
                nd6log((LOG_INFO,
                    "icmp6_redirect_input: lladdrlen mismatch for %s "
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to