summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-03-14 13:09:59 +0100
committerAnton Kling <anton@kling.gg>2024-03-14 13:09:59 +0100
commit2e8b474d4219e7faaac3823e73c8d528c2698a37 (patch)
tree7d93b5fd220e8b703ba69f9b55122d15c9d619fb /include
parent051ac9f1941e8bc6ad87beccb61a2d53111ba8ea (diff)
random changes made
Diffstat (limited to 'include')
-rw-r--r--include/typedefs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/typedefs.h b/include/typedefs.h
index e2226fd..c10482c 100644
--- a/include/typedefs.h
+++ b/include/typedefs.h
@@ -1,3 +1,5 @@
+#ifndef TYPEDEFS_H
+#define TYPEDEFS_H
#include <stdint.h>
typedef uint8_t u8;
@@ -10,4 +12,10 @@ typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
+typedef union {
+ u8 a[4];
+ u32 d;
+} ipv4_t;
+
#define U32_MAX 4294967295
+#endif