i was able to determine that the malloc function makes the buffer big 
enough to hold the length and then returns a pointer past that. it is 
scary to see the assignment in the proto functions, but at least it 
isn't a problem.

On 2013-05-16 09:23, Joe Pruett wrote:
> i didn't see this in the docs, but from a quick reading of the code, it
> would appear that udp tunnels don't do fragmentation. so if i am trying
> to bridge an ethernet, i should use tcp to avoid truncating packets, right?
>
> and also from looking at the code for the tcp and udp protos, i see that
> the packet size is being written into memory that is before the
> beginning of the buffer. looking at linkfd.c it doesn't look like the
> buffer being passed in is really designed for that. am i missing something?
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Vtun-Users mailing list
> Vtun-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vtun-users
>


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Vtun-Users mailing list
Vtun-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vtun-users

Reply via email to