On Mon, 21 Jan 2002, Daniel Shane wrote: > > But since we dont know for sure the size of the string (I dont think it's > possible in C to know the size of an allocated pointer), it wont work.
True wrt pointers in general, but libnet _has_ to store the size of the packet data somewhere where you _can_ get at it, otherwise you wouldn't be able to use any data past the first NUL. (Note that this applies no matter what you do with the data - sv_setpvn or provide a method to stringify it: you're in C, you have binary data, you _must_ have or be able to derive the length, or you simply don't have enough information, right?)
