- Get the length from each packet header instead of assuming that all packets will...
authorCameron Gutman <aicommander@gmail.com>
Thu, 1 Oct 2009 21:00:41 +0000 (21:00 +0000)
committerCameron Gutman <aicommander@gmail.com>
Thu, 1 Oct 2009 21:00:41 +0000 (21:00 +0000)
svn path=/trunk/; revision=43251

reactos/lib/drivers/oskittcp/oskittcp/ip_output.c

index 13d5cc3..647de70 100644 (file)
@@ -517,8 +517,8 @@ sendorfree:
                error = ENOBUFS;
                goto done;
            }
-           m_copydata( m, 0, htons(ip->ip_len), new_m->m_data );
-           new_m->m_len = htons(ip->ip_len);
+           m_copydata( m, 0, m->m_pkthdr.len, new_m->m_data );
+           new_m->m_len = m->m_pkthdr.len;
            error = OtcpEvent.PacketSend( OtcpEvent.ClientData,
                                          (OSK_PCHAR)new_m->m_data, new_m->m_len );
            m_free( new_m );