Skip to content

Commit

Permalink
removed an unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmei committed Feb 3, 2002
1 parent aa50ffc commit ece56d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
21 changes: 1 addition & 20 deletions freebsd4/sys/netinet6/in6_pcb.c
@@ -1,5 +1,5 @@
/* $FreeBSD: src/sys/netinet6/in6_pcb.c,v 1.10.2.4 2001/08/13 16:26:17 ume Exp $ */
/* $KAME: in6_pcb.c,v 1.45 2002/02/02 07:07:39 jinmei Exp $ */
/* $KAME: in6_pcb.c,v 1.46 2002/02/02 09:39:03 jinmei Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -909,22 +909,3 @@ in6_pcblookup_hash(pcbinfo, faddr, fport_arg, laddr, lport_arg, wildcard, ifp)
*/
return (NULL);
}

void
init_sin6(struct sockaddr_in6 *sin6, struct mbuf *m)
{
struct ip6_hdr *ip;

ip = mtod(m, struct ip6_hdr *);
bzero(sin6, sizeof(*sin6));
sin6->sin6_len = sizeof(*sin6);
sin6->sin6_family = AF_INET6;
sin6->sin6_addr = ip->ip6_src;
if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr))
sin6->sin6_addr.s6_addr16[1] = 0;
sin6->sin6_scope_id =
(m->m_pkthdr.rcvif && IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr))
? m->m_pkthdr.rcvif->if_index : 0;

return;
}
3 changes: 1 addition & 2 deletions freebsd4/sys/netinet6/in6_pcb.h
@@ -1,5 +1,5 @@
/* $FreeBSD: src/sys/netinet6/in6_pcb.h,v 1.2.2.3 2001/08/13 16:26:17 ume Exp $ */
/* $KAME: in6_pcb.h,v 1.18 2002/01/31 14:17:14 jinmei Exp $ */
/* $KAME: in6_pcb.h,v 1.19 2002/02/03 10:32:43 jinmei Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -101,7 +101,6 @@ int in6_mapped_peeraddr __P((struct socket *so, struct sockaddr **nam));
int in6_selecthlim __P((struct in6pcb *, struct ifnet *));
int in6_pcbsetport __P((struct sockaddr_in6 *, struct inpcb *,
struct proc *));
void init_sin6 __P((struct sockaddr_in6 *sin6, struct mbuf *m));
#endif /* _KERNEL */

#endif /* !_NETINET6_IN6_PCB_H_ */

0 comments on commit ece56d1

Please sign in to comment.