-static int proxy_id_alloc(REQUEST *request, RADIUS_PACKET *packet)
-{
- void *proxy_listener;
-
- if (fr_packet_list_id_alloc(proxy_list, request->home_server->proto,
- packet, &proxy_listener)) {
- request->proxy_listener = proxy_listener;
- return 1;
- }
-
- if (!proxy_new_listener(request->home_server, 0)) {
- RDEBUG2("ERROR: Failed to create a new socket for proxying requests.");
- return 0;
- }
-
- if (!fr_packet_list_id_alloc(proxy_list, request->home_server->proto,
- packet, &proxy_listener)) {
- RDEBUG2("ERROR: Failed allocating Id for new socket when proxying requests.");
- return 0;
- }
-
- request->proxy_listener = proxy_listener;
- return 1;
-}
-
-
-static int insert_into_proxy_hash(REQUEST *request, int retransmit)