Add conntrack parse skeleton

This commit is contained in:
Vadim Vetrov
2025-01-06 17:49:07 +03:00
parent 8bf2ab9e9b
commit 84d47b8a3d
5 changed files with 340 additions and 28 deletions

View File

@@ -32,7 +32,10 @@
#include "linux/inet.h"
#endif
int process_packet(const uint8_t *raw_payload, size_t raw_payload_len) {
int process_packet(const struct packet_data *pd) {
const uint8_t *raw_payload = pd->payload;
uint32_t raw_payload_len = pd->payload_len;
if (raw_payload_len > MAX_PACKET_SIZE) {
return PKT_ACCEPT;
}