mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
Revert "nfqws: missing linux-specific header"
This reverts commit 8b26a028b7
.
This commit is contained in:
parent
8b26a028b7
commit
207cde9eb6
5
nfq/darkmagic.c
Executable file → Normal file
5
nfq/darkmagic.c
Executable file → Normal file
@ -8,9 +8,6 @@
|
||||
#include <sys/param.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef __linux__
|
||||
#include <linux/in.h>
|
||||
#endif
|
||||
|
||||
#include "darkmagic.h"
|
||||
#include "helpers.h"
|
||||
@ -158,6 +155,8 @@ static void fill_udphdr(struct udphdr *udp, uint16_t nsport, uint16_t ndport, ui
|
||||
|
||||
static void fill_iphdr(struct ip *ip, const struct in_addr *src, const struct in_addr *dst, uint16_t pktlen, uint8_t proto, uint8_t ttl)
|
||||
{
|
||||
ip->ip_tos = 0;
|
||||
ip->ip_sum = 0;
|
||||
ip->ip_off = 0;
|
||||
ip->ip_v = 4;
|
||||
ip->ip_hl = 5;
|
||||
|
Loading…
Reference in New Issue
Block a user