From: Alan T. DeKok Date: Fri, 8 Mar 2024 19:15:10 +0000 (-0500) Subject: lean up structure and remove unused fields X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e991d88d3368c43283ea10b2efce5f6bfeec2dc;p=thirdparty%2Ffreeradius-server.git lean up structure and remove unused fields re-organize it for future needs and deletions --- diff --git a/src/lib/util/packet.h b/src/lib/util/packet.h index 072759f7944..99b4344a827 100644 --- a/src/lib/util/packet.h +++ b/src/lib/util/packet.h @@ -54,22 +54,25 @@ extern "C" { * data,data_len: Used between fr_radius_recv and fr_radius_decode. */ typedef struct { - fr_rb_node_t node; //!< Allows insertion into the list.c - ///< rbtree, may be removed in future. - fr_socket_t socket; //!< This packet was received on. + fr_time_t timestamp; //!< When we received the packet. int id; //!< Packet ID (used to link requests/responses). unsigned int code; //!< Packet code (type). - uint8_t vector[RADIUS_AUTH_VECTOR_LENGTH];//!< RADIUS authentication vector. - - uint32_t count; //!< Number of times we've seen this packet - fr_time_t timestamp; //!< When we received the packet. uint8_t *data; //!< Packet data (body). size_t data_len; //!< Length of packet data. - uint32_t rounds; //!< for State[0] + /* + * The vector should go away soon + */ + uint8_t vector[RADIUS_AUTH_VECTOR_LENGTH];//!< RADIUS authentication vector. + + /* + * The following fields are deprecated, and only used by old code. + */ + fr_rb_node_t node; //!< Allows insertion into the list.c + ///< rbtree, may be removed in future. size_t partial;