/dragonfly/usr.sbin/sdpd/ |
H A D | server.c | 203 srv->req = (uint8_t *) calloc(srv->imtu, sizeof(srv->req[0])); in server_init() 212 srv->fdidx = (fd_idx_p) calloc(FD_SETSIZE, sizeof(srv->fdidx[0])); in server_init() 215 free(srv->req); in server_init() 224 free(srv->fdidx); in server_init() 225 free(srv->req); in server_init() 279 free(srv->req); in server_shutdown() 280 free(srv->fdidx); in server_shutdown() 282 memset(srv, 0, sizeof(*srv)); in server_shutdown() 409 srv->fdidx[cfd].control = srv->fdidx[fd].control; in server_accept_client() 624 srv->maxfd --; in server_close_fd() [all …]
|
H A D | ssr.c | 229 srv->fdidx[fd].rsp_limit = srv->fdidx[fd].omtu - sizeof(sdp_pdu_t) - 4; in server_prepare_service_search_response() 230 srv->fdidx[fd].rsp_size = rsp - srv->fdidx[fd].rsp; in server_prepare_service_search_response() 231 srv->fdidx[fd].rsp_cs = 0; in server_prepare_service_search_response() 243 uint8_t *rsp = srv->fdidx[fd].rsp + srv->fdidx[fd].rsp_cs; in server_send_service_search_response() 244 uint8_t *rsp_end = srv->fdidx[fd].rsp + srv->fdidx[fd].rsp_size; in server_send_service_search_response() 254 srv->fdidx[fd].rsp_cs += size; in server_send_service_search_response() 264 srv->fdidx[fd].rsp_cs -= 4; in server_send_service_search_response() 302 if (srv->fdidx[fd].rsp_cs == srv->fdidx[fd].rsp_size) { in server_send_service_search_response() 303 srv->fdidx[fd].rsp_cs = 0; in server_send_service_search_response() 304 srv->fdidx[fd].rsp_size = 0; in server_send_service_search_response() [all …]
|
H A D | srr.c | 57 uint8_t *rsp = srv->fdidx[fd].rsp; in server_prepare_service_register_response() 71 if (!srv->fdidx[fd].control || in server_prepare_service_register_response() 102 srv->fdidx[fd].rsp_limit = srv->fdidx[fd].omtu - sizeof(sdp_pdu_t); in server_prepare_service_register_response() 103 srv->fdidx[fd].rsp_size = rsp - srv->fdidx[fd].rsp; in server_prepare_service_register_response() 104 srv->fdidx[fd].rsp_cs = 0; in server_prepare_service_register_response() 120 assert(srv->fdidx[fd].rsp_size < srv->fdidx[fd].rsp_limit); in server_send_service_register_response() 123 pdu.tid = ((sdp_pdu_p)(srv->req))->tid; in server_send_service_register_response() 129 iov[1].iov_base = srv->fdidx[fd].rsp; in server_send_service_register_response() 136 srv->fdidx[fd].rsp_cs = 0; in server_send_service_register_response() 137 srv->fdidx[fd].rsp_size = 0; in server_send_service_register_response() [all …]
|
H A D | sar.c | 234 srv->fdidx[fd].rsp_limit = srv->fdidx[fd].omtu - sizeof(sdp_pdu_t) - 2; in server_prepare_service_attribute_response() 238 srv->fdidx[fd].rsp_size = cs; in server_prepare_service_attribute_response() 239 srv->fdidx[fd].rsp_cs = 0; in server_prepare_service_attribute_response() 251 uint8_t *rsp = srv->fdidx[fd].rsp + srv->fdidx[fd].rsp_cs; in server_send_service_attribute_response() 252 uint8_t *rsp_end = srv->fdidx[fd].rsp + srv->fdidx[fd].rsp_size; in server_send_service_attribute_response() 262 srv->fdidx[fd].rsp_cs += size; in server_send_service_attribute_response() 272 srv->fdidx[fd].rsp_cs --; in server_send_service_attribute_response() 312 if (srv->fdidx[fd].rsp_cs == srv->fdidx[fd].rsp_size) { in server_send_service_attribute_response() 313 srv->fdidx[fd].rsp_cs = 0; in server_send_service_attribute_response() 314 srv->fdidx[fd].rsp_size = 0; in server_send_service_attribute_response() [all …]
|
H A D | ssar.c | 52 uint8_t const *req = srv->req + sizeof(sdp_pdu_t); in server_prepare_service_search_attribute_response() 54 uint8_t *rsp = srv->fdidx[fd].rsp; in server_prepare_service_search_attribute_response() 134 if (srv->fdidx[fd].rsp_cs != cs) in server_prepare_service_search_attribute_response() 136 if (srv->fdidx[fd].rsp_size > 0) in server_prepare_service_search_attribute_response() 168 srv->fdidx[fd].rsp_limit = srv->fdidx[fd].omtu - sizeof(sdp_pdu_t) - 2; in server_prepare_service_search_attribute_response() 169 if (srv->fdidx[fd].rsp_limit > rsp_limit) in server_prepare_service_search_attribute_response() 170 srv->fdidx[fd].rsp_limit = rsp_limit; in server_prepare_service_search_attribute_response() 172 srv->fdidx[fd].rsp_size = rsp - srv->fdidx[fd].rsp; in server_prepare_service_search_attribute_response() 173 srv->fdidx[fd].rsp_cs = 0; in server_prepare_service_search_attribute_response() 176 rsp = srv->fdidx[fd].rsp; in server_prepare_service_search_attribute_response() [all …]
|
H A D | sur.c | 50 server_prepare_service_unregister_response(server_p srv, int32_t fd) in server_prepare_service_unregister_response() argument 52 uint8_t const *req = srv->req + sizeof(sdp_pdu_t); in server_prepare_service_unregister_response() 53 uint8_t const *req_end = req + ((sdp_pdu_p)(srv->req))->len; in server_prepare_service_unregister_response() 54 uint8_t *rsp = srv->fdidx[fd].rsp; in server_prepare_service_unregister_response() 65 if (!srv->fdidx[fd].control || in server_prepare_service_unregister_response() 66 !srv->fdidx[fd].priv || req_end - req < 4) in server_prepare_service_unregister_response() 81 srv->fdidx[fd].rsp_limit = srv->fdidx[fd].omtu - sizeof(sdp_pdu_t); in server_prepare_service_unregister_response() 82 srv->fdidx[fd].rsp_size = rsp - srv->fdidx[fd].rsp; in server_prepare_service_unregister_response() 83 srv->fdidx[fd].rsp_cs = 0; in server_prepare_service_unregister_response()
|
H A D | server.h | 109 int32_t server_init(server_p srv, const char *control, char const *sgroup); 110 void server_shutdown(server_p srv); 111 int32_t server_do(server_p srv); 115 int32_t server_prepare_service_search_response(server_p srv, int32_t fd); 116 int32_t server_send_service_search_response(server_p srv, int32_t fd); 118 int32_t server_prepare_service_attribute_response(server_p srv, int32_t fd); 119 int32_t server_send_service_attribute_response(server_p srv, int32_t fd); 125 int32_t server_prepare_service_register_response(server_p srv, int32_t fd); 126 int32_t server_send_service_register_response(server_p srv, int32_t fd); 128 int32_t server_prepare_service_unregister_response(server_p srv, int32_t fd); [all …]
|
H A D | scr.c | 50 server_prepare_service_change_response(server_p srv, int32_t fd) in server_prepare_service_change_response() argument 52 uint8_t const *req = srv->req + sizeof(sdp_pdu_t); in server_prepare_service_change_response() 53 uint8_t const *req_end = req + ((sdp_pdu_p)(srv->req))->len; in server_prepare_service_change_response() 54 uint8_t *rsp = srv->fdidx[fd].rsp; in server_prepare_service_change_response() 65 if (!srv->fdidx[fd].control || in server_prepare_service_change_response() 66 !srv->fdidx[fd].priv || req_end - req < 4) in server_prepare_service_change_response() 90 srv->fdidx[fd].rsp_limit = srv->fdidx[fd].omtu - sizeof(sdp_pdu_t); in server_prepare_service_change_response() 91 srv->fdidx[fd].rsp_size = rsp - srv->fdidx[fd].rsp; in server_prepare_service_change_response() 92 srv->fdidx[fd].rsp_cs = 0; in server_prepare_service_change_response()
|
/dragonfly/contrib/wpa_supplicant/src/wps/ |
H A D | http_server.c | 45 struct http_server *srv = req->srv; in http_request_cb() local 51 srv->cb(srv->cb_ctx, req); in http_request_cb() 75 req->srv = srv; in http_request_init() 99 srv = req->srv; in http_request_deinit() 237 srv = os_zalloc(sizeof(*srv)); in http_server_init() 238 if (srv == NULL) in http_server_init() 240 srv->cb = cb; in http_server_init() 244 if (srv->fd < 0) in http_server_init() 283 srv, NULL)) in http_server_init() 289 return srv; in http_server_init() [all …]
|
H A D | http_server.h | 30 void http_server_deinit(struct http_server *srv); 31 int http_server_get_port(struct http_server *srv);
|
/dragonfly/contrib/wpa_supplicant/src/ap/ |
H A D | authsrv.c | 106 struct radius_server_conf srv; in hostapd_setup_radius_srv() local 108 os_memset(&srv, 0, sizeof(srv)); in hostapd_setup_radius_srv() 112 srv.conf_ctx = hapd; in hostapd_setup_radius_srv() 114 srv.ssl_ctx = hapd->ssl_ctx; in hostapd_setup_radius_srv() 115 srv.msg_ctx = hapd->msg_ctx; in hostapd_setup_radius_srv() 126 srv.eap_sim_id = conf->eap_sim_id; in hostapd_setup_radius_srv() 127 srv.tnc = conf->tnc; in hostapd_setup_radius_srv() 128 srv.wps = hapd->wps; in hostapd_setup_radius_srv() 133 srv.pwd_group = conf->pwd_group; in hostapd_setup_radius_srv() 145 srv.erp = conf->eap_server_erp; in hostapd_setup_radius_srv() [all …]
|
/dragonfly/usr.sbin/ppp/libradius/ |
H A D | radlib.c | 457 int srv; in rad_close() local 461 for (srv = 0; srv < h->num_servers; srv++) { in rad_close() 715 h->srv++; in rad_continue_send_request() 795 h->srv = -1; in rad_receive_request() 975 int srv; in rad_init_send_request() local 1030 h->srv = 0; in rad_init_send_request() 1032 for (srv = 0; srv < h->num_servers; srv++) in rad_init_send_request() 1035 for (srv = 0; srv < h->num_servers; srv++) { in rad_init_send_request() 1043 h->srv++; in rad_init_send_request() 1048 for (srv = 0; srv < h->num_servers; srv++) { in rad_init_send_request() [all …]
|
H A D | radlib_private.h | 96 int srv; /* Server number we did last */ member
|
/dragonfly/lib/libc/rpc/ |
H A D | auth_time.c | 202 srv->name = (nis_name) host; in get_server() 203 srv->ep.ep_len = num_ep; in get_server() 204 srv->ep.ep_val = eps; in get_server() 205 srv->key_type = NIS_PK_NONE; in get_server() 206 srv->pkey.n_bytes = NULL; in get_server() 207 srv->pkey.n_len = 0; in get_server() 208 return (srv); in get_server() 273 if (! srv) { in __rpc_get_time_offset() 275 if (srv == NULL) { in __rpc_get_time_offset() 282 ep = srv->ep.ep_val; in __rpc_get_time_offset() [all …]
|
/dragonfly/usr.sbin/ypserv/ |
H A D | ypinit.sh | 282 …for srv in `${MAKEDBM} -u ${YP_DIR}/${DOMAIN}/ypservers | grep -v "^YP" | tr "\t" " " | cut -d\ -… 284 short_srv=`echo ${srv} | cut -d. -f1` 289 NEW_LIST="${srv}" 291 NEW_LIST="${NEW_LIST} ${srv}"
|
/dragonfly/lib/libc/resolv/ |
H A D | res_send.c | 174 const struct sockaddr_in *inp, *srv; in res_ourserver_p() local 182 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); in res_ourserver_p() 183 if (srv->sin_family == inp->sin_family && in res_ourserver_p() 184 srv->sin_port == inp->sin_port && in res_ourserver_p() 185 (srv->sin_addr.s_addr == INADDR_ANY || in res_ourserver_p() 186 srv->sin_addr.s_addr == inp->sin_addr.s_addr)) in res_ourserver_p()
|
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/ |
H A D | eap_testing.txt | 176 - EAP-TTLS / CHAP (using FreeRADIUS as inner auth srv) 180 - EAP-TTLS / EAP-MD5-Challenge (using FreeRADIUS as inner auth srv) 181 - EAP-TTLS / EAP-GTC (using FreeRADIUS as inner auth srv) 182 - EAP-TTLS / EAP-MSCHAPv2 (using FreeRADIUS as inner auth srv) 183 - EAP-TTLS / EAP-TLS (using FreeRADIUS as inner auth srv)
|
/dragonfly/etc/ |
H A D | services | 269 loc-srv 135/tcp epmap #Location Service 270 loc-srv 135/udp epmap #Location Service 319 pcmail-srv 158/tcp #PCMail Server 320 pcmail-srv 158/udp #PCMail Server 343 print-srv 170/tcp #Network PostScript 344 print-srv 170/udp #Network PostScript 2148 #zephyr-hm-srv 2105/udp #Zephyr hm-serv connection
|
/dragonfly/share/zoneinfo/ |
H A D | southamerica | 1682 # <news:xrGmb.39935$gA1.13896113@news4.srv.hcvlny.cv.net>:
|