GNU Radio's BLUETOOTH Package
tun.h
Go to the documentation of this file.
1
// Taken from the gssm project (http://www.thre.at/gsm)
2
// Any license you like
3
4
#ifndef INCLUDED_TUN_H
5
#define INCLUDED_TUN_H
6
7
#include <stdio.h>
8
#include <stdlib.h>
9
#include <stdint.h>
10
#include <unistd.h>
11
#include <string.h>
12
#include <libgen.h>
13
#include <fcntl.h>
14
#include <sys/ioctl.h>
15
#include <sys/socket.h>
16
#include <linux/if_tun.h>
17
#include <linux/if.h>
18
#include <arpa/inet.h>
19
#include <linux/if_ether.h>
20
21
22
int
mktun
(
const
char
*,
unsigned
char
*);
23
int
write_interface
(
int
,
unsigned
char
*,
unsigned
int
, uint64_t, uint64_t,
unsigned
short
);
24
25
#endif
/* INCLUDED_TUN_H */
write_interface
int write_interface(int, unsigned char *, unsigned int, uint64_t, uint64_t, unsigned short)
mktun
int mktun(const char *, unsigned char *)
include
tun.h
Generated by
1.14.0