Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed inputopts.

  • Loading branch information...
commit 04311919fd0e561e7217b661e82fe4745ed98aaf 1 parent 0e73f81
jinmei authored
Showing with 0 additions and 15 deletions.
  1. +0 −15 kame/sys/netinet6/in6_pcb.c
View
15 kame/sys/netinet6/in6_pcb.c
@@ -138,18 +138,9 @@ in6_pcballoc(so, head)
in6p->in6p_fsa.sin6_family = in6p->in6p_lsa.sin6_family = AF_INET6;
in6p->in6p_fsa.sin6_len =
in6p->in6p_lsa.sin6_len = sizeof(struct sockaddr_in6);
- /* XXX: we should allocate inputopts only when we need it. */
- MALLOC(in6p->in6p_inputopts, struct ip6_recvpktopts *,
- sizeof(struct ip6_recvpktopts), M_IP6OPT, M_NOWAIT);
- if (in6p->in6p_inputopts == NULL) {
- FREE(in6p, M_PCB);
- return (ENOBUFS); /* XXX */
- }
- bzero(in6p->in6p_inputopts, sizeof(struct ip6_recvpktopts));
#ifdef IPSEC
error = ipsec_init_pcbpolicy(so, &in6p->in6p_sp);
if (error != 0) {
- FREE(in6p->in6p_inputopts, M_IP6OPT);
FREE(in6p, M_PCB);
return error;
}
@@ -535,12 +526,6 @@ in6_pcbdetach(in6p)
sofree(so);
}
- /* Free all received options. */
- if (in6p->in6p_inputopts) {
- m_freem(in6p->in6p_inputopts->head); /* this safe */
- FREE(in6p->in6p_inputopts, M_IP6OPT);
- }
-
ip6_freepcbopts(in6p->in6p_outputopts);
ip6_freemoptions(in6p->in6p_moptions);
Please sign in to comment.
Something went wrong with that request. Please try again.