Home
last modified time | relevance | path

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

/packages/modules/Connectivity/clatd/
Ddump.c167 void dump_tcp_generic(const struct tcphdr *tcp, const uint8_t *options, size_t options_size, in dump_tcp_generic() argument
171 temp_checksum = ip_checksum_add(temp_checksum, tcp, sizeof(struct tcphdr)); in dump_tcp_generic()
179 printf("source = %x\n", ntohs(tcp->source)); in dump_tcp_generic()
180 printf("dest = %x\n", ntohs(tcp->dest)); in dump_tcp_generic()
181 printf("seq = %x\n", ntohl(tcp->seq)); in dump_tcp_generic()
182 printf("ack = %x\n", ntohl(tcp->ack_seq)); in dump_tcp_generic()
183 printf("d_off = %x\n", tcp->doff); in dump_tcp_generic()
184 printf("res1 = %x\n", tcp->res1); in dump_tcp_generic()
186 printf("CWR = %x\n", tcp->cwr); in dump_tcp_generic()
187 printf("ECE = %x\n", tcp->ece); in dump_tcp_generic()
[all …]
Dtranslate.c365 int tcp_packet(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, uint32_t old_sum, in tcp_packet() argument
375 if (tcp->doff < 5) { in tcp_packet()
376 logmsg_dbg(ANDROID_LOG_ERROR, "tcp_packet/tcp header length set to less than 5: %x", tcp->doff); in tcp_packet()
380 if ((size_t)tcp->doff * 4 > len) { in tcp_packet()
381 logmsg_dbg(ANDROID_LOG_ERROR, "tcp_packet/tcp header length set too large: %x", tcp->doff); in tcp_packet()
385 header_size = tcp->doff * 4; in tcp_packet()
386 payload = ((const uint8_t *)tcp) + header_size; in tcp_packet()
389 return tcp_translate(out, pos, tcp, header_size, old_sum, new_sum, payload, payload_size); in tcp_packet()
442 int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, in tcp_translate() argument
456 memcpy(tcp_targ, tcp, header_size); in tcp_translate()
[all …]
Ddump.h33 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, const uint8_t *payload,
40 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload,
Dtranslate.h79 int tcp_packet(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, uint32_t old_sum,
84 int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp,
/packages/modules/NetworkStack/tests/integration/signature/android/net/netlink/
DInetDiagSocketIntegrationTest.java167 TcpConnection tcp = new TcpConnection(to, from); in checkGetConnectionOwnerUid() local
168 checkConnectionOwnerUid(tcp.protocol, tcp.local, tcp.remote, true); in checkGetConnectionOwnerUid()
169 checkConnectionOwnerUid(IPPROTO_UDP, tcp.local, tcp.remote, false); in checkGetConnectionOwnerUid()
170 checkConnectionOwnerUid(tcp.protocol, new InetSocketAddress(0), tcp.remote, false); in checkGetConnectionOwnerUid()
171 checkConnectionOwnerUid(tcp.protocol, tcp.local, new InetSocketAddress(0), false); in checkGetConnectionOwnerUid()
172 tcp.close(); in checkGetConnectionOwnerUid()
/packages/modules/Bluetooth/android/pandora/server/scripts/
Dsetup.sh23 adb forward tcp:6211 tcp:6211
27 adb forward tcp:8999 tcp:8999
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java98 final int tcp = 6; in testWakeupEventLogging() local
106 wakeupEvent(iface, uids[0], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging()
110 wakeupEvent(iface, uids[4], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
111 wakeupEvent(iface, uids[5], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging()
113 wakeupEvent(iface, uids[7], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging()
179 final int tcp = 6; in testWakeupStatsLogging() local
183 wakeupEvent("wlan0", 1000, v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupStatsLogging()
184 wakeupEvent("rmnet0", 10123, v4, tcp, mac, srcIp, dstIp, sport, dport, now, in testWakeupStatsLogging()
187 wakeupEvent("rmnet0", 10008, v4, tcp, EmptyArray.BYTE, srcIp, dstIp, sport, dport, now, in testWakeupStatsLogging()
190 wakeupEvent("wlan0", 10008, v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupStatsLogging()
[all …]
DIpConnectivityMetricsTest.java336 final int tcp = 6; in testEndToEndLogging() local
338 wakeupEvent("wlan0", 1000, v4, tcp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging()
339 wakeupEvent("wlan0", 10123, v4, tcp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging()
343 wakeupEvent("wlan0", 10008, v4, tcp, mac, srcIp, dstIp, sport, dport, 1001L); in testEndToEndLogging()
/packages/modules/Connectivity/bpf/progs/
DdscpPolicy.c108 struct tcphdr* tcp; in match_policy() local
109 tcp = data + hdr_size; in match_policy()
110 if ((void*)(tcp + 1) > data_end) return; in match_policy()
111 sport = tcp->source; in match_policy()
112 dport = ntohs(tcp->dest); in match_policy()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DConntrackMessageTest.java140 final byte[] tcp = makeIPv4TimeoutUpdateRequestTcp(); in testConntrackMakeIPv4TcpTimeoutUpdate()
141 assertArrayEquals(CT_V4UPDATE_TCP_BYTES, tcp); in testConntrackMakeIPv4TcpTimeoutUpdate()
148 final byte[] tcp = makeIPv4TimeoutUpdateRequestTcp(); in testConntrackParseIPv4TcpTimeoutUpdate()
149 final ByteBuffer byteBuffer = ByteBuffer.wrap(tcp); in testConntrackParseIPv4TcpTimeoutUpdate()
/packages/modules/Nfc/libnfc-nci/tools/casimir/src/
Dmain-grpc.rs27 use tokio::net::{tcp, TcpListener, TcpStream};
45 socket: tcp::OwnedReadHalf,
51 socket: tcp::OwnedWriteHalf,
56 pub fn new(socket: tcp::OwnedReadHalf) -> Self { in new()
80 pub fn new(socket: tcp::OwnedWriteHalf) -> Self { in new()
Dmain.rs319 Listener::Tcp(tcp) => { in accept_split()
320 let (socket, addr) = tcp.accept().await?; in accept_split()
/packages/modules/Bluetooth/tools/rootcanal/scripts/
Dbuild_and_run.sh76 adb forward tcp:${TEST_CHANNEL_PORT} tcp:${TEST_CHANNEL_PORT}
/packages/modules/adb/docs/dev/
Dservices.md109 tcp:<port> -> TCP connection on localhost:<port>
114 tcp:<port> -> TCP localhost:<port> on device
145 <local> is the host-specific endpoint (e.g. tcp:9000).
211 tcp:<port>
212 Tries to connect to tcp port <port> on localhost.
214 tcp:<port>:<server-name>
215 Tries to connect to tcp port <port> on machine <server-name> from
Dasocket.md166tcp * ───►* alistener │ │ │ │
185tcp * ───►* SS │ │ │ │
211tcp * ◄───►* LS │ │ │ │
232 │ ┌───────────►tcp * ◄───►* LS │ │ │ │ │
Doverview.md92 1. Connect to tcp:localhost:5037
Dprotocol.md126 * "tcp:<host>:<port>" - host may be omitted to indicate localhost
/packages/modules/Virtualization/docs/debug/
Dgdb_kernel.md16 adb forward tcp:3456 tcp:3456
Dtracing.md166 adb shell forward tcp:9876 vsock:${CID}:5555
/packages/modules/Nfc/libnfc-nci/src/fuzzers/
Dfuzz.sh132 adb forward tcp:5039 tcp:5039
/packages/modules/adb/docs/user/
Dadb.1.md46 &nbsp;&nbsp;&nbsp;&nbsp;Listen on given socket for adb server [default=tcp:localhost:5037].
88 &nbsp;&nbsp;&nbsp;&nbsp;**tcp**:**PORT** (local may be "tcp:0" to pick any open port.
111 &nbsp;&nbsp;&nbsp;&nbsp;tcp:**PORT** (**REMOTE** may be "tcp:0" to pick any open port).
/packages/modules/Virtualization/android/vm/
Dvm_shell.sh44 adb forward tcp:8000 vsock:${cid}:5555
/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/assets/classifier/
Dprecomputed_test_app_list.csv804 com.tatadigital.tcp 10388,10378
/packages/modules/AdServices/adservices/apk/assets/classifier/
Dprecomputed_app_list.csv804 com.tatadigital.tcp 10388,10378
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/mobiledatadownload/
Dbcde93568f2064cfc803d77873c5b4028435234e804 com.tatadigital.tcp 10388,10378