Massive update of argparse system

This is required for furhter maintance of kernel module. Aims to provide
common interface for both
This commit is contained in:
Vadim Vetrov
2024-12-08 16:06:50 +03:00
parent 9b5c8a729d
commit 457a7a7f04
13 changed files with 1582 additions and 852 deletions

View File

@@ -34,6 +34,9 @@
#include <linux/tcp.h> // IWYU pragma: export
#include <linux/version.h>
#define free kfree
#define malloc(size) kmalloc((size), GFP_KERNEL)
#define ip6_hdr ipv6hdr
/* from <netinet/ip.h> */
@@ -67,6 +70,11 @@
#include <netinet/udp.h> // IWYU pragma: export
#endif
#define SFREE(item) do { \
free((item)); \
(item) = NULL; \
} while (0)
#ifndef KERNEL_SPACE
#define max(a,b)__extension__\