Author: cgutman Date: Thu Oct 1 23:00:41 2009 New Revision: 43251
URL: http://svn.reactos.org/svn/reactos?rev=43251&view=rev Log: - Get the length from each packet header instead of assuming that all packets will be the length of the first one
Modified: trunk/reactos/lib/drivers/oskittcp/oskittcp/ip_output.c
Modified: trunk/reactos/lib/drivers/oskittcp/oskittcp/ip_output.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/oskittcp/oskitt... ============================================================================== --- trunk/reactos/lib/drivers/oskittcp/oskittcp/ip_output.c [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/oskittcp/oskittcp/ip_output.c [iso-8859-1] Thu Oct 1 23:00:41 2009 @@ -517,8 +517,8 @@ 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 );