diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-01 11:04:39 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-01 11:04:39 +0100 |
commit | 80cbd0c9bd83fd0501b505f54ec8e29028894af5 (patch) | |
tree | 1ed94db626c470b9d468a61b3d84a88aafd9c233 /src/config.l | |
parent | 921485a5bc0c8448bcc23ae5587777e762473dd2 (diff) | |
download | fastd-80cbd0c9bd83fd0501b505f54ec8e29028894af5.tar fastd-80cbd0c9bd83fd0501b505f54ec8e29028894af5.zip |
Refactor bind address configuration
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.l b/src/config.l index 404384e..9e82239 100644 --- a/src/config.l +++ b/src/config.l @@ -104,12 +104,12 @@ default { TOKEN(TOK_DEFAULT); } [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} { UPDATE_LOCATION; - if (!inet_pton(AF_INET, yytext, &yylval->addr)) { + if (!inet_pton(AF_INET, yytext, &yylval->addr4)) { yylval->error = "invalid address"; return -1; } - return TOK_ADDR; + return TOK_ADDR4; } [;:\{\}] { UPDATE_LOCATION; return yytext[0]; } |