Hi Mohammad,
> + byte += 2;
> + if (*byte == (char) 0xFF)
> + *byte = crafted_id [1];
> + byte ++;
> + if (*byte == (char) 0xFF)
> + *byte = crafted_id [0];
> + byte ++;
I haven't applied this chunk. Now it sets the ID number on-the-fly,
so it doesn't need to do it any longer.
> + length = (*byte << 8);
> + byte ++;
> + length |= *byte;
> + byte ++;
> + length += *byte;
>
> + last_pad = byte;
> + byte ++;
> + byte += (length + 1);
> + }
> +
> + if ((buf->len % 8) != 0)
> + {
> + pad = 8 - (buf->len % 8);
> + cherokee_buffer_ensure_size (buf, buf->len + pad);
> +
> + *last_pad = pad;
> + cherokee_buffer_add (buf, padding, pad);
> + }
> +
> +}
It would be wonderful to be able to localize the last packet rather
than parsing all the buffer.. I will take a look at it.
Thanks Mohammad!
--
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee