C casting foundations; parsing network packets. From Swarthmore CS43