Lines Matching refs:proto
51 enum proto_type proto; member
80 static const char *smp_udp_proto_to_name(enum proto_type proto) in smp_udp_proto_to_name() argument
83 if (proto == PROTOCOL_IPV4) { in smp_udp_proto_to_name()
89 if (proto == PROTOCOL_IPV6) { in smp_udp_proto_to_name()
162 static int create_socket(enum proto_type proto, int *sock) in create_socket() argument
178 if (proto == PROTOCOL_IPV4) { in create_socket()
189 if (proto == PROTOCOL_IPV6) { in create_socket()
204 smp_udp_proto_to_name(proto), err); in create_socket()
212 smp_udp_proto_to_name(proto), err); in create_socket()
232 rc = create_socket(conf->proto, &conf->sock); in smp_udp_receive_thread()
239 LOG_INF("Started (%s)", smp_udp_proto_to_name(conf->proto)); in smp_udp_receive_thread()
265 LOG_ERR("recvfrom error (%s): %i, %d", smp_udp_proto_to_name(conf->proto), in smp_udp_receive_thread()
386 smp_udp_configs.ipv4.proto = PROTOCOL_IPV4; in smp_udp_start()
408 smp_udp_configs.ipv6.proto = PROTOCOL_IPV6; in smp_udp_start()