Refactor skb_network_protocol()