Skip to content

Commit

Permalink
use in6_embedscope
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Feb 18, 2004
1 parent 945bb51 commit 438f031
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions kame/sys/netinet6/sctp6_usrreq.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: sctp6_usrreq.c,v 1.28 2004/02/11 22:16:30 itojun Exp $ */
/* $KAME: sctp6_usrreq.c,v 1.29 2004/02/18 15:10:51 itojun Exp $ */

/*
* Copyright (c) 2001, 2002, 2003 Cisco Systems, Inc.
Expand Down Expand Up @@ -1388,12 +1388,7 @@ sctp6_peeraddr(struct socket *so,
#endif
return ENOENT;
}
if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr))
sin6->sin6_scope_id = ntohs(sin6->sin6_addr.s6_addr16[1]);
else
sin6->sin6_scope_id = 0; /*XXX*/
if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr))
sin6->sin6_addr.s6_addr16[1] = 0;
in6_recoverscope(&sin6, &sin6->sin6_addr, NULL);
#ifdef __FreeBSD__
*nam = (struct sockaddr *)sin6;
#endif
Expand Down

0 comments on commit 438f031

Please sign in to comment.