Home
last modified time | relevance | path

Searched refs:so_type (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/net/
H A Dsocket.c451 int so_type, optlen = sizeof(so_type); in net_socket_fd_check() local
453 if (getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type, in net_socket_fd_check()
458 if (so_type != SOCK_DGRAM && so_type != SOCK_STREAM) { in net_socket_fd_check()
460 " SOCK_DGRAM or SOCK_STREAM", so_type, fd); in net_socket_fd_check()
463 return so_type; in net_socket_fd_check()
709 int fd, ret, so_type; in net_init_socket() local
715 so_type = net_socket_fd_check(fd, errp); in net_init_socket()
716 if (so_type < 0) { in net_init_socket()
725 switch (so_type) { in net_init_socket()