Lines Matching refs:cfg_proto
58 static int cfg_proto = SOCK_STREAM; variable
144 stepsize = cfg_proto == SOCK_STREAM ? cfg_payload_len : 1; in validate_key()
501 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test()
521 cfg_proto, cfg_ipproto); in do_test()
542 if (cfg_proto == SOCK_STREAM) { in do_test()
586 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test()
604 if (cfg_proto != SOCK_STREAM) { in do_test()
755 cfg_proto = SOCK_DGRAM; in parse_opt()
760 cfg_proto = SOCK_RAW; in parse_opt()
765 cfg_proto = SOCK_RAW; in parse_opt()
776 cfg_proto = SOCK_DGRAM; in parse_opt()
796 if (cfg_proto != SOCK_STREAM && cfg_payload_len > 1472) in parse_opt()
851 type = cfg_proto == SOCK_RAW ? SOCK_DGRAM : cfg_proto; in do_listen()
884 if (cfg_proto == SOCK_STREAM) { in do_main()
909 fprintf(stderr, "protocol: %s\n", sock_names[cfg_proto]); in main()