summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-26 13:27:03 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-26 13:27:03 +0000
commit1a17ad2735e6312b07099aac210d79fcea8c9dfc (patch)
treeac362cdddaabff3e262cca8afe40f88ce346aaa3 /src/uanytun.c
parentcleanup (diff)
added -4 and -6 command line arguments
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index d7873d8..6e276bf 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -338,8 +338,11 @@ int main(int argc, char* argv[])
if(ret == -2) {
fprintf(stderr, "memory error on options_parse, exitting\n");
}
+ if(ret == -3) {
+ fprintf(stderr, "syntax error: -4 and -6 are mutual exclusive\n\n");
+ }
- if(ret == -1 || ret > 0)
+ if(ret != -2)
options_print_usage();
options_clear(&opt);