diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-26 19:16:29 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-26 19:16:29 +0200 |
commit | 2ffca7de4ef14aa03bc5a855005edbc9849862a7 (patch) | |
tree | 7168a61299fd0e6b79b6d440018bab6db3914c54 /src/fastd.h | |
parent | e89cfb2f0b8159f602ecae6b53c0ee59b112601d (diff) | |
download | fastd-2ffca7de4ef14aa03bc5a855005edbc9849862a7.tar fastd-2ffca7de4ef14aa03bc5a855005edbc9849862a7.zip |
Move around some structure fields
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fastd.h b/src/fastd.h index 873da61..b3d376e 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -59,7 +59,7 @@ struct _fastd_eth_addr { struct _fastd_protocol { const char *name; - void (*init)(fastd_context *ctx); + void (*init)(fastd_context *ctx, fastd_config *conf); size_t (*max_packet_size)(fastd_context *ctx); size_t (*min_encrypt_head_space)(fastd_context *ctx); @@ -98,6 +98,8 @@ struct _fastd_config { unsigned n_floating; unsigned n_v4; unsigned n_v6; + + fastd_protocol_config *protocol_config; }; struct _fastd_context { @@ -115,8 +117,6 @@ struct _fastd_context { size_t eth_addr_size; size_t n_eth_addr; fastd_peer_eth_addr *eth_addr; - - fastd_protocol_context *protocol_context; }; |