Remove a couple of write-only variables.
This commit is contained in:
parent
23b8f4d84a
commit
6ba404cab8
@ -2351,8 +2351,6 @@ icmp6_redirect_input(struct mbuf *m, int off)
|
||||
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;
|
||||
@ -2488,11 +2486,6 @@ icmp6_redirect_input(struct mbuf *m, int off)
|
||||
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 "
|
||||
|
Loading…
Reference in New Issue
Block a user