From c6cce0f5aac6640d5946c7ba7a258a04deac9423 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 20 Nov 2013 02:17:15 +0100 Subject: Replace max_packet_size functions by a max_overhead field --- src/methods/null/null.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/methods/null/null.c') diff --git a/src/methods/null/null.c b/src/methods/null/null.c index 1b50cfb..3f23866 100644 --- a/src/methods/null/null.c +++ b/src/methods/null/null.c @@ -37,10 +37,6 @@ static bool method_provides(const char *name) { return !strcmp(name, "null"); } -static size_t method_max_packet_size(fastd_context_t *ctx) { - return fastd_max_packet_size(ctx); -} - static size_t method_key_length(fastd_context_t *ctx UNUSED, const char *name UNUSED) { return 0; } @@ -86,7 +82,7 @@ static bool method_passthrough(fastd_context_t *ctx UNUSED, fastd_peer_t *peer U const fastd_method_t fastd_method_null = { .provides = method_provides, - .max_packet_size = method_max_packet_size, + .max_overhead = 0, .min_encrypt_head_space = 0, .min_decrypt_head_space = 0, .min_encrypt_tail_space = 0, -- cgit v1.2.3