From 01a1d2b0069802ea2dde8ece79b3ec50c4468a96 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sat, 26 Aug 2017 08:25:38 -0500 Subject: [PATCH] trival --- config.example => example.conf | 0 main.cpp | 12 +++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) rename config.example => example.conf (100%) diff --git a/config.example b/example.conf similarity index 100% rename from config.example rename to example.conf diff --git a/main.cpp b/main.cpp index a5e098d..44220d9 100755 --- a/main.cpp +++ b/main.cpp @@ -2553,6 +2553,7 @@ void print_help() // printf(" \n"); printf("other options:\n"); printf(" --conf-file read options from a configuration file instead of command line\n"); + printf(" check example.conf in repo for format\n"); printf(" --log-level 0:never 1:fatal 2:error 3:warn \n"); printf(" 4:info (default) 5:debug 6:trace\n"); // printf("\n"); @@ -2567,10 +2568,11 @@ void print_help() printf(" 1:increase every packet(default)\n"); printf(" 2:increase randomly, about every 3 packets\n"); // printf("\n"); - printf(" --lower-level send packet at OSI level 2, format:'if_name#dest_mac_adress'\n"); - printf(" ie:'eth0#00:23:45:67:89:b9'.Beta.\n"); - printf(" --gen-add generate iptables rule and add it for you,then exit.overrides -g\n"); - printf(" --keep_rule monitor iptables and auto re-add if necessary.Implys -a\n"); + printf(" --lower-level send packets at OSI level 2, format:'if_name#dest_mac_adress'\n"); + printf(" ie:'eth0#00:23:45:67:89:b9'.or try '--lower-level auto' to obtain\n"); + printf(" the parameter automatically,specify it manually if 'auto' failed\n"); + printf(" --gen-add generate iptables rule and add it permanently,then exit.overrides -g\n"); + printf(" --keep-rule monitor iptables and auto re-add if necessary.implys -a\n"); printf(" --clear clear any iptables rules added by this program.overrides everything\n"); printf(" -h,--help print this help message\n"); @@ -3292,7 +3294,7 @@ int test() int main(int argc, char *argv[]) { //test(); - printf("%s\n",my_ntoa(0x00ffffff)); + //printf("%s\n",my_ntoa(0x00ffffff)); //auto a=string_to_vec("a b c d "); //printf("%d\n",(int)a.size()); //printf("%d %d %d %d",larger_than_u32(1,2),larger_than_u32(2,1),larger_than_u32(0xeeaaeebb,2),larger_than_u32(2,0xeeaaeebb));