diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-31 12:48:54 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-31 12:50:14 +0100 |
| commit | fdb8b146b2dd9d21bdc966e180632ba489accd6f (patch) | |
| tree | 9ace38c1d1f116721e4d87d5d082e9fd5a5b58df /src/kernel/NetworkKit/IPC.h | |
| parent | adfd7dac5376c24e44f5f217f387784a8f614a74 (diff) | |
feat: pre-release improvements and harderning.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NetworkKit/IPC.h')
| -rw-r--r-- | src/kernel/NetworkKit/IPC.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/kernel/NetworkKit/IPC.h b/src/kernel/NetworkKit/IPC.h index 0d42de31..27f39079 100644 --- a/src/kernel/NetworkKit/IPC.h +++ b/src/kernel/NetworkKit/IPC.h @@ -2,8 +2,8 @@ // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel -#ifndef INC_IPC_H -#define INC_IPC_H +#ifndef NETWORKKIT_IPC_H +#define NETWORKKIT_IPC_H #include <NeKit/Config.h> #include <NeKit/KString.h> @@ -47,8 +47,6 @@ enum { kIPCMixedEndian = 2, }; -constexpr inline auto kIPCMsgSize = 6094U; - enum { kIPCLockInvalid = 0, kIPCLockFree = 1, @@ -65,8 +63,8 @@ typedef struct IPC_MSG final { UInt32 IpcCRC32; UInt32 IpcMsg; UInt32 IpcMsgSz; - UInt8 IpcData[kIPCMsgSize]; UInt32 IpcLock; + UInt8* IpcData; /// @brief Passes the message to target, could be anything, HTTP packet, JSON or whatever. static Bool Pass(IPC_MSG* self, IPC_MSG* target); } PACKED ALIGN(8) IPC_MSG; @@ -82,4 +80,4 @@ BOOL ipc_sanitize_packet(_Input IPC_MSG* pckt_in); BOOL ipc_construct_packet(_Output _Input IPC_MSG** pckt_in); } // namespace Kernel -#endif // INC_IPC_H +#endif // NETWORKKIT_IPC_H |
