Fix of reading/setting the length of the IP header. Was one byte off. Correct parsing of Allow header. Correction of writing the lenght of upd and ip headers when writing to output stream.