summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-05 00:44:05 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-05 00:44:05 +0200
commit450bbeb8a00cc695cc2c62f48c821388d6191e00 (patch)
tree8341bee2e730850ab0c8e8fb37f5d7c2e083e4db /src/fastd.h
parentb6b6e059d7343165633eda7b3b4605220751d2dd (diff)
downloadfastd-450bbeb8a00cc695cc2c62f48c821388d6191e00.tar
fastd-450bbeb8a00cc695cc2c62f48c821388d6191e00.zip
Add support for receiving reordered packets
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fastd.h b/src/fastd.h
index abf8c07..8d7ce59 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -92,8 +92,8 @@ struct _fastd_method {
bool (*session_want_refresh)(fastd_context *ctx, fastd_method_session_state *session);
void (*session_free)(fastd_context *ctx, fastd_method_session_state *session);
- bool (*encrypt)(fastd_context *ctx, fastd_method_session_state *session, fastd_buffer *out, fastd_buffer in);
- bool (*decrypt)(fastd_context *ctx, fastd_method_session_state *session, fastd_buffer *out, fastd_buffer in);
+ bool (*encrypt)(fastd_context *ctx, fastd_peer *peer, fastd_method_session_state *session, fastd_buffer *out, fastd_buffer in);
+ bool (*decrypt)(fastd_context *ctx, fastd_peer *peer, fastd_method_session_state *session, fastd_buffer *out, fastd_buffer in);
};
union _fastd_peer_address {
@@ -133,6 +133,9 @@ struct _fastd_config {
unsigned peer_stale_time;
unsigned eth_addr_stale_time;
+ unsigned reorder_count;
+ unsigned reorder_time;
+
char *ifname;
struct sockaddr_in bind_addr_in;