Re: ether_input: more goto dropanyway

2018-02-02 Thread Alexander Bluhm
On Thu, Feb 01, 2018 at 11:38:54PM +0100, Michele Curti wrote: > this diff makes more use of the goto dropanyway instead of repeating > m_freem() and return. > Also change the sizeof(etherbroadcastaddr) with ETHER_ADDR_LEN for > consistency with the other memcmps. Commited, thanks bluhm

ether_input: more goto dropanyway

2018-02-01 Thread Michele Curti
Hi, this diff makes more use of the goto dropanyway instead of repeating m_freem() and return. Also change the sizeof(etherbroadcastaddr) with ETHER_ADDR_LEN for consistency with the other memcmps. Regards, Michele Index: sys/net/if_ethersubr.c ==