Searched defs:protocol (Results 1 - 25 of 34) sorted by path

12

/system/bt/bta/pan/
H A Dbta_pan_act.c171 static void bta_pan_data_buf_ind_cback(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf, argument
191 ((tBTA_PAN_DATA_PARAMS *)p_new_buf)->protocol = protocol;
688 ((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol,
745 ((tBTA_PAN_DATA_PARAMS *)p_data)->protocol,
H A Dbta_pan_ci.c124 void bta_pan_ci_rx_write(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, argument
134 ((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol = protocol;
161 void bta_pan_ci_rx_writebuf(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, argument
168 ((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol = protocol;
202 *p_protocol = ((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol;
234 ** Description This function is called to set protocol filters
264 void bta_pan_ci_rx_writebuf(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext) argument
269 UNUSED(protocol);
[all...]
H A Dbta_pan_int.h175 UINT16 protocol; member in struct:__anon540
/system/bt/btif/co/
H A Dbta_pan_co.c164 UINT16 protocol; local
186 if ((p_buf = bta_pan_ci_readbuf(handle, src, dst, &protocol,
202 btpan_tap_send(btpan_cb.tap_fd, src, dst, protocol,
244 UINT16 protocol, UINT8 *p_data,
251 UNUSED(protocol);
274 BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf,
281 UNUSED(protocol);
320 ** Description protocol filter indication from peer device
243 bta_pan_co_tx_write(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, UINT16 protocol, UINT8 *p_data, UINT16 len, BOOLEAN ext, BOOLEAN forward) argument
273 bta_pan_co_tx_writebuf(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext, BOOLEAN forward) argument
/system/bt/btif/include/
H A Dbtif_pan_internal.h69 UINT16 protocol; member in struct:__anon624
104 int btpan_tap_send(int tap_fd, const BD_ADDR src, const BD_ADDR dst, UINT16 protocol,
/system/bt/stack/bnep/
H A Dbnep_api.c344 ** protocol - protocol type of the packet
359 UINT16 protocol,
383 if (bnep_is_packet_allowed (p_bcb, p_dest_addr, protocol, fw_ext_present, p_data) != BNEP_SUCCESS)
412 if (protocol != BNEP_802_1_P_PROTOCOL)
413 protocol = 0;
437 bnepu_build_bnep_hdr (p_bcb, p_buf, protocol, p_src_addr, p_dest_addr, fw_ext_present);
455 ** protocol - protocol type of the packet
472 UINT16 protocol,
356 BNEP_WriteBuf(UINT16 handle, UINT8 *p_dest_addr, BT_HDR *p_buf, UINT16 protocol, UINT8 *p_src_addr, BOOLEAN fw_ext_present) argument
468 BNEP_Write(UINT16 handle, UINT8 *p_dest_addr, UINT8 *p_data, UINT16 len, UINT16 protocol, UINT8 *p_src_addr, BOOLEAN fw_ext_present) argument
[all...]
H A Dbnep_main.c482 UINT16 protocol = 0; local
566 BE_STREAM_TO_UINT16 (protocol, p);
602 BE_STREAM_TO_UINT16 (protocol, p);
609 BE_STREAM_TO_UINT16 (protocol, p);
616 BE_STREAM_TO_UINT16 (protocol, p);
658 (*bnep_cb.p_data_buf_cb)(p_bcb->handle, p_src_addr, p_dst_addr, protocol, p_buf, fw_ext_present);
662 (*bnep_cb.p_data_ind_cb)(p_bcb->handle, p_src_addr, p_dst_addr, protocol, p, rem_len, fw_ext_present);
H A Dbnep_utils.c466 void bnepu_build_bnep_hdr (tBNEP_CONN *p_bcb, BT_HDR *p_buf, UINT16 protocol, argument
515 UINT16_TO_BE_STREAM (p, protocol);
1264 ** Description This function verifies whether the protocol passes through
1265 ** the protocol filters set by the peer
1267 ** Returns BNEP_SUCCESS - if the protocol is allowed
1268 ** BNEP_IGNORE_CMD - if the protocol is filtered out
1273 UINT16 protocol,
1281 /* Findout the actual protocol to check for the filtering */
1282 proto = protocol;
1288 /* parse the extension headers and findout actual protocol */
1271 bnep_is_packet_allowed(tBNEP_CONN *p_bcb, BD_ADDR p_dest_addr, UINT16 protocol, BOOLEAN fw_ext_present, UINT8 *p_data) argument
[all...]
/system/bt/stack/pan/
H A Dpan_api.c482 ** protocol - protocol of the ethernet packet like IP or ARP
492 tPAN_RESULT PAN_Write(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, UINT8 *p_data, UINT16 len, BOOLEAN ext) argument
507 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
517 return PAN_WriteBuf(handle, dst, src, protocol, buffer, ext);
535 ** protocol - protocol of the ethernet packet like IP or ARP
544 tPAN_RESULT PAN_WriteBuf (UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext) argument
563 BNEP_Write(pan_cb.pcb[i].handle, dst, data, p_buf->len, protocol, src, ext);
587 result = BNEP_WriteBuf (pan_cb.pcb[i].handle, dst, p_buf, protocol, sr
[all...]
H A Dpan_main.c424 ** protocol - Network protocol of the Eth packet
436 UINT16 protocol,
482 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
487 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, TRUE);
500 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
513 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
530 ** protocol - Network protocol of the Eth packet
541 UINT16 protocol,
433 pan_data_ind_cb(UINT16 handle, UINT8 *src, UINT8 *dst, UINT16 protocol, UINT8 *p_data, UINT16 len, BOOLEAN ext) argument
538 pan_data_buf_ind_cb(UINT16 handle, UINT8 *src, UINT8 *dst, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext) argument
[all...]
/system/connectivity/shill/
H A Darp_packet.cc83 const uint16_t protocol = ntohs(header.ar_pro); local
85 if (protocol == ETHERTYPE_IP) {
87 } else if (protocol == ETHERTYPE_IPV6) {
90 NOTIMPLEMENTED() << "Packet has unknown protocol "
91 << protocol;
101 LOG(ERROR) << "Packet has unexpected protocol address length "
143 uint16_t protocol; local
146 protocol = ETHERTYPE_IP;
148 protocol = ETHERTYPE_IPV6;
165 header.ar_pro = htons(protocol);
[all...]
H A Dconnection_info.cc37 ConnectionInfo::ConnectionInfo(int protocol, argument
48 : protocol_(protocol),
H A Dconnection_info.h29 ConnectionInfo(int protocol,
45 int protocol() const { return protocol_; } function in class:shill::ConnectionInfo
46 void set_protocol(int protocol) { protocol_ = protocol; } argument
H A Dconnection_info_reader.cc94 int protocol = 0; local
95 if (!ParseProtocol(tokens[++index], &protocol)) {
98 info->set_protocol(protocol);
106 if (protocol == IPPROTO_TCP)
159 bool ConnectionInfoReader::ParseProtocol(const string& input, int* protocol) { argument
160 if (!base::StringToInt(input, protocol) ||
161 *protocol < 0 || *protocol >= IPPROTO_MAX) {
H A Dconnection_info_reader_unittest.cc84 EXPECT_EQ(info1.protocol(), info2.protocol());
178 int protocol = 0; local
180 EXPECT_FALSE(reader_.ParseProtocol("", &protocol));
181 EXPECT_FALSE(reader_.ParseProtocol("a", &protocol));
182 EXPECT_FALSE(reader_.ParseProtocol("-1", &protocol));
184 &protocol));
187 EXPECT_TRUE(reader_.ParseProtocol(StringPrintf("%d", i), &protocol));
188 EXPECT_EQ(i, protocol);
H A Dhttp_url.cc45 Protocol protocol = kProtocolUnknown; local
53 protocol = kProtocolHTTP;
58 protocol = kProtocolHTTPS;
79 protocol_ = protocol;
H A Dhttp_url.h47 Protocol protocol() const { return protocol_; } function in class:shill::HTTPURL
H A Dhttp_url_unittest.cc39 protocol(in_protocol),
45 HTTPURL::Protocol protocol; member in struct:shill::StringAndResult
62 EXPECT_EQ(GetParam().protocol, url_.protocol());
/system/connectivity/shill/net/
H A Drtnl_message.h93 protocol(0),
107 protocol(protocol_in),
114 unsigned char protocol; member in struct:shill::RTNLMessage::RouteStatus
H A Drtnl_message_unittest.cc461 int protocol,
474 EXPECT_EQ(protocol, status.protocol);
453 TestParseRoute(const ByteString& packet, RTNLMessage::Mode , IPAddress::Family family, int interface_index, const IPAddress& dst, const IPAddress& src, const IPAddress& gateway, unsigned char table, int protocol, unsigned char scope, unsigned char type, int metric) argument
/system/core/adb/
H A Dcommandline.cpp291 // this expects that incoming data will use the shell protocol, in which case
301 std::unique_ptr<ShellProtocol> protocol;
309 protocol.reset(new ShellProtocol(fd));
310 if (!protocol) {
314 buffer_ptr = protocol->data();
319 if (!protocol->Read()) {
322 switch (protocol->id()) {
332 exit_code = protocol->data()[0];
337 length = protocol->data_length();
496 std::unique_ptr<ShellProtocol> protocol; member in struct:StdinReadArgs
[all...]
H A Dservices.cpp222 // No protocol.
226 SubprocessProtocol protocol = SubprocessProtocol::kNone; local
235 protocol = SubprocessProtocol::kShell;
244 return StartSubprocess(command.c_str(), terminal_type.c_str(), type, protocol);
H A Dshell_service.cpp22 // protocol to wrap packets. The protocol allows separating stdout/stderr and
33 // Non-protocol subprocesses work by passing subprocess stdin/out/err through
55 // The protocol requires the thread to intercept stdin/out/err in order to
56 // wrap/unwrap data with shell protocol packets.
66 // Exit ---> Exit code protocol ---> LocalSocket
72 // An alternate approach is to put the protocol wrapping/unwrapping in the main
153 SubprocessType type, SubprocessProtocol protocol);
195 // Shell protocol variables.
204 SubprocessType type, SubprocessProtocol protocol)
203 Subprocess(const std::string& command, const char* terminal_type, SubprocessType type, SubprocessProtocol protocol) argument
715 ReportError(SubprocessProtocol protocol, const std::string& message) argument
745 StartSubprocess(const char* name, const char* terminal_type, SubprocessType type, SubprocessProtocol protocol) argument
[all...]
H A Dshell_service_protocol_test.cpp63 for (ShellProtocol* protocol : {read_protocol_, write_protocol_}) {
64 if (protocol) {
65 delete protocol;
90 bool PacketEquals(const ShellProtocol* protocol, ShellProtocol::Id id, argument
92 return (protocol->id() == id &&
93 protocol->data_length() == data_length &&
94 !memcmp(data, protocol->data(), data_length));
H A Dshell_service_test.cpp48 SubprocessProtocol protocol);
64 const char* command, SubprocessType type, SubprocessProtocol protocol) {
72 subprocess_fd_ = StartSubprocess(command, nullptr, type, protocol);
111 // Reads shell protocol data from |fd| until it closes or errors. Fills
113 // read from the protocol or -1 if an exit code packet was not received.
119 ShellProtocol* protocol = new ShellProtocol(fd); local
120 while (protocol->Read()) {
121 switch (protocol->id()) {
123 stdout->append(protocol->data(), protocol
63 StartTestSubprocess( const char* command, SubprocessType type, SubprocessProtocol protocol) argument
230 ShellProtocol* protocol = new ShellProtocol(subprocess_fd_); local
256 ShellProtocol* protocol = new ShellProtocol(subprocess_fd_); local
[all...]

Completed in 315 milliseconds

12