diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-02-29 22:44:40 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-02-29 22:44:40 +0100 |
commit | 0f2e170ea6edee4df0f90a3821d5c054db6bd6b7 (patch) | |
tree | 6d90aea5c094eec471e6aa2f25f9f080741d1320 /src/task.h | |
parent | b5892c34186707a50b2afb713e13cbfc3e859920 (diff) | |
download | fastd-0f2e170ea6edee4df0f90a3821d5c054db6bd6b7.tar fastd-0f2e170ea6edee4df0f90a3821d5c054db6bd6b7.zip |
Only send packets to the right host in ethernet mode
Diffstat (limited to 'src/task.h')
-rw-r--r-- | src/task.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -41,14 +41,14 @@ typedef enum _fastd_task_type { typedef struct _fastd_task_send { fastd_task_type type; - const fastd_peer *peer; + fastd_peer *peer; uint8_t packet_type; fastd_buffer buffer; } fastd_task_send; typedef struct _fastd_task_handle_recv { fastd_task_type type; - const fastd_peer *peer; + fastd_peer *peer; uint8_t packet_type; fastd_buffer buffer; } fastd_task_handle_recv; @@ -71,10 +71,10 @@ static inline int fastd_task_timeout(fastd_context *ctx) { return fastd_queue_timeout(&ctx->task_queue); } -void fastd_task_put_send_handshake(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer); +void fastd_task_put_send_handshake(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); -void fastd_task_put_send(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer); -void fastd_task_put_handle_recv(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer); +void fastd_task_put_send(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); +void fastd_task_put_handle_recv(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); void fastd_task_schedule_handshake(fastd_context *ctx, fastd_peer *peer, int timeout); |