summaryrefslogtreecommitdiffstats
path: root/src/task.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-02-29 22:44:40 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-02-29 22:44:40 +0100
commit0f2e170ea6edee4df0f90a3821d5c054db6bd6b7 (patch)
tree6d90aea5c094eec471e6aa2f25f9f080741d1320 /src/task.h
parentb5892c34186707a50b2afb713e13cbfc3e859920 (diff)
downloadfastd-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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/task.h b/src/task.h
index dcf9cc0..d569176 100644
--- a/src/task.h
+++ b/src/task.h
@@ -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);