[ros-dev] [ros-diffs] [cgutman] 43251: - Get the length from each packet header instead of assuming that all packets will be the length of the first one

Matthieu Suiche msuiche at gmail.com
Fri Oct 2 05:18:20 CEST 2009


Lol, this bug is really nice.
--
Matthieu Suiche



On Thu, Oct 1, 2009 at 11:00 PM,  <cgutman at svn.reactos.org> wrote:
> 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/oskittcp/ip_output.c?rev=43251&r1=43250&r2=43251&view=diff
> ==============================================================================
> --- 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 );
>
>
>



More information about the Ros-dev mailing list