summaryrefslogtreecommitdiff
path: root/include/typedefs.h
blob: c10482c7214c846a4f9679d475e872a61c9fa417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef TYPEDEFS_H
#define TYPEDEFS_H
#include <stdint.h>

typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;

typedef int8_t i8;
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