Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Remove the code which compares sizeof(struct ip6_hdr) with MHLEN.

  • Loading branch information...
commit 9c4e6bd10cea4b94c9d36d9bb6d51c93228edd83 1 parent 99f06f6
fujisawa authored
Showing with 1 addition and 9 deletions.
  1. +1 −9 kame/sys/netinet6/natpt_trans.c
View
10 kame/sys/netinet6/natpt_trans.c
@@ -1,4 +1,4 @@
-/* $KAME: natpt_trans.c,v 1.24 2001/04/04 08:54:03 fujisawa Exp $ */
+/* $KAME: natpt_trans.c,v 1.25 2001/04/08 21:30:36 fujisawa Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -854,10 +854,6 @@ translatingTCPUDPv4To6(struct _cv *cv4, struct pAddr *pad, struct _cv *cv6)
m6next->m_data += cv4->poff;
m6next->m_len -= cv4->poff;
- if (MHLEN > sizeof(struct ip6_hdr)) {
- errno = ENOBUFS;
- return NULL;
- }
MGETHDR(m6, M_NOWAIT, MT_HEADER);
ReturnEnobufs(m6);
@@ -879,10 +875,6 @@ translatingTCPUDPv4To6(struct _cv *cv4, struct pAddr *pad, struct _cv *cv6)
caddr_t tcp4;
caddr_t tcp6;
- if (MHLEN > sizeof(struct ip6_hdr)) {
- errno = ENOBUFS;
- return NULL;
- }
MGETHDR(m6, M_NOWAIT, MT_HEADER);
if (m6 == NULL)
{
Please sign in to comment.
Something went wrong with that request. Please try again.