summaryrefslogtreecommitdiff
path: root/lib/types.h
blob: 80d21d4933a3871b3406914c97e8938210739efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * XMap Copyright 2021 Xiang Li from Network and Information Security Lab
 * Tsinghua University
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 */

#ifndef XMAP_TYPES_H
#define XMAP_TYPES_H

#include <stdint.h>

typedef uint8_t       ipaddr_n_t; // IPv4/6 address network order
typedef uint16_t      port_h_t;   // port host order
typedef unsigned char macaddr_t;
typedef uint32_t      index_h_t; // index host order

#endif // XMAP_TYPES_H