mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-30 19:28:08 +03:00
Add skeleton for module and userspace iptables management
Special thanks to https://github.com/drivenets/iptables_extensions repository with detailed explanations of iptables userspace interaction with the kernel module.
This commit is contained in:
5
mangle.h
5
mangle.h
@@ -16,11 +16,8 @@ typedef __u32 uint32_t;
|
||||
#include <linux/tcp.h>
|
||||
|
||||
#include <asm/byteorder.h>
|
||||
// #define ntohs(x) __constant_ntohs(x)
|
||||
// #define ntohl(x) __constant_ntohl(x)
|
||||
// #define htons(x) __constant_htons(x)
|
||||
// #define htonl(x) __constant_htonl(x)
|
||||
|
||||
/* from <netinet/ip.h> */
|
||||
#define IP_RF 0x8000 /* reserved fragment flag */
|
||||
#define IP_DF 0x4000 /* dont fragment flag */
|
||||
#define IP_MF 0x2000 /* more fragments flag */
|
||||
|
||||
Reference in New Issue
Block a user