mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
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).
This commit is contained in:
parent
3a1ff175e8
commit
efb69508f4
Notes:
sideshowbarker
2024-07-17 22:23:59 +09:00
Author: https://github.com/IdanHo
Commit: efb69508f4
Pull-request: https://github.com/SerenityOS/serenity/pull/11318
Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 9 additions and 0 deletions
9
Userland/Libraries/LibC/netinet/if_ether.h
Normal file
9
Userland/Libraries/LibC/netinet/if_ether.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define ETH_ALEN 6 // Length of an ethernet address (MAC) in bytes
|
Loading…
Add table
Add a link
Reference in a new issue