We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc3ff9c commit 7d2a771Copy full SHA for 7d2a771
1 file changed
LibcSharp/Structs.cs
@@ -0,0 +1,15 @@
1
+using System.Runtime.InteropServices;
2
+
3
+namespace LibcSharp;
4
5
+[StructLayout(LayoutKind.Sequential, Pack = 1)]
6
+public struct Ether_header
7
+{
8
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.ETH_ALEN)]
9
+ public byte[] ether_dhost; // destination eth addr
10
11
12
+ public byte[] ether_shost; // source ether addr
13
14
+ public ushort ether_type; // packet type ID field
15
+}
0 commit comments