From 8c91443808ce376947ff387eaffca6e8cfbe9251 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 19 Apr 2012 17:42:56 +0200 Subject: 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. --- src/packet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/packet.h') 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; -- cgit v1.2.3