/external/wpa_supplicant_8/src/wps/ |
D | http_server.c | 30 void (*cb)(void *ctx, struct http_request *req); 44 struct http_request *req = cookie; in http_request_cb() local 45 struct http_server *srv = req->srv; in http_request_cb() 49 inet_ntoa(req->cli.sin_addr), in http_request_cb() 50 ntohs(req->cli.sin_port)); in http_request_cb() 51 srv->cb(srv->cb_ctx, req); in http_request_cb() 55 "completely", inet_ntoa(req->cli.sin_addr), in http_request_cb() 56 ntohs(req->cli.sin_port)); in http_request_cb() 57 http_request_deinit(req); in http_request_cb() 64 struct http_request *req; in http_request_init() local [all …]
|
D | http_server.h | 15 void http_request_deinit(struct http_request *req); 16 void http_request_send(struct http_request *req, struct wpabuf *resp); 17 void http_request_send_and_deinit(struct http_request *req, 19 enum httpread_hdr_type http_request_get_type(struct http_request *req); 20 char * http_request_get_uri(struct http_request *req); 21 char * http_request_get_hdr(struct http_request *req); 22 char * http_request_get_data(struct http_request *req); 23 char * http_request_get_hdr_line(struct http_request *req, const char *tag); 24 struct sockaddr_in * http_request_get_cli_addr(struct http_request *req); 28 struct http_request *req),
|
/external/chromium/third_party/libevent/ |
D | http.c | 211 struct evhttp_request *req); 213 struct evhttp_request *req); 379 struct evhttp_request *req) in evhttp_make_header_request() argument 383 evhttp_remove_header(req->output_headers, "Proxy-Connection"); in evhttp_make_header_request() 386 method = evhttp_method(req->type); in evhttp_make_header_request() 388 method, req->uri, req->major, req->minor); in evhttp_make_header_request() 391 if (req->type == EVHTTP_REQ_POST && in evhttp_make_header_request() 392 evhttp_find_header(req->output_headers, "Content-Length") == NULL){ in evhttp_make_header_request() 395 (long)EVBUFFER_LENGTH(req->output_buffer)); in evhttp_make_header_request() 396 evhttp_add_header(req->output_headers, "Content-Length", size); in evhttp_make_header_request() [all …]
|
D | evdns.c | 321 static void evdns_request_insert(struct request *req, struct request **head); 324 static int evdns_request_transmit(struct request *req); 327 static int search_try_next(struct request *const req); 332 static void request_submit(struct request *const req); 334 static int server_request_free(struct server_request *req); 335 static void server_request_free_answers(struct server_request *req); 434 struct request *req = req_head, *const started_at = req_head; in request_find_from_trans_id() local 436 if (req) { in request_find_from_trans_id() 438 if (req->trans_id == trans_id) return req; in request_find_from_trans_id() 439 req = req->next; in request_find_from_trans_id() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/Xxf86vm/ |
D | XF86VMode.c | 128 xXF86VidModeQueryVersionReq *req; variable 133 GetReq(XF86VidModeQueryVersion, req); 134 req->reqType = info->codes->major_opcode; 135 req->xf86vidmodeReqType = X_XF86VidModeQueryVersion; 154 xXF86VidModeSetClientVersionReq *req; in SDL_NAME() local 159 GetReq(XF86VidModeSetClientVersion, req); in SDL_NAME() 160 req->reqType = info->codes->major_opcode; in SDL_NAME() 161 req->xf86vidmodeReqType = X_XF86VidModeSetClientVersion; in SDL_NAME() 162 req->major = XF86VIDMODE_MAJOR_VERSION; in SDL_NAME() 163 req->minor = XF86VIDMODE_MINOR_VERSION; in SDL_NAME() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/Xv/ |
D | Xv.c | 115 xvQueryExtensionReq *req; in XEXT_GENERATE_CLOSE_DISPLAY() local 122 XvGetReq(QueryExtension, req); in XEXT_GENERATE_CLOSE_DISPLAY() 150 xvQueryAdaptorsReq *req; in SDL_NAME() local 169 XvGetReq(QueryAdaptors, req); in SDL_NAME() 170 req->window = window; in SDL_NAME() 311 xvQueryEncodingsReq *req; in SDL_NAME() local 328 XvGetReq(QueryEncodings, req); in SDL_NAME() 329 req->port = port; in SDL_NAME() 433 xvPutVideoReq *req; in SDL_NAME() local 441 XvGetReq(PutVideo, req); in SDL_NAME() [all …]
|
/external/chromium/third_party/libevent/test/ |
D | regress_http.c | 69 void http_basic_cb(struct evhttp_request *req, void *arg); 70 static void http_chunked_cb(struct evhttp_request *req, void *arg); 71 void http_post_cb(struct evhttp_request *req, void *arg); 72 void http_dispatcher_cb(struct evhttp_request *req, void *arg); 73 static void http_large_delay_cb(struct evhttp_request *req, void *arg); 169 struct evhttp_request *req = evhttp_request_new(NULL, NULL); in http_readcb() local 172 req->kind = EVHTTP_RESPONSE; in http_readcb() 173 done = evhttp_parse_firstline(req, bev->input); in http_readcb() 177 done = evhttp_parse_headers(req, bev->input); in http_readcb() 182 evhttp_find_header(req->input_headers, in http_readcb() [all …]
|
/external/iproute2/ip/ |
D | xfrm_state.c | 244 } req; in xfrm_state_modify() local 254 memset(&req, 0, sizeof(req)); in xfrm_state_modify() 257 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xsinfo)); in xfrm_state_modify() 258 req.n.nlmsg_flags = NLM_F_REQUEST|flags; in xfrm_state_modify() 259 req.n.nlmsg_type = cmd; in xfrm_state_modify() 260 req.xsinfo.family = preferred_family; in xfrm_state_modify() 262 req.xsinfo.lft.soft_byte_limit = XFRM_INF; in xfrm_state_modify() 263 req.xsinfo.lft.hard_byte_limit = XFRM_INF; in xfrm_state_modify() 264 req.xsinfo.lft.soft_packet_limit = XFRM_INF; in xfrm_state_modify() 265 req.xsinfo.lft.hard_packet_limit = XFRM_INF; in xfrm_state_modify() [all …]
|
D | iplink.c | 151 } req; in iplink_have_newlink() local 154 memset(&req, 0, sizeof(req)); in iplink_have_newlink() 156 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in iplink_have_newlink() 157 req.n.nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK; in iplink_have_newlink() 158 req.n.nlmsg_type = RTM_NEWLINK; in iplink_have_newlink() 159 req.i.ifi_family = AF_UNSPEC; in iplink_have_newlink() 161 rtnl_send(&rth, (char *)&req.n, req.n.nlmsg_len); in iplink_have_newlink() 180 struct iplink_req *req) in iplink_parse_vf() argument 186 vfinfo = addattr_nest(&req->n, sizeof(*req), IFLA_VF_INFO); in iplink_parse_vf() 197 addattr_l(&req->n, sizeof(*req), IFLA_VF_MAC, &ivm, sizeof(ivm)); in iplink_parse_vf() [all …]
|
D | iprule.c | 231 } req; in iprule_modify() local 233 memset(&req, 0, sizeof(req)); in iprule_modify() 235 req.n.nlmsg_type = cmd; in iprule_modify() 236 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in iprule_modify() 237 req.n.nlmsg_flags = NLM_F_REQUEST; in iprule_modify() 238 req.r.rtm_family = preferred_family; in iprule_modify() 239 req.r.rtm_protocol = RTPROT_BOOT; in iprule_modify() 240 req.r.rtm_scope = RT_SCOPE_UNIVERSE; in iprule_modify() 241 req.r.rtm_table = 0; in iprule_modify() 242 req.r.rtm_type = RTN_UNSPEC; in iprule_modify() [all …]
|
D | iproute.c | 666 } req; in iproute_modify() local 680 memset(&req, 0, sizeof(req)); in iproute_modify() 682 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in iproute_modify() 683 req.n.nlmsg_flags = NLM_F_REQUEST|flags; in iproute_modify() 684 req.n.nlmsg_type = cmd; in iproute_modify() 685 req.r.rtm_family = preferred_family; in iproute_modify() 686 req.r.rtm_table = RT_TABLE_MAIN; in iproute_modify() 687 req.r.rtm_scope = RT_SCOPE_NOWHERE; in iproute_modify() 690 req.r.rtm_protocol = RTPROT_BOOT; in iproute_modify() 691 req.r.rtm_scope = RT_SCOPE_UNIVERSE; in iproute_modify() [all …]
|
D | xfrm_policy.c | 233 } req; in xfrm_policy_modify() local 242 memset(&req, 0, sizeof(req)); in xfrm_policy_modify() 246 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpinfo)); in xfrm_policy_modify() 247 req.n.nlmsg_flags = NLM_F_REQUEST|flags; in xfrm_policy_modify() 248 req.n.nlmsg_type = cmd; in xfrm_policy_modify() 249 req.xpinfo.sel.family = preferred_family; in xfrm_policy_modify() 251 req.xpinfo.lft.soft_byte_limit = XFRM_INF; in xfrm_policy_modify() 252 req.xpinfo.lft.hard_byte_limit = XFRM_INF; in xfrm_policy_modify() 253 req.xpinfo.lft.soft_packet_limit = XFRM_INF; in xfrm_policy_modify() 254 req.xpinfo.lft.hard_packet_limit = XFRM_INF; in xfrm_policy_modify() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/Xxf86dga/ |
D | XF86DGA2.c | 173 xXDGAQueryVersionReq *req; in SDL_NAME() local 178 GetReq(XDGAQueryVersion, req); in SDL_NAME() 179 req->reqType = info->codes->major_opcode; in SDL_NAME() 180 req->dgaReqType = X_XDGAQueryVersion; in SDL_NAME() 210 xXDGASetClientVersionReq *req; in SDL_NAME() local 215 GetReq(XDGASetClientVersion, req); in SDL_NAME() 216 req->reqType = info->codes->major_opcode; in SDL_NAME() 217 req->dgaReqType = X_XDGASetClientVersion; in SDL_NAME() 218 req->major = XDGA_MAJOR_VERSION; in SDL_NAME() 219 req->minor = XDGA_MINOR_VERSION; in SDL_NAME() [all …]
|
D | XF86DGA.c | 111 xXF86DGAGetVideoLLReq *req; in SDL_NAME() local 116 GetReq(XF86DGAGetVideoLL, req); in SDL_NAME() 117 req->reqType = info->codes->major_opcode; in SDL_NAME() 118 req->dgaReqType = X_XF86DGAGetVideoLL; in SDL_NAME() 119 req->screen = screen; in SDL_NAME() 143 xXF86DGADirectVideoReq *req; in SDL_NAME() local 148 GetReq(XF86DGADirectVideo, req); in SDL_NAME() 149 req->reqType = info->codes->major_opcode; in SDL_NAME() 150 req->dgaReqType = X_XF86DGADirectVideo; in SDL_NAME() 151 req->screen = screen; in SDL_NAME() [all …]
|
/external/openssl/crypto/x509/ |
D | x509_req.c | 110 EVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req) in X509_REQ_get_pubkey() argument 112 if ((req == NULL) || (req->req_info == NULL)) in X509_REQ_get_pubkey() 114 return(X509_PUBKEY_get(req->req_info->pubkey)); in X509_REQ_get_pubkey() 186 STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req) in STACK_OF() 193 if ((req == NULL) || (req->req_info == NULL) || !ext_nids) in STACK_OF() 197 idx = X509_REQ_get_attr_by_NID(req, *pnid, -1); in STACK_OF() 200 attr = X509_REQ_get_attr(req, idx); in STACK_OF() 218 int X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts, in X509_REQ_add_extensions_nid() argument 238 if (!req->req_info->attributes) in X509_REQ_add_extensions_nid() 240 if (!(req->req_info->attributes = sk_X509_ATTRIBUTE_new_null())) in X509_REQ_add_extensions_nid() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/XME/ |
D | xme.c | 188 #define XiGMiscGetReq(name,req,info) GetReq (name, req); \ argument 189 req->reqType = info->codes->major_opcode; \ 190 req->xigmiscReqType = X_##name; 192 #define XiGMiscGetReqExtra(name,n,req,info) GetReqExtra (name, n, req); \ argument 193 req->reqType = info->codes->major_opcode; \ 194 req->xigmicReqType = X_##name; 196 #define XiGMiscGetReq(name,req,info) GetReq (name, req); \ argument 197 req->reqType = info->codes->major_opcode; \ 198 req->xigmiscReqType = X_/**/name; 199 #define XiGMiscGetReqExtra(name,n,req,info) GetReqExtra (name, n, req); \ argument [all …]
|
/external/wpa_supplicant_8/src/drivers/ |
D | netlink.c | 147 } req; in netlink_send_oper_ifla() local 152 os_memset(&req, 0, sizeof(req)); in netlink_send_oper_ifla() 154 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in netlink_send_oper_ifla() 155 req.hdr.nlmsg_type = RTM_SETLINK; in netlink_send_oper_ifla() 156 req.hdr.nlmsg_flags = NLM_F_REQUEST; in netlink_send_oper_ifla() 157 req.hdr.nlmsg_seq = ++nl_seq; in netlink_send_oper_ifla() 158 req.hdr.nlmsg_pid = 0; in netlink_send_oper_ifla() 160 req.ifinfo.ifi_family = AF_UNSPEC; in netlink_send_oper_ifla() 161 req.ifinfo.ifi_type = 0; in netlink_send_oper_ifla() 162 req.ifinfo.ifi_index = ifindex; in netlink_send_oper_ifla() [all …]
|
/external/iproute2/tc/ |
D | m_action.c | 389 } req; in tc_action_gd() local 391 req.t.tca_family = AF_UNSPEC; in tc_action_gd() 393 memset(&req, 0, sizeof(req)); in tc_action_gd() 398 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg)); in tc_action_gd() 399 req.n.nlmsg_flags = NLM_F_REQUEST|flags; in tc_action_gd() 400 req.n.nlmsg_type = cmd; in tc_action_gd() 405 tail = NLMSG_TAIL(&req.n); in tc_action_gd() 406 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_action_gd() 453 tail2 = NLMSG_TAIL(&req.n); in tc_action_gd() 454 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_action_gd() [all …]
|
D | tc_qdisc.c | 61 } req; in tc_qdisc_modify() local 63 memset(&req, 0, sizeof(req)); in tc_qdisc_modify() 69 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in tc_qdisc_modify() 70 req.n.nlmsg_flags = NLM_F_REQUEST|flags; in tc_qdisc_modify() 71 req.n.nlmsg_type = cmd; in tc_qdisc_modify() 72 req.t.tcm_family = AF_UNSPEC; in tc_qdisc_modify() 82 if (req.t.tcm_handle) in tc_qdisc_modify() 87 req.t.tcm_handle = handle; in tc_qdisc_modify() 89 if (req.t.tcm_parent) { in tc_qdisc_modify() 93 req.t.tcm_parent = TC_H_ROOT; in tc_qdisc_modify() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/Xinerama/ |
D | Xinerama.c | 109 register xPanoramiXQueryVersionReq *req; in SDL_NAME() local 114 GetReq (PanoramiXQueryVersion, req); in SDL_NAME() 115 req->reqType = info->codes->major_opcode; in SDL_NAME() 116 req->panoramiXReqType = X_PanoramiXQueryVersion; in SDL_NAME() 117 req->clientMajor = PANORAMIX_MAJOR_VERSION; in SDL_NAME() 118 req->clientMinor = PANORAMIX_MINOR_VERSION; in SDL_NAME() 144 register xPanoramiXGetStateReq *req; in SDL_NAME() local 149 GetReq (PanoramiXGetState, req); in SDL_NAME() 150 req->reqType = info->codes->major_opcode; in SDL_NAME() 151 req->panoramiXReqType = X_PanoramiXGetState; in SDL_NAME() [all …]
|
/external/chromium/net/url_request/ |
D | url_request_unittest.cc | 441 TestURLRequest req(https_test_server.GetURL( in TEST_F() local 443 req.set_referrer("https://www.referrer.com/"); in TEST_F() 444 req.Start(); in TEST_F() 449 EXPECT_EQ(http_destination, req.url()); in TEST_F() 450 EXPECT_EQ(std::string(), req.referrer()); in TEST_F() 462 TestURLRequest req(original_url, &d); in TEST_F() local 463 req.Start(); in TEST_F() 468 EXPECT_EQ(destination_url, req.url()); in TEST_F() 469 EXPECT_EQ(original_url, req.original_url()); in TEST_F() 470 ASSERT_EQ(3U, req.url_chain().size()); in TEST_F() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
D | eap_pax.c | 100 static struct wpabuf * eap_pax_alloc_resp(const struct eap_pax_hdr *req, in eap_pax_alloc_resp() argument 114 pax->mac_id = req->mac_id; in eap_pax_alloc_resp() 115 pax->dh_group_id = req->dh_group_id; in eap_pax_alloc_resp() 116 pax->public_key_id = req->public_key_id; in eap_pax_alloc_resp() 124 const struct eap_pax_hdr *req, in eap_pax_process_std_1() argument 141 if (req->flags & EAP_PAX_FLAGS_CE) { in eap_pax_process_std_1() 148 left = req_plen - sizeof(*req); in eap_pax_process_std_1() 157 pos = (const u8 *) (req + 1); in eap_pax_process_std_1() 187 if (eap_pax_initial_key_derivation(req->mac_id, data->ak, data->rand.e, in eap_pax_process_std_1() 198 resp = eap_pax_alloc_resp(req, id, EAP_PAX_OP_STD_2, plen); in eap_pax_process_std_1() [all …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_pax.c | 93 static struct wpabuf * eap_pax_alloc_resp(const struct eap_pax_hdr *req, in eap_pax_alloc_resp() argument 107 pax->mac_id = req->mac_id; in eap_pax_alloc_resp() 108 pax->dh_group_id = req->dh_group_id; in eap_pax_alloc_resp() 109 pax->public_key_id = req->public_key_id; in eap_pax_alloc_resp() 117 const struct eap_pax_hdr *req, in eap_pax_process_std_1() argument 134 if (req->flags & EAP_PAX_FLAGS_CE) { in eap_pax_process_std_1() 141 left = req_plen - sizeof(*req); in eap_pax_process_std_1() 150 pos = (const u8 *) (req + 1); in eap_pax_process_std_1() 180 if (eap_pax_initial_key_derivation(req->mac_id, data->ak, data->rand.e, in eap_pax_process_std_1() 191 resp = eap_pax_alloc_resp(req, id, EAP_PAX_OP_STD_2, plen); in eap_pax_process_std_1() [all …]
|
/external/mdnsresponder/mDNSShared/ |
D | uds_daemon.c | 308 mDNSlocal void abort_request(request_state *req) in abort_request() argument 310 if (req->terminate == (req_termination_fn)~0) in abort_request() 311 …{ LogMsg("abort_request: ERROR: Attempt to abort operation %p with req->terminate %p", req, req->t… in abort_request() 316 if (req->terminate) req->terminate(req); in abort_request() 318 if (!dnssd_SocketValid(req->sd)) in abort_request() 319 …{ LogMsg("abort_request: ERROR: Attempt to abort operation %p with invalid fd %d", req, req->s… in abort_request() 322 if (!req->primary) in abort_request() 324 …if (req->errsd != req->sd) LogOperation("%3d: Removing FD and closing errsd %d", req->sd, req->err… in abort_request() 325 else LogOperation("%3d: Removing FD", req->sd); in abort_request() 326 …udsSupportRemoveFDFromEventLoop(req->sd, req->platform_data); // Note: This also closes file desc… in abort_request() [all …]
|
/external/iptables/extensions/ |
D | libxt_set.h | 40 struct ip_set_req_get_set req; in get_set_byid() local 44 sockfd = get_version(&req.version); in get_set_byid() 45 req.op = IP_SET_OP_GET_BYINDEX; in get_set_byid() 46 req.set.index = idx; in get_set_byid() 47 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); in get_set_byid() 59 if (req.set.name[0] == '\0') in get_set_byid() 63 strncpy(setname, req.set.name, IPSET_MAXNAMELEN); in get_set_byid() 69 struct ip_set_req_get_set req; in get_set_byname() local 73 sockfd = get_version(&req.version); in get_set_byname() 74 req.op = IP_SET_OP_GET_BYNAME; in get_set_byname() [all …]
|