summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-26 03:06:03 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-26 03:06:03 +0200
commita02fb0711ba496877c111b118b78d404151a8b8d (patch)
tree7537bd38a88e0f46751f93871bb44f66829d23af /src/peer.c
parent44742f8aadb7a8a969f11d9b1d50c8be2573a576 (diff)
downloadfastd-a02fb0711ba496877c111b118b78d404151a8b8d.tar
fastd-a02fb0711ba496877c111b118b78d404151a8b8d.zip
Initial implementation of the FHMQV-C handshake
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peer.c b/src/peer.c
index 282159a..19b8947 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -50,8 +50,8 @@ const fastd_eth_addr* fastd_get_dest_address(const fastd_context *ctx, fastd_buf
}
static inline void reset_peer(fastd_context *ctx, fastd_peer *peer) {
- ctx->conf->protocol->free_peer_private(ctx, peer);
- peer->protocol_private = NULL;
+ ctx->conf->protocol->free_peer_state(ctx, peer);
+ peer->protocol_state = NULL;
int i, deleted = 0;
for (i = 0; i < ctx->n_eth_addr; i++) {
@@ -95,7 +95,7 @@ static fastd_peer* add_peer(fastd_context *ctx) {
peer->next = ctx->peers;
peer->last_req_id = 0;
- peer->protocol_private = NULL;
+ peer->protocol_state = NULL;
ctx->peers = peer;