Rewritten from scratch. Only ethernet header is processed