use ethhdr and iphdr pointer to get ethtype and protocol value