]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix confusing name
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 19 Jun 2024 20:11:40 +0000 (14:11 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 19 Jun 2024 20:12:25 +0000 (14:12 -0600)
src/bin/dhcpclient.c
src/bin/radclient-ng.c
src/bin/radclient.c
src/bin/unit_test_module.c
src/lib/server/packet.c
src/lib/server/packet.h
src/listen/arp/proto_arp.c
src/listen/bfd/proto_bfd.c
src/listen/dns/proto_dns.c
src/listen/radius/proto_radius.c
src/listen/vmps/proto_vmps.c

index 50e7687664c5ba075280a8ac7d8b7248f9bd6e86..85d39e47a693423d191a7e49812aee21dedfbbd5 100644 (file)
@@ -194,7 +194,7 @@ static int request_init(fr_packet_t **out, fr_pair_list_t *packet_vps, char cons
         *      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);
 
index 4f48d5d9dfd2acf8c54f23f651c5333ff4a6224f..d10db83f18fda493b01cebe3620435987918f558 100644 (file)
@@ -687,7 +687,7 @@ static int radclient_init(TALLOC_CTX *ctx, rc_file_pair_t *files)
                 *      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
index ee12c0a57a5906ccae7d8e702ef418147c64786b..a3f89af0782b2f37364ca71c1e1114858db51ae1 100644 (file)
@@ -668,7 +668,7 @@ static int radclient_init(TALLOC_CTX *ctx, rc_file_pair_t *files)
                 *      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
index ef6d679d148f2885c3e2ce84ea5e30797903e6ac..c36d919f3fc14948cb2ecfb5572fe76701bb023a 100644 (file)
@@ -289,7 +289,7 @@ static request_t *request_from_file(TALLOC_CTX *ctx, FILE *fp, fr_client_t *clie
        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.*
index 4dc2b7d7b70550d617c7a00f2286c5e2d9a7a514..5a66a58568a06cafc2c901b7d63e3d193bfb76b4 100644 (file)
@@ -136,7 +136,7 @@ static void pairs2inet(fr_ipaddr_t *ipaddr, uint16_t *port, fr_pair_list_t const
  * @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;
 
index 3ef57fdc37ea8872988e84d6d402bbea624d49c1..aa2b3d4b31c950bfb12492eabdea5b0d99b58149 100644 (file)
@@ -31,7 +31,7 @@ extern "C" {
 #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);
 
index 324a6b621fd489d2fab9bceebbcaf204560e8ccd..714962d09bfaa9026ded2101fef0c2f7dc817d1c 100644 (file)
@@ -136,7 +136,7 @@ static ssize_t mod_encode(void const *instance, request_t *request, uint8_t *buf
                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",
index b1b6863d4f6b2ff064dbde3bdb4546be6597a8fc..48659d2af3a8c26d2b24d82353867a5b263fedc2 100644 (file)
@@ -251,7 +251,7 @@ static ssize_t mod_encode(UNUSED void const *instance, request_t *request, uint8
        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
index 82c1e652972779c4ac4f1be96e42319c69282f31..0ee7f7e6adb3bf7f9bf0b012a4f0707bba5561d2 100644 (file)
@@ -245,7 +245,7 @@ static ssize_t mod_encode(UNUSED void const *instance, request_t *request, uint8
 
        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;
 }
index fe59d5fc1a01ba7d50636eb76dc73a8c789462d8..e985a6a94257f7cc394ac1a8fbf2270e3e3ca65b 100644 (file)
@@ -297,7 +297,7 @@ static ssize_t mod_encode(UNUSED void const *instance, request_t *request, uint8
        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".
@@ -374,7 +374,7 @@ static ssize_t mod_encode(UNUSED void const *instance, request_t *request, uint8
                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",
index ae17cda7797a64103e116ececbc4ec987307dbdb..63b20e42d0606196c09f766573def782e5b3af17 100644 (file)
@@ -270,7 +270,7 @@ static ssize_t mod_encode(UNUSED void const *instance, request_t *request, uint8
                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");