Fixed endianess errors in IP packet crafting