summaryrefslogtreecommitdiffstats
path: root/src/peer.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-26 19:16:29 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-26 19:16:29 +0200
commit2ffca7de4ef14aa03bc5a855005edbc9849862a7 (patch)
tree7168a61299fd0e6b79b6d440018bab6db3914c54 /src/peer.h
parente89cfb2f0b8159f602ecae6b53c0ee59b112601d (diff)
downloadfastd-2ffca7de4ef14aa03bc5a855005edbc9849862a7.tar
fastd-2ffca7de4ef14aa03bc5a855005edbc9849862a7.zip
Move around some structure fields
Diffstat (limited to 'src/peer.h')
-rw-r--r--src/peer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/peer.h b/src/peer.h
index cd27833..8386a25 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -55,8 +55,12 @@ struct _fastd_peer {
struct _fastd_peer_config {
fastd_peer_config *next;
+ bool enabled;
+
fastd_peer_address address;
char *key;
+
+ fastd_protocol_peer_config *protocol_config;
};
struct _fastd_peer_eth_addr {
@@ -69,6 +73,7 @@ struct _fastd_peer_eth_addr {
const fastd_eth_addr* fastd_get_source_address(const fastd_context *ctx, fastd_buffer buffer);
const fastd_eth_addr* fastd_get_dest_address(const fastd_context *ctx, fastd_buffer buffer);
+void fastd_peer_disable(fastd_context *ctx, fastd_peer *peer);
void fastd_peer_reset(fastd_context *ctx, fastd_peer *peer);
fastd_peer* fastd_peer_add(fastd_context *ctx, fastd_peer_config *conf);
fastd_peer* fastd_peer_add_temp(fastd_context *ctx, const fastd_peer_address *address);