Added function to extract range from packet and into int struct