tncattach/TAP.h

16 lines
329 B
C
Raw Normal View History

2020-05-26 17:59:56 +02:00
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
2020-05-26 21:37:21 +02:00
#include <net/if.h>
2020-05-26 17:59:56 +02:00
#include <linux/if_tun.h>
2020-05-26 21:37:21 +02:00
#include <sys/socket.h>
2020-05-26 17:59:56 +02:00
#include <arpa/inet.h>
2024-12-15 18:08:44 +02:00
#include <linux/ipv6.h>
2020-05-26 17:59:56 +02:00
#include "Constants.h"
int open_tap(void);
int close_tap(int tap_fd);