Searched refs:sock (Results 1 - 25 of 407) sorted by relevance

1234567891011>>

/external/wpa_supplicant_8/hostapd/src/drivers/
H A Dlinux_ioctl.h12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
13 int linux_iface_up(int sock, const char *ifname);
14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
16 int linux_br_add(int sock, const char *brname);
17 int linux_br_del(int sock, const char *brname);
18 int linux_br_add_if(int sock, const char *brname, const char *ifname);
19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
/external/wpa_supplicant_8/src/drivers/
H A Dlinux_ioctl.h12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
13 int linux_iface_up(int sock, const char *ifname);
14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
16 int linux_br_add(int sock, const char *brname);
17 int linux_br_del(int sock, const char *brname);
18 int linux_br_add_if(int sock, const char *brname, const char *ifname);
19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Dlinux_ioctl.h12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
13 int linux_iface_up(int sock, const char *ifname);
14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
16 int linux_br_add(int sock, const char *brname);
17 int linux_br_del(int sock, const char *brname);
18 int linux_br_add_if(int sock, const char *brname, const char *ifname);
19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
/external/autotest/client/profilers/powertop/src/
H A Dethernet.c54 int sock; local
61 sock = socket(AF_INET, SOCK_DGRAM, 0);
62 if (sock<0)
68 ret = ioctl(sock, SIOCGIFFLAGS, &ifr);
70 close(sock);
75 close(sock);
83 ioctl(sock, SIOCETHTOOL, &ifr);
86 ioctl(sock, SIOCETHTOOL, &ifr);
88 close(sock);
95 int sock; local
[all...]
/external/android-clat/
H A Dsetif.h24 int add_anycast_address(int sock, const struct in6_addr *addr, const char *interface);
25 int del_anycast_address(int sock, const struct in6_addr *addr);
/external/libnl/src/
H A Dnl-link-name2ifindex.c23 struct nl_sock *sock; local
30 sock = nl_cli_alloc_socket();
31 nl_cli_connect(sock, NETLINK_ROUTE);
32 link_cache = nl_cli_link_alloc_cache(sock);
H A Dgenl-ctrl-list.c35 struct nl_sock *sock; local
42 sock = nl_cli_alloc_socket();
43 nl_cli_connect(sock, NETLINK_GENERIC);
44 family_cache = alloc_genl_family_cache(sock);
H A Dnl-link-ifindex2name.c23 struct nl_sock *sock; local
31 sock = nl_cli_alloc_socket();
32 nl_cli_connect(sock, NETLINK_ROUTE);
33 link_cache = nl_cli_link_alloc_cache(sock);
H A Dnl-route-get.c45 struct nl_sock *sock; local
53 sock = nl_cli_alloc_socket();
54 nl_cli_connect(sock, NETLINK_ROUTE);
55 link_cache = nl_cli_link_alloc_cache(sock);
56 route_cache = nl_cli_route_alloc_cache(sock, 0);
71 err = nl_send_auto_complete(sock, m);
76 nl_socket_modify_cb(sock, NL_CB_VALID, NL_CB_CUSTOM, cb, NULL);
78 if (nl_recvmsgs_default(sock) < 0)
H A Dnl-neightbl-list.c30 struct nl_sock *sock; local
37 sock = nl_cli_alloc_socket();
38 nl_cli_connect(sock, NETLINK_ROUTE);
39 link_cache = nl_cli_link_alloc_cache(sock);
40 neightbl_cache = nl_cli_alloc_cache(sock, "neighbour table",
H A Dnl-rule-list.c35 struct nl_sock *sock; local
43 sock = nl_cli_alloc_socket();
44 nl_cli_connect(sock, NETLINK_ROUTE);
45 link_cache = nl_cli_link_alloc_cache(sock);
46 rule_cache = nl_cli_rule_alloc_cache(sock);
H A Dnl-monitor.c37 struct nl_sock *sock; local
63 sock = nl_cli_alloc_socket();
64 nl_socket_disable_seq_check(sock);
65 nl_socket_modify_cb(sock, NL_CB_VALID, NL_CB_CUSTOM, event_input, NULL);
77 nl_cli_connect(sock, NETLINK_ROUTE);
83 if ((err = nl_socket_add_membership(sock, known_groups[i].gr_id)) < 0) {
95 link_cache = nl_cli_link_alloc_cache(sock);
101 fd = nl_socket_get_fd(sock);
110 nl_recvmsgs_default(sock);
H A Dnf-monitor.c39 struct nl_sock *sock; local
53 sock = nl_cli_alloc_socket();
54 nl_socket_disable_seq_check(sock);
55 nl_socket_modify_cb(sock, NL_CB_VALID, NL_CB_CUSTOM, event_input, NULL);
67 nl_cli_connect(sock, NETLINK_NETFILTER);
74 err = nl_socket_add_membership(sock, groups[i].gr_id);
91 fd = nl_socket_get_fd(sock);
100 nl_recvmsgs_default(sock);
H A Dnl-neigh-delete.c17 struct nl_sock *sock; variable in typeref:struct:nl_sock
54 if ((err = rtnl_neigh_delete(sock, neigh, 0)) < 0)
71 sock = nl_cli_alloc_socket();
72 nl_cli_connect(sock, NETLINK_ROUTE);
73 link_cache = nl_cli_link_alloc_cache(sock);
74 neigh_cache = nl_cli_neigh_alloc_cache(sock);
H A Dnl-qdisc-delete.c17 struct nl_sock *sock; variable in typeref:struct:nl_sock
53 if ((err = rtnl_qdisc_delete(sock, qdisc)) < 0)
69 sock = nl_cli_alloc_socket();
70 nl_cli_connect(sock, NETLINK_ROUTE);
71 link_cache = nl_cli_link_alloc_cache(sock);
72 qdisc_cache = nl_cli_qdisc_alloc_cache(sock);
/external/autotest/client/site_tests/kernel_CryptoAPI/src/
H A Dcrypto_load_mod.c21 int sock; local
26 sock = socket(AF_ALG, SOCK_SEQPACKET, 0);
27 if (sock < 0) {
32 bind(sock, (struct sockaddr *) &sa_alg, sizeof(sa_alg));
33 close(sock);
/external/libnl/tests/
H A Dtest-genl.c5 struct nl_sock *sock; local
10 sock = nlt_alloc_socket();
11 nlt_connect(sock, NETLINK_GENERIC);
25 if ((err = nl_send_auto_complete(sock, msg)) < 0)
28 if ((err = nl_recvmsgs_default(sock)) < 0)
32 nl_close(sock);
33 nl_socket_free(sock);
/external/deqp/framework/delibs/deutil/
H A DdeSocket.c412 deSocket* sock = (deSocket*)deCalloc(sizeof(deSocket)); local
413 if (!sock)
414 return sock;
422 sock->stateLock = deMutex_create(0);
423 sock->handle = DE_INVALID_SOCKET_HANDLE;
424 sock->state = DE_SOCKETSTATE_CLOSED;
426 return sock;
429 void deSocket_destroy (deSocket* sock) argument
431 if (sock->state != DE_SOCKETSTATE_CLOSED)
432 deSocket_close(sock);
438 deSocket_getState(const deSocket* sock) argument
443 deSocket_getOpenChannels(const deSocket* sock) argument
448 deSocket_setFlags(deSocket* sock, deUint32 flags) argument
496 deSocket_listen(deSocket* sock, const deSocketAddress* address) argument
542 deSocket_accept(deSocket* sock, deSocketAddress* clientAddress) argument
578 deSocket_connect(deSocket* sock, const deSocketAddress* address) argument
611 deSocket_shutdown(deSocket* sock, deUint32 channels) argument
696 deSocket_close(deSocket* sock) argument
761 deSocket_setChannelsClosed(deSocket* sock, deUint32 channels) argument
772 deSocket_send(deSocket* sock, const void* buf, size_t bufSize, size_t* numSentPtr) argument
789 deSocket_receive(deSocket* sock, void* buf, size_t bufSize, size_t* numReceivedPtr) argument
[all...]
/external/apache-http/src/org/apache/http/conn/scheme/
H A DPlainSocketFactory.java89 public Socket connectSocket(Socket sock, String host, int port, argument
101 if (sock == null)
102 sock = createSocket();
112 sock.bind(isa);
124 sock.connect(remoteAddress, timeout);
128 return sock;
138 * @param sock the connected socket
144 public final boolean isSecure(Socket sock) argument
147 if (sock == null) {
153 if (sock
[all...]
/external/libvncserver/libvncclient/
H A Dsockets.c45 #define read(sock,buf,len) recv(sock,buf,len,0)
46 #define write(sock,buf,len) send(sock,buf,len,0)
160 i = read(client->sock, client->buf + client->buffered, RFB_BUF_SIZE - client->buffered);
198 i = read(client->sock, out, n);
264 j = write(client->sock, buf + i, (n - i));
276 FD_SET(client->sock,&fds);
278 if (select(client->sock+1, NULL, &fds, NULL, NULL) <= 0) {
322 int sock; local
362 int sock; local
458 int sock, port; local
506 int sock; local
618 int sock; local
645 SetNonBlocking(int sock) argument
668 SetDSCP(int sock, int dscp) argument
749 SameMachine(int sock) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/
H A Dctrl_iface_unix.c36 int sock; member in struct:ctrl_iface_priv
46 int sock; member in struct:ctrl_iface_global_priv
64 const char *ifname, int sock,
76 static void wpas_ctrl_sock_debug(const char *title, int sock, const char *buf, argument
89 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, &optlen) < 0)
92 if (ioctl(sock, TIOCOUTQ, &outq) < 0)
96 "CTRL-DEBUG: %s: sock=%d sndbuf=%d outq=%d send_len=%d",
97 title, sock, sndbuf, outq, (int) len);
129 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx, argument
142 res = recvfrom(sock, bu
282 wpas_ctrl_iface_throttle(int sock) argument
351 int sock = -1, gsock = -1; local
886 wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, const char *ifname, int sock, struct dl_list *ctrl_dst, int level, const char *buf, size_t len, struct ctrl_iface_priv *priv, struct ctrl_iface_global_priv *gp) argument
1044 wpa_supplicant_global_ctrl_iface_receive(int sock, void *eloop_ctx, void *sock_ctx) argument
[all...]
/external/apache-http/src/org/apache/http/conn/
H A DMultihomePlainSocketFactory.java95 * @param sock socket to connect to any of the given addresses
105 public Socket connectSocket(Socket sock, String host, int port, argument
117 if (sock == null)
118 sock = createSocket();
128 sock.bind(isa);
141 sock.connect(new InetSocketAddress(address, port), timeout);
147 sock = new Socket();
155 return sock;
164 * @param sock the connected socket
170 public final boolean isSecure(Socket sock) argument
[all...]
/external/boringssl/src/crypto/bio/
H A Dinternal.h87 /* BIO_socket_nbio sets whether |sock| is non-blocking. It returns one on
89 int bio_socket_nbio(int sock, int on);
96 /* BIO_sock_error returns the last socket error on |sock|. */
97 int bio_sock_error(int sock);
/external/boringssl/src/tool/
H A Dtransport_common.h36 bool SocketSetNonBlocking(int sock, bool is_non_blocking);
40 bool TransferData(SSL *ssl, int sock);
/external/wpa_supplicant_8/hostapd/src/utils/
H A Deloop.h39 * @sock: File descriptor number for the socket
43 typedef void (*eloop_sock_handler)(int sock, void *eloop_ctx, void *sock_ctx);
78 * @sock: File descriptor number for the socket
90 int eloop_register_read_sock(int sock, eloop_sock_handler handler,
95 * @sock: File descriptor number for the socket
100 void eloop_unregister_read_sock(int sock);
104 * @sock: File descriptor number for the socket
117 int eloop_register_sock(int sock, eloop_event_type type,
123 * @sock: File descriptor number for the socket
124 * @type: Type of event for which sock wa
[all...]

Completed in 670 milliseconds

1234567891011>>