/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | linux_ioctl.h | 12 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 D | linux_ioctl.h | 12 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 D | linux_ioctl.h | 12 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 D | ethernet.c | 54 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 D | setif.h | 24 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 D | nl-link-name2ifindex.c | 23 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 D | genl-ctrl-list.c | 35 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 D | nl-link-ifindex2name.c | 23 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 D | nl-route-get.c | 45 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 D | nl-neightbl-list.c | 30 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 D | nl-rule-list.c | 35 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 D | nl-monitor.c | 37 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 D | nf-monitor.c | 39 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 D | nl-neigh-delete.c | 17 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 D | nl-qdisc-delete.c | 17 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 D | crypto_load_mod.c | 21 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 D | test-genl.c | 5 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 D | deSocket.c | 412 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 D | PlainSocketFactory.java | 89 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 D | sockets.c | 45 #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 D | ctrl_iface_unix.c | 36 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 D | MultihomePlainSocketFactory.java | 95 * @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 D | internal.h | 87 /* 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 D | transport_common.h | 36 bool SocketSetNonBlocking(int sock, bool is_non_blocking); 40 bool TransferData(SSL *ssl, int sock);
|
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | eloop.h | 39 * @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...] |