rework in_addr, add code to get broadcast and masks