Skip to content

Commit

Permalink
Removed the part of putting an address to struct in6_ifaddr without a…
Browse files Browse the repository at this point in the history
…ny arbitration
  • Loading branch information
t-momose committed Nov 24, 2005
1 parent 9ac5e75 commit 33ec914
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions kame/sys/netinet6/mip6.c
@@ -1,4 +1,4 @@
/* $Id: mip6.c,v 1.229 2005/11/20 10:20:05 t-momose Exp $ */
/* $Id: mip6.c,v 1.230 2005/11/24 05:31:03 t-momose Exp $ */

/*
* Copyright (C) 2004 WIDE Project. All rights reserved.
Expand Down Expand Up @@ -307,15 +307,19 @@ mip6_input(mp, offp)
* to send the icmp6 error messages.
*/
if (mip6_get_ip6hdrinfo(m, &src, &dst, &hoa, &rt, 0, &presence)==0) {
#if 0
struct m_tag *mtag = NULL;
#endif
if (presence & RTHDR_PRESENT) {
bcopy(&rt, &ip6->ip6_dst, sizeof(struct in6_addr));
}
mtag = ip6_findaux(m);
if (mtag) {
bcopy(&rt,
&((struct ip6aux *)(mtag + 1))->ip6a_dstia6->ia_addr.sin6_addr,
sizeof(struct in6_addr));
#if 0
mtag = ip6_findaux(m);
if (mtag) {
bcopy(&rt,
&((struct ip6aux *)(mtag + 1))->ip6a_dstia6->ia_addr.sin6_addr,
sizeof(struct in6_addr));
}
#endif
}
}
icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
Expand Down Expand Up @@ -345,14 +349,19 @@ mip6_input(mp, offp)
* to send the icmp6 error messages.
*/
if (mip6_get_ip6hdrinfo(m, &src, &dst, &hoa, &rt, 0, &presence)==0) {
#if 0
struct m_tag *mtag = NULL;
if (presence & RTHDR_PRESENT)
#endif
if (presence & RTHDR_PRESENT) {
bcopy(&rt, &ip6->ip6_dst, sizeof(struct in6_addr));
mtag = ip6_findaux(m);
if (mtag) {
bcopy(&rt,
&((struct ip6aux *)(mtag + 1))->ip6a_dstia6->ia_addr.sin6_addr,
sizeof(struct in6_addr));
#if 0
mtag = ip6_findaux(m);
if (mtag) {
bcopy(&rt,
&((struct ip6aux *)(mtag + 1))->ip6a_dstia6->ia_addr.sin6_addr,
sizeof(struct in6_addr));
}
#endif
}
}
icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
Expand Down

0 comments on commit 33ec914

Please sign in to comment.