Esempio n. 1
0
def config_argparser():
    parser = measure_baseclass.config_argparser()
    parser.add_argument('--query-class', default=['IN'], nargs=1, help='Must be "IN" or "CHAOS" (Default: "IN")')
    parser.add_argument('--query-type', default=['A'], nargs=1, help='"A", "AAAA", "PTR", ... (Default: "A")')
    parser.add_argument('--query-arg', default=['None'], nargs=1, help='DNS Resolver to use. (Default: Use probe\'s resolver')
    parser.add_argument('--protocol', default=['UDP'], nargs=1, help='Must be "TCP" or "UDP" (Default: "UDP")')
    return parser
Esempio n. 2
0
def config_argparser():

    parser = measure_baseclass.config_argparser()
    parser.add_argument('-p', '--protocol', default=['ICMP'], nargs=1, help='Must be ICMP or UDP (default: ICMP)')
    parser.add_argument('--dont-frag', action='store_true', help='Don\'t fragment the packet (default: off)')
    parser.add_argument('--paris', default=[0], type=int, 
                        help='Use Paris. Value must be between 1 and 16. (default: off)')
    parser.add_argument('--timeout', default=[4000], type=int, # list default and type=int do not seem to work
                        help='Value (in milliseconds) must be between 1 and 60000 (default: 4000)')
    parser.add_argument('--npackets', default=[3], nargs=1,
                        help='Number of packets to send to each hop (default: 3)')
    return parser
Esempio n. 3
0
def config_argparser():
    parser = measure_baseclass.config_argparser()
    parser.add_argument('-n', '--num-packets', default=[3], nargs=1, help='Number of packets (default: 3)')
    return parser
Esempio n. 4
0
def config_argparser():
    parser = measure_baseclass.config_argparser()
    return parser