* Fill in the packet header from attributes, and then
* re-realize the attributes.
*/
- fr_packet_pairs_to_packet(packet, packet_vps);
+ fr_packet_net_from_pairs(packet, packet_vps);
if (fp != stdin) fclose(fp);
* Fill in the packet header from attributes, and then
* re-realize the attributes.
*/
- fr_packet_pairs_to_packet(request->packet, &request->request_pairs);
+ fr_packet_net_from_pairs(request->packet, &request->request_pairs);
/*
* Default to the filename
* Fill in the packet header from attributes, and then
* re-realize the attributes.
*/
- fr_packet_pairs_to_packet(request->packet, &request->request_pairs);
+ fr_packet_net_from_pairs(request->packet, &request->request_pairs);
/*
* Default to the filename
vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_packet_type);
if (vp) request->packet->code = vp->vp_uint32;
- fr_packet_pairs_to_packet(request->packet, &request->request_pairs);
+ fr_packet_net_from_pairs(request->packet, &request->request_pairs);
/*
* The input might have updated only some of the Net.*
* @param packet the packet to send
* @param list the list to check for Net.*
*/
-void fr_packet_pairs_to_packet(fr_packet_t *packet, fr_pair_list_t const *list)
+void fr_packet_net_from_pairs(fr_packet_t *packet, fr_pair_list_t const *list)
{
fr_pair_t *net, *tlv;
#include <freeradius-devel/util/socket.h>
int fr_packet_pairs_from_packet(TALLOC_CTX *ctx, fr_pair_list_t *list, fr_packet_t const *packet) CC_HINT(nonnull);
-void fr_packet_pairs_to_packet(fr_packet_t *packet, fr_pair_list_t const *list) CC_HINT(nonnull);
+void fr_packet_net_from_pairs(fr_packet_t *packet, fr_pair_list_t const *list) CC_HINT(nonnull);
int packet_global_init(void);
RDEBUG("WARNING: Sender-Hardware-Address of zeros will likely cause problems");
}
- fr_packet_pairs_to_packet(request->reply, &request->reply_pairs);
+ fr_packet_net_from_pairs(request->reply, &request->reply_pairs);
if (RDEBUG_ENABLED) {
RDEBUG("Sending %d via socket %s",
client = address->radclient;
fr_assert(client);
- fr_packet_pairs_to_packet(request->reply, &request->reply_pairs);
+ fr_packet_net_from_pairs(request->reply, &request->reply_pairs);
/*
* Dynamic client stuff
RHEXDUMP3(buffer, data_len, "proto_dns encode packet");
- fr_packet_pairs_to_packet(request->reply, &request->reply_pairs);
+ fr_packet_net_from_pairs(request->reply, &request->reply_pairs);
return data_len;
}
fr_io_track_t *track = talloc_get_type_abort(request->async->packet_ctx, fr_io_track_t);
fr_io_address_t const *address = track->address;
ssize_t data_len;
- fr_client_t const *client;
+ fr_client_t const *client;
/*
* Process layer NAK, or "Do not respond".
return -1;
}
- fr_packet_pairs_to_packet(request->reply, &request->reply_pairs);
+ fr_packet_net_from_pairs(request->reply, &request->reply_pairs);
if (RDEBUG_ENABLED) {
RDEBUG("Sending %s ID %i from %pV:%i to %pV:%i length %zu via socket %s",
return -1;
}
- fr_packet_pairs_to_packet(request->reply, &request->reply_pairs);
+ fr_packet_net_from_pairs(request->reply, &request->reply_pairs);
RHEXDUMP3(buffer, data_len, "proto_vmps encode packet");