mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-14 10:48:32 +05:00
nfqws: missing linux-specific header
This commit is contained in:
parent
276738fb48
commit
8b26a028b7
5
nfq/darkmagic.c
Normal file → Executable file
5
nfq/darkmagic.c
Normal file → Executable file
@ -8,6 +8,9 @@
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#ifdef __linux__
|
||||||
|
#include <linux/in.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "darkmagic.h"
|
#include "darkmagic.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
@ -155,8 +158,6 @@ 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)
|
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_off = 0;
|
||||||
ip->ip_v = 4;
|
ip->ip_v = 4;
|
||||||
ip->ip_hl = 5;
|
ip->ip_hl = 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user