summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fastd.h2
-rw-r--r--src/types.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 7e04132..1cf9c12 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -376,7 +376,7 @@ static inline fastd_eth_addr_t fastd_get_dest_address(const fastd_buffer_t buffe
}
static inline size_t fastd_max_outer_packet(void) {
- return PACKET_TYPE_LEN + fastd_max_inner_packet() + conf.max_overhead;
+ return 1 + fastd_max_inner_packet() + conf.max_overhead;
}
static inline bool fastd_peer_address_is_v6_ll(const fastd_peer_address_t *addr) {
diff --git a/src/types.h b/src/types.h
index c7825ef..e53449a 100644
--- a/src/types.h
+++ b/src/types.h
@@ -51,9 +51,6 @@ static const fastd_tristate_t fastd_tristate_false = {true, false};
static const fastd_tristate_t fastd_tristate_undef = {false, false};
-#define PACKET_TYPE_LEN 1
-
-
typedef enum fastd_packet_type {
PACKET_UNKNOWN = 0,
PACKET_HANDSHAKE,