Move this check out of the unicast/broadcast conditional. Also add a check for the network proto (IP), and check its address length too.