Lines Matching refs:cfg_proto
105 static int cfg_proto = IPPROTO_UDP; variable
311 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()
854 cfg_proto = IPPROTO_UDP; in parse_args()
882 if (cfg_proto != IPPROTO_UDP && (cfg_zero_sum || cfg_zero_disable)) in parse_args()
969 if (cfg_proto == IPPROTO_UDP) in do_rx()
984 if (cfg_proto == IPPROTO_UDP) { in do_rx()