From 359e9b6c2b0cc4817b55338f0b89638945d98c50 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 24 Mar 2012 22:32:24 +0100 Subject: Rename methods to protocols; fix some command line parse bugs; implement most of the config file parser --- src/fastd.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/fastd.h') 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 { -- cgit v1.2.3