]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
there's no need for the injected packet to be writable
authorAlan T. DeKok <aland@freeradius.org>
Fri, 10 Mar 2023 14:30:04 +0000 (09:30 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 10 Mar 2023 22:16:55 +0000 (17:16 -0500)
src/lib/io/base.h
src/lib/io/master.c

index 38ed2a60266e8c80a7c7bed6798b8504917597b5..20f0b5814ff8322cc37cfc90484e95752aed3c49 100644 (file)
@@ -248,7 +248,7 @@ typedef ssize_t (*fr_io_data_write_t)(fr_listen_t *li, void *packet_ctx, fr_time
  *     - <0 on error
  *     - 0 on success
  */
-typedef int (*fr_io_data_inject_t)(fr_listen_t *li,uint8_t *buffer, size_t buffer_len, fr_time_t recv_time);
+typedef int (*fr_io_data_inject_t)(fr_listen_t *li,uint8_t const *buffer, size_t buffer_len, fr_time_t recv_time);
 
 /** Tell the IO handler that a VNODE has changed
  *
index bcef29c52935cd3d0e4e7b7ba3400bd51164fd25..865f2d126a0c621e103bce0668c07fd3d12e909e 100644 (file)
@@ -1755,7 +1755,7 @@ done:
  *
  *  Always called in the context of the network.
  */
-static int mod_inject(fr_listen_t *li, uint8_t *buffer, size_t buffer_len, fr_time_t recv_time)
+static int mod_inject(fr_listen_t *li, uint8_t const *buffer, size_t buffer_len, fr_time_t recv_time)
 {
        fr_io_instance_t const *inst;
        int             priority;