This commit is contained in:
jacob 2025-02-12 12:30:45 -06:00
parent f1985c5815
commit 6d58619fbe
2 changed files with 10 additions and 1 deletions

View File

@ -8,6 +8,16 @@
#include "buddy.h" #include "buddy.h"
#include "atomic.h" #include "atomic.h"
/* TODO:
*
* Rate limiting.
*
* Resequence buffer to order incoming sequenced packets.
*
* Rolling window for message reassembly.
* This would remove the need for random access message buffers.
*/
#define PACKET_MAGIC 0xd9e3b8b6 #define PACKET_MAGIC 0xd9e3b8b6
#define PACKET_MSG_CHUNK_MAX_LEN 1024 #define PACKET_MSG_CHUNK_MAX_LEN 1024
#define PACKET_DATA_MAX_LEN 1280 /* Give enough space for msg chunk + header */ #define PACKET_DATA_MAX_LEN 1280 /* Give enough space for msg chunk + header */

View File

@ -1514,7 +1514,6 @@ INTERNAL void user_update(void)
} }
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */