From efb69508f48645e1dc84d89e49ea8636fe4d95e9 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sun, 5 Dec 2021 01:37:56 +0200 Subject: [PATCH] LibC: Add the netinet/if_ether.h header and define ETH_ALEN This header defines various constants related to ethernet packets, with ETH_ALEN being the length of an ethernet address (which is needed by some ports). --- Userland/Libraries/LibC/netinet/if_ether.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Userland/Libraries/LibC/netinet/if_ether.h diff --git a/Userland/Libraries/LibC/netinet/if_ether.h b/Userland/Libraries/LibC/netinet/if_ether.h new file mode 100644 index 0000000000..4b0f390c42 --- /dev/null +++ b/Userland/Libraries/LibC/netinet/if_ether.h @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2021, Idan Horowitz + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#define ETH_ALEN 6 // Length of an ethernet address (MAC) in bytes