Searched refs:cfg_proto (Results 1 – 2 of 2) sorted by relevance
58 static int cfg_proto = SOCK_STREAM; variable144 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()[all …]
105 static int cfg_proto = IPPROTO_UDP; variable311 if (cfg_proto == IPPROTO_UDP) in build_packet()320 proto = cfg_proto; in build_packet()330 else if (cfg_proto == IPPROTO_UDP) in build_packet()433 if (cfg_proto == IPPROTO_TCP) { in send_packet()501 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, cfg_encap ? IPPROTO_UDP : cfg_proto, 0, 2), in __recv_prepare_packet_filter()594 csum = checksum(th, cfg_proto, len); in recv_verify_csum()656 uint16_t proto = cfg_encap ? IPPROTO_UDP : cfg_proto; in recv_verify_packet_ipv4()677 uint16_t proto = cfg_encap ? IPPROTO_UDP : cfg_proto; in recv_verify_packet_ipv6()847 cfg_proto = IPPROTO_TCP; in parse_args()[all …]