Home
last modified time | relevance | path

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

12345

/device/google/cuttlefish/guest/hals/keymaster/remote/
Dremote_keymaster.cpp70 void RemoteKeymaster::GetVersion(const GetVersionRequest& request, GetVersionResponse* response) { in GetVersion() argument
71 ForwardCommand(GET_VERSION, request, response); in GetVersion()
74 void RemoteKeymaster::SupportedAlgorithms(const SupportedAlgorithmsRequest& request, in SupportedAlgorithms() argument
76 ForwardCommand(GET_SUPPORTED_ALGORITHMS, request, response); in SupportedAlgorithms()
79 void RemoteKeymaster::SupportedBlockModes(const SupportedBlockModesRequest& request, in SupportedBlockModes() argument
81 ForwardCommand(GET_SUPPORTED_BLOCK_MODES, request, response); in SupportedBlockModes()
84 void RemoteKeymaster::SupportedPaddingModes(const SupportedPaddingModesRequest& request, in SupportedPaddingModes() argument
86 ForwardCommand(GET_SUPPORTED_PADDING_MODES, request, response); in SupportedPaddingModes()
89 void RemoteKeymaster::SupportedDigests(const SupportedDigestsRequest& request, in SupportedDigests() argument
91 ForwardCommand(GET_SUPPORTED_DIGESTS, request, response); in SupportedDigests()
[all …]
Dremote_keymaster.h36 void GetVersion(const GetVersionRequest& request, GetVersionResponse* response);
37 void SupportedAlgorithms(const SupportedAlgorithmsRequest& request,
39 void SupportedBlockModes(const SupportedBlockModesRequest& request,
41 void SupportedPaddingModes(const SupportedPaddingModesRequest& request,
43 void SupportedDigests(const SupportedDigestsRequest& request,
45 void SupportedImportFormats(const SupportedImportFormatsRequest& request,
47 void SupportedExportFormats(const SupportedExportFormatsRequest& request,
49 void AddRngEntropy(const AddEntropyRequest& request, AddEntropyResponse* response);
50 void Configure(const ConfigureRequest& request, ConfigureResponse* response);
51 void GenerateKey(const GenerateKeyRequest& request, GenerateKeyResponse* response);
[all …]
Dremote_keymaster4_device.cpp287 ComputeSharedHmacRequest request; in computeSharedHmac() local
288 request.params_array.params_array = new keymaster::HmacSharingParameters[params.size()]; in computeSharedHmac()
289 request.params_array.num_params = params.size(); in computeSharedHmac()
291 request.params_array.params_array[i].seed = {params[i].seed.data(), params[i].seed.size()}; in computeSharedHmac()
292 static_assert(sizeof(request.params_array.params_array[i].nonce) == in computeSharedHmac()
295 memcpy(request.params_array.params_array[i].nonce, params[i].nonce.data(), in computeSharedHmac()
299 auto response = impl_->ComputeSharedHmac(request); in computeSharedHmac()
312 VerifyAuthorizationRequest request; in verifyAuthorization() local
313 request.challenge = challenge; in verifyAuthorization()
314 request.parameters_to_verify.Reinitialize(KmParamSet(parametersToVerify)); in verifyAuthorization()
[all …]
/device/generic/goldfish/dhcp/client/
Dinterface.cpp94 struct ifreq request = createRequest(); in setMtu() local
96 strncpy(request.ifr_name, mInterfaceName.c_str(), sizeof(request.ifr_name)); in setMtu()
97 request.ifr_mtu = mtu; in setMtu()
98 int status = ::ioctl(mSocketFd, SIOCSIFMTU, &request); in setMtu()
114 } request; in setAddress() local
116 memset(&request, 0, sizeof(request)); in setAddress()
118 request.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(request.msg)); in setAddress()
119 request.hdr.nlmsg_type = RTM_NEWADDR; in setAddress()
120 request.hdr.nlmsg_flags = NLM_F_REQUEST | in setAddress()
125 request.msg.ifa_family = AF_INET; in setAddress()
[all …]
Drouter.cpp51 } request; in setDefaultGateway() local
53 memset(&request, 0, sizeof(request)); in setDefaultGateway()
56 request.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(request.msg)); in setDefaultGateway()
57 request.hdr.nlmsg_type = RTM_NEWROUTE; in setDefaultGateway()
58 request.hdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE; in setDefaultGateway()
60 request.msg.rtm_family = AF_INET; in setDefaultGateway()
61 request.msg.rtm_dst_len = 0; in setDefaultGateway()
62 request.msg.rtm_table = RT_TABLE_MAIN; in setDefaultGateway()
63 request.msg.rtm_protocol = RTPROT_BOOT; in setDefaultGateway()
64 request.msg.rtm_scope = RT_SCOPE_UNIVERSE; in setDefaultGateway()
[all …]
/device/google/cuttlefish/common/libs/net/
Dnetlink_request_test.cpp133 NetlinkRequest request(RTM_SETLINK, 0); in TEST() local
134 request.AddString(kDummyTag, kLongString); in TEST()
135 EXPECT_THAT(request, RequestDataIs(&expected, sizeof(expected))); in TEST()
149 NetlinkRequest request(RTM_SETLINK, 0); in TEST() local
150 request.AddInt(kDummyTag, kValue); in TEST()
151 EXPECT_THAT(request, RequestDataIs(&expected, sizeof(expected))); in TEST()
191 NetlinkRequest request(RTM_SETLINK, 0); in TEST() local
192 request.AddInt<int64_t>(kDummyTag, kValue); in TEST()
193 request.AddInt<int32_t>(kDummyTag + 1, kValue); in TEST()
194 request.AddInt<int16_t>(kDummyTag + 2, kValue); in TEST()
[all …]
Dnetwork_interface_manager.cpp34 NetlinkRequest request(RTM_SETLINK, 0); in BuildLinkRequest() local
35 request.AddIfInfo(interface.Index(), interface.IsOperational()); in BuildLinkRequest()
37 request.AddString(IFLA_IFNAME, interface.Name()); in BuildLinkRequest()
40 return request; in BuildLinkRequest()
45 NetlinkRequest request(RTM_NEWADDR, 0); in BuildAddrRequest() local
46 request.AddAddrInfo(interface.Index(), interface.PrefixLength()); in BuildAddrRequest()
48 request.AddInt(IFA_LOCAL, address); in BuildAddrRequest()
49 request.AddInt(IFA_ADDRESS, address); in BuildAddrRequest()
50 request.AddInt(IFA_BROADCAST, in BuildAddrRequest()
53 return request; in BuildAddrRequest()
/device/generic/goldfish/network/netmgr/
Dbridge.cpp82 struct ifreq request; in createBridge() local
83 memset(&request, 0, sizeof(request)); in createBridge()
85 request.ifr_ifindex = if_nametoindex(mBridgeName.c_str()); in createBridge()
86 if (request.ifr_ifindex == 0) { in createBridge()
91 strlcpy(request.ifr_name, mBridgeName.c_str(), sizeof(request.ifr_name)); in createBridge()
92 res = ::ioctl(mSocketFd, SIOCGIFFLAGS, &request); in createBridge()
98 if ((request.ifr_flags & IFF_UP) != 0) { in createBridge()
104 request.ifr_flags |= IFF_UP; in createBridge()
105 res = ::ioctl(mSocketFd, SIOCSIFFLAGS, &request); in createBridge()
117 struct ifreq request; in doInterfaceOperation() local
[all …]
Dmonitor.cpp155 } request; in requestInterfaces() local
157 memset(&request, 0, sizeof(request)); in requestInterfaces()
159 request.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(request.gen)); in requestInterfaces()
160 request.hdr.nlmsg_type = RTM_GETLINK; in requestInterfaces()
161 request.hdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in requestInterfaces()
162 request.hdr.nlmsg_seq = 1; in requestInterfaces()
163 request.hdr.nlmsg_pid = getpid(); in requestInterfaces()
164 request.gen.rtgen_family = AF_PACKET; in requestInterfaces()
167 &request, in requestInterfaces()
168 request.hdr.nlmsg_len, in requestInterfaces()
/device/linaro/poplar/wifi/wifi_hal/
Dgscan.cpp371 int createFeatureRequest(WifiRequest& request, int subcmd, int enable) { in createFeatureRequest() argument
373 int result = request.create(GOOGLE_OUI, subcmd); in createFeatureRequest()
378 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createFeatureRequest()
379 result = request.put_u32(GSCAN_ATTRIBUTE_ENABLE_FEATURE, enable); in createFeatureRequest()
384 request.attr_end(data); in createFeatureRequest()
399 int createRequest(WifiRequest& request, int subcmd, int enable) { in createRequest() argument
400 int result = request.create(GOOGLE_OUI, subcmd); in createRequest()
405 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRequest()
406 result = request.put_u32(GSCAN_ENABLE_FULL_SCAN_RESULTS, enable); in createRequest()
411 request.attr_end(data); in createRequest()
[all …]
Dwifi_logger.cpp161 int createRingRequest(WifiRequest& request) { in createRingRequest() argument
162 int result = request.create(GOOGLE_OUI, LOGGER_START_LOGGING); in createRingRequest()
168 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRingRequest()
170 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_LEVEL, mVerboseLevel); in createRingRequest()
175 result = request.put_u32(LOGGER_ATTRIBUTE_RING_FLAGS, mFlags); in createRingRequest()
180 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_TIME_INTVAL, mMaxIntervalSec); in createRingRequest()
185 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_MIN_DATA_SIZE, mMinDataSize); in createRingRequest()
190 result = request.put_string(LOGGER_ATTRIBUTE_RING_NAME, mRingName); in createRingRequest()
195 request.attr_end(data); in createRingRequest()
200 int createRequest(WifiRequest &request) { in createRequest() argument
[all …]
Dwifi_offload.cpp94 int createRequest(WifiRequest &request) { in createRequest() argument
100 result = request.create(GOOGLE_OUI, WIFI_OFFLOAD_START_MKEEP_ALIVE); in createRequest()
106 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRequest()
108 result = request.put_u8(MKEEP_ALIVE_ATTRIBUTE_ID, mIndex); in createRequest()
114 result = request.put_u16(MKEEP_ALIVE_ATTRIBUTE_IP_PKT_LEN, mIpPktLen); in createRequest()
120 result = request.put(MKEEP_ALIVE_ATTRIBUTE_IP_PKT, (u8*)mIpPkt, mIpPktLen); in createRequest()
126 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_SRC_MAC_ADDR, mSrcMacAddr); in createRequest()
132 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_DST_MAC_ADDR, mDstMacAddr); in createRequest()
138 result = request.put_u32(MKEEP_ALIVE_ATTRIBUTE_PERIOD_MSEC, mPeriodMsec); in createRequest()
144 request.attr_end(data); in createRequest()
[all …]
Drtt.cpp342 int createSetupRequest(WifiRequest& request) { in createSetupRequest() argument
343 int result = request.create(GOOGLE_OUI, RTT_SUBCMD_SET_CONFIG); in createSetupRequest()
348 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createSetupRequest()
349 result = request.put_u8(RTT_ATTRIBUTE_TARGET_CNT, numRttParams); in createSetupRequest()
353 nlattr *rtt_config = request.attr_start(RTT_ATTRIBUTE_TARGET_INFO); in createSetupRequest()
355 nlattr *attr2 = request.attr_start(i); in createSetupRequest()
360 result = request.put_addr(RTT_ATTRIBUTE_TARGET_MAC, rttParams[i].addr); in createSetupRequest()
365 result = request.put_u8(RTT_ATTRIBUTE_TARGET_TYPE, rttParams[i].type); in createSetupRequest()
370 result = request.put_u8(RTT_ATTRIBUTE_TARGET_PEER, rttParams[i].peer); in createSetupRequest()
375 result = request.put(RTT_ATTRIBUTE_TARGET_CHAN, &rttParams[i].channel, in createSetupRequest()
[all …]
/device/google/cuttlefish/host/commands/secure_env/
Dkeymaster_responder.cpp27 auto request = channel_->ReceiveMessage(); in ProcessMessage() local
28 if (!request) { in ProcessMessage()
32 const uint8_t* buffer = request->payload; in ProcessMessage()
33 const uint8_t* end = request->payload + request->payload_size; in ProcessMessage()
34 switch(request->cmd) { in ProcessMessage()
38 METHOD_NAME##Request request; \ in ProcessMessage()
39 if (!request.Deserialize(&buffer, end)) { \ in ProcessMessage()
44 keymaster_->METHOD_NAME(request, &response); \ in ProcessMessage()
71 METHOD_NAME##Request request; \ in ProcessMessage()
72 if (!request.Deserialize(&buffer, end)) { \ in ProcessMessage()
[all …]
Dgatekeeper_responder.cpp27 auto request = channel_->ReceiveMessage(); in ProcessMessage() local
28 if (!request) { in ProcessMessage()
32 const uint8_t* buffer = request->payload; in ProcessMessage()
33 const uint8_t* buffer_end = request->payload + request->payload_size; in ProcessMessage()
34 switch(request->cmd) { in ProcessMessage()
59 LOG(ERROR) << "Unrecognized message id " << request->cmd; in ProcessMessage()
/device/generic/goldfish/tnc/
Dmain.cpp125 struct ifreq request; in configureBridge() local
126 memset(&request, 0, sizeof(request)); in configureBridge()
127 request.ifr_ifindex = if_nametoindex(ifName); in configureBridge()
128 if (request.ifr_ifindex == 0) { in configureBridge()
134 strlcpy(request.ifr_name, kBridgeName, sizeof(request.ifr_name)); in configureBridge()
135 res = ::ioctl(fd, SIOCBRADDIF, &request); in configureBridge()
144 struct ifreq request; in configureBridge() local
145 memset(&request, 0, sizeof(request)); in configureBridge()
146 request.ifr_ifindex = if_nametoindex(kBridgeName); in configureBridge()
147 if (request.ifr_ifindex == 0) { in configureBridge()
[all …]
/device/generic/goldfish-opengl/shared/GoldfishAddressSpace/include/
Dgoldfish_address_space_android.impl69 long ioctl_allocate(int fd, struct goldfish_address_space_allocate_block *request)
71 return ::ioctl(fd, GOLDFISH_ADDRESS_SPACE_IOCTL_ALLOCATE_BLOCK, request);
79 long ioctl_ping(int fd, struct address_space_ping *request)
81 return ::ioctl(fd, GOLDFISH_ADDRESS_SPACE_IOCTL_PING, request);
86 struct address_space_ping request;
87 ::memset(&request, 0, sizeof(request));
88 request.version = sizeof(request);
89 request.metadata = type;
91 long ret = ioctl_ping(fd, &request);
96 return request.metadata;
[all …]
Dgoldfish_address_space_host.impl43 AddressSpaceDevicePingInfo request;
44 ::memset(&request, 0, sizeof(request));
45 request.metadata = subdevice;
47 HostAddressSpaceDevice::get()->ping(m_handle, &request);
255 AddressSpaceDevicePingInfo request;
257 ::memset(&request, 0, sizeof(request));
258 request.size = block->size();
259 request.metadata = HOST_MEMORY_ALLOCATOR_COMMAND_ALLOCATE_ID;
261 HostAddressSpaceDevice::get()->ping(m_provider.m_handle, &request);
263 block->claimShared(&m_provider, request.phys_addr, request.size);
[all …]
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DAddressSpaceStream.cpp45 struct address_space_ping request; in createAddressSpaceStream() local
46 request.metadata = ASG_GET_RING; in createAddressSpaceStream()
47 if (!goldfish_address_space_ping(child_device_handle, &request)) { in createAddressSpaceStream()
53 uint64_t ringOffset = request.metadata; in createAddressSpaceStream()
55 request.metadata = ASG_GET_BUFFER; in createAddressSpaceStream()
56 if (!goldfish_address_space_ping(child_device_handle, &request)) { in createAddressSpaceStream()
62 uint64_t bufferOffset = request.metadata; in createAddressSpaceStream()
63 uint64_t bufferSize = request.size; in createAddressSpaceStream()
107 request.metadata = ASG_SET_VERSION; in createAddressSpaceStream()
108 request.size = 1; // version 1 in createAddressSpaceStream()
[all …]
/device/google/cuttlefish/host/frontend/gcastv2/https/
DHTTPServer.cpp83 HTTPRequest request; in handleSingleRequest() local
84 request.setTo(data, size); in handleSingleRequest()
90 if (request.initCheck() < 0) { in handleSingleRequest()
92 } else if (request.getMethod() != "GET") { in handleSingleRequest()
94 } else if (request.getVersion() != "HTTP/1.1") { in handleSingleRequest()
99 auto path = request.getPath(); in handleSingleRequest()
121 request, in handleSingleRequest()
139 request, in handleSingleRequest()
182 if (request.getHeaderField("Connection", &value) && value == "close") { in handleSingleRequest()
240 const HTTPRequest &request, in handleWebSocketRequest() argument
[all …]
/device/google/cuttlefish/guest/hals/ril/reference-libril/
DRilSapSocket.cpp48 SapSocketRequest *request = (SapSocketRequest*) t; in sOnRequestComplete() local
50 RLOGD("Socket id:%d", request->socketId); in sOnRequestComplete()
52 sap_socket = getSocketById(request->socketId); in sOnRequestComplete()
58 if (request->curr) { in sOnRequestComplete()
59 free(request->curr); in sOnRequestComplete()
61 free(request); in sOnRequestComplete()
235 SapSocketRequest* request= (SapSocketRequest*)t; in onRequestComplete() local
237 if (!request || !request->curr) { in onRequestComplete()
242 MsgHeader *hdr = request->curr; in onRequestComplete()
245 rsp.token = request->curr->token; in onRequestComplete()
[all …]
/device/generic/goldfish/radio/libril/
DRilSapSocket.cpp48 SapSocketRequest *request = (SapSocketRequest*) t; in sOnRequestComplete() local
50 RLOGD("Socket id:%d", request->socketId); in sOnRequestComplete()
52 sap_socket = getSocketById(request->socketId); in sOnRequestComplete()
58 if (request->curr) { in sOnRequestComplete()
59 free(request->curr); in sOnRequestComplete()
61 free(request); in sOnRequestComplete()
235 SapSocketRequest* request= (SapSocketRequest*)t; in onRequestComplete() local
237 if (!request || !request->curr) { in onRequestComplete()
242 MsgHeader *hdr = request->curr; in onRequestComplete()
245 rsp.token = request->curr->token; in onRequestComplete()
[all …]
DrilSocketQueue.h72 void enqueue(T* request);
121 void Ril_queue<T>::enqueue(T* request) { in enqueue() argument
126 this->front = request; in enqueue()
127 request->p_next = NULL; in enqueue()
129 request->p_next = this->front; in enqueue()
130 this->front = request; in enqueue()
/device/google/cuttlefish/guest/hals/ril/libril/
DRilSapSocket.cpp48 SapSocketRequest *request = (SapSocketRequest*) t; in sOnRequestComplete() local
50 RLOGD("Socket id:%d", request->socketId); in sOnRequestComplete()
52 sap_socket = getSocketById(request->socketId); in sOnRequestComplete()
58 if (request->curr) { in sOnRequestComplete()
59 free(request->curr); in sOnRequestComplete()
61 free(request); in sOnRequestComplete()
235 SapSocketRequest* request= (SapSocketRequest*)t; in onRequestComplete() local
237 if (!request || !request->curr) { in onRequestComplete()
242 MsgHeader *hdr = request->curr; in onRequestComplete()
245 rsp.token = request->curr->token; in onRequestComplete()
[all …]
/device/google/cuttlefish/guest/hals/gatekeeper/remote/
Dremote_gatekeeper.h74 gatekeeper_error_t Send(uint32_t command, const GateKeeperMessage& request,
77 gatekeeper_error_t Send(const EnrollRequest& request, EnrollResponse *response) { in Send() argument
78 return Send(ENROLL, request, response); in Send()
81 gatekeeper_error_t Send(const VerifyRequest& request, VerifyResponse *response) { in Send() argument
82 return Send(VERIFY, request, response); in Send()

12345