diff options
Diffstat (limited to 'include/typedefs.h')
-rw-r--r-- | include/typedefs.h | 8 |
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 |