/external/android-clat/ |
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/ |
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);
|
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);
|
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);
|
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)
|
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",
|
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);
|
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);
|
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);
|
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);
|
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/chromium_org/chrome/test/chromedriver/net/ |
sync_websocket_impl_unittest.cc | 51 SyncWebSocketImpl sock(context_getter_.get()); 55 SyncWebSocketImpl sock(context_getter_.get()); 56 ASSERT_TRUE(sock.Connect(server_.web_socket_url())); 60 SyncWebSocketImpl sock(context_getter_.get()); 61 ASSERT_FALSE(sock.Connect(GURL("ws://127.0.0.1:33333"))); 65 SyncWebSocketImpl sock(context_getter_.get()); 66 ASSERT_TRUE(sock.Connect(server_.web_socket_url())); 67 ASSERT_TRUE(sock.Send("hi")); 71 sock.ReceiveNextMessage(&message, long_timeout_)); 76 SyncWebSocketImpl sock(context_getter_.get()) [all...] |
/external/libnl/tests/ |
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);
|
/device/generic/goldfish/libqemu/ |
test_host_2.c | 47 socket_close(int sock) 50 close(sock); 60 int sock = socket(AF_INET, type, 0); local 61 if (sock < 0) { 71 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); 73 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { 74 socket_close(sock); 79 if (TFR(listen(sock, 4)) < 0) { 80 socket_close(sock); 85 return sock; 91 int sock, client; local [all...] |
test_host_1.c | 49 socket_close(int sock) 52 close(sock); 62 int sock = socket(AF_INET, type, 0); local 63 if (sock < 0) { 73 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); 75 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { 76 socket_close(sock); 81 if (TFR(listen(sock, 4)) < 0) { 82 socket_close(sock); 87 return sock; 95 int sock = socket(AF_UNIX, type, 0); local 144 int sock, client; local [all...] |
/development/ndk/platforms/android-L/include/linux/netfilter/ |
xt_socket.h | 30 struct sock *xt_socket_get4_sk(const struct sk_buff *skb, 32 struct sock *xt_socket_get6_sk(const struct sk_buff *skb,
|
/external/deqp/framework/delibs/deutil/ |
deSocket.c | 339 deSocket* sock = (deSocket*)deCalloc(sizeof(deSocket)); local 340 if (!sock) 341 return sock; 349 sock->stateLock = deMutex_create(0); 350 sock->handle = DE_INVALID_SOCKET_HANDLE; 351 sock->state = DE_SOCKETSTATE_CLOSED; 353 return sock; 356 void deSocket_destroy (deSocket* sock) 358 if (sock->state != DE_SOCKETSTATE_CLOSED) 359 deSocket_close(sock); [all...] |
/external/apache-http/src/org/apache/http/conn/scheme/ |
PlainSocketFactory.java | 89 public Socket connectSocket(Socket sock, String host, int port, 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) 147 if (sock == null) { 153 if (sock.getClass() != Socket.class) [all...] |
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
UnixStream.h | 28 UnixStream(int sock, size_t bufSize);
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
cpumap.h | 22 static inline int cpu_map__socket(struct cpu_map *sock, int s) 24 if (!sock || s > sock->nr || s < 0) 26 return sock->map[s];
|
/external/apache-http/src/org/apache/http/conn/ |
MultihomePlainSocketFactory.java | 95 * @param sock socket to connect to any of the given addresses 105 public Socket connectSocket(Socket sock, String host, int port, 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) [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/bio/ |
internal.h | 88 /* BIO_socket_nbio sets whether |sock| is non-blocking. It returns one on 90 int bio_socket_nbio(int sock, int on); 97 /* BIO_sock_error returns the last socket error on |sock|. */ 98 int bio_sock_error(int sock);
|
/external/chromium_org/third_party/tlslite/tlslite/integration/ |
tlssocketservermixin.py | 53 def finish_request(self, sock, client_address): 54 tlsConnection = TLSConnection(sock)
|
imap4_tls.py | 92 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 93 self.sock.connect((host, port)) 94 self.sock = TLSConnection(self.sock) 95 ClientHelper._handshake(self, self.sock) 96 self.file = self.sock.makefile('rb'
|
/cts/tests/tests/security/jni/ |
android_security_cts_NetlinkSocket.cpp | 32 int sock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); local 33 if (sock == -1) { 39 jniSetFileDescriptorOfFD(env, fileDescriptor, sock); 55 int sock = jniGetFDFromFileDescriptor(e, fileDescriptor); local 56 int retval = sendmsg(sock, &msg, 0);
|