net/eth: Use void pointers
commit85427bf3884f42626208865f3fe594b3919566fb
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 23 May 2023 02:43:21 +0000 (23 11:43 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 23 May 2023 07:20:15 +0000 (23 15:20 +0800)
treef98856621677ec89e6f99ad101e5be9b52cc7229
parent5c30aea4c93e90ed67ee6d279d8bdf7328953638
net/eth: Use void pointers

The uses of uint8_t pointers were misleading as they are never accessed
as an array of octets and it even require more strict alignment to
access as struct eth_header.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/net/eth.h
net/eth.c