summaryrefslogtreecommitdiffstats
path: root/src/packet.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-19 17:42:56 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-19 17:42:56 +0200
commit8c91443808ce376947ff387eaffca6e8cfbe9251 (patch)
tree227a4367a2c013bbee40dc99c8abafc52da5ee2e /src/packet.h
parentc5b12202c834fe484634131ee9a91465b9e6e7bc (diff)
downloadfastd-8c91443808ce376947ff387eaffca6e8cfbe9251.tar
fastd-8c91443808ce376947ff387eaffca6e8cfbe9251.zip
Don't regenerate session handshake keypair for every handshake so a global state can be used; remove the concept of temporary peers
These changes will fix the possibility of a TCP-SYN-Flood-like DoS attack, at the cost of another protocol change: as we can't count request IDs when we don't know have temporary peers, request IDs are removed completely.
Diffstat (limited to 'src/packet.h')
-rw-r--r--src/packet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/packet.h b/src/packet.h
index 76a64d1..210955d 100644
--- a/src/packet.h
+++ b/src/packet.h
@@ -37,8 +37,8 @@ typedef enum _fastd_packet_type {
} fastd_packet_type;
typedef struct __attribute__ ((__packed__)) _fastd_packet {
- uint8_t req_id;
- uint16_t rsv;
+ uint8_t rsv1;
+ uint16_t rsv2;
uint8_t tlv_data[];
} fastd_packet;