diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-22 03:14:16 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-22 03:14:16 +0200 |
commit | 2693cfc6e5f1cf1949a8d4fe25fa7c28c7d1d9ae (patch) | |
tree | 8ad9c90938583419511d1879f1ca190b6d996ce2 | |
parent | 1fe3425c97a81f436b7c187377fc44eac200eb66 (diff) | |
download | fastd-2693cfc6e5f1cf1949a8d4fe25fa7c28c7d1d9ae.tar fastd-2693cfc6e5f1cf1949a8d4fe25fa7c28c7d1d9ae.zip |
Remove PACKET_TYPE_LEN define
-rw-r--r-- | src/fastd.h | 2 | ||||
-rw-r--r-- | src/types.h | 3 |
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, |