diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-24 22:32:24 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-24 22:32:24 +0100 |
commit | 359e9b6c2b0cc4817b55338f0b89638945d98c50 (patch) | |
tree | 731b1b59a96f9ff84a6a5b531964418bee634815 /src/fastd.h | |
parent | 4ffc28ecd6d914f9c1e5aaf5d5921ee4827bb289 (diff) | |
download | fastd-359e9b6c2b0cc4817b55338f0b89638945d98c50.tar fastd-359e9b6c2b0cc4817b55338f0b89638945d98c50.zip |
Rename methods to protocols; fix some command line parse bugs; implement most of the config file parser
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fastd.h b/src/fastd.h index 4af9f20..d911a71 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -56,7 +56,7 @@ struct _fastd_eth_addr { uint8_t data[ETH_ALEN]; }; -struct _fastd_method { +struct _fastd_protocol { const char *name; bool (*handle_config)(fastd_context *ctx, const fastd_config *conf, const char *option); @@ -89,10 +89,13 @@ struct _fastd_config { uint16_t mtu; fastd_mode mode; - fastd_method *method; + fastd_protocol *protocol; - unsigned n_floating; fastd_peer_config *peers; + + unsigned n_floating; + unsigned n_v4; + unsigned n_v6; }; struct _fastd_context { |