Home
last modified time | relevance | path

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

/external/qemu/slirp/
Dsocket.h40 u_char so_type; /* Type of socket, UDP or TCP */ member
Dip_icmp.c132 so->so_type = IPPROTO_ICMP; in icmp_input()
Dslirp.c935 qemu_put_byte(f, so->so_type); in slirp_socket_save()
1042 so->so_type = qemu_get_byte(f); in slirp_socket_load()
Dsocket.c452 if (so->so_type == IPPROTO_ICMP) { /* This is a "ping" reply */ in sorecvfrom()
/external/qemu/slirp-android/
Dsocket.h41 u_char so_type; /* Type of socket, UDP or TCP */ member
Dip_icmp.c136 so->so_type = IPPROTO_ICMP; in icmp_input()
Dslirp.c1030 qemu_put_byte(f, so->so_type); in slirp_socket_save()
1137 so->so_type = qemu_get_byte(f); in slirp_socket_load()
Dsocket.c459 if (so->so_type == IPPROTO_ICMP) { /* This is a "ping" reply */ in sorecvfrom()
/external/qemu/
Dnet.c1751 int so_type=-1, optlen=sizeof(so_type); in net_socket_fd_init() local
1753 if(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&so_type, in net_socket_fd_init()
1758 switch(so_type) { in net_socket_fd_init()
1765 …stderr, "qemu: warning: socket type=%d for fd=%d is not SOCK_DGRAM or SOCK_STREAM\n", so_type, fd); in net_socket_fd_init()
Dsockets.c1090 int so_type = socket_getoption(fd, SOL_SOCKET, SO_TYPE, -1); in socket_get_type() local
1091 return socket_type_from_bsd(so_type); in socket_get_type()
Dnet-android.c1864 SocketType so_type = socket_get_type(fd); in net_socket_fd_init() local
1866 switch(so_type) { in net_socket_fd_init()
1873 …stderr, "qemu: warning: socket type=%d for fd=%d is not SOCK_DGRAM or SOCK_STREAM\n", so_type, fd); in net_socket_fd_init()