netatalk  4.4.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
tunnel_linux.c File Reference
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/ioctl.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <linux/if.h>
#include <linux/if_tun.h>
#include <linux/route.h>
#include <errno.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include "common.h"
#include "util.h"
#include "tunnel.h"

Data Structures

struct  tunnel

Functions

static void set_sin (struct sockaddr *s, uint32_t ip)
static int tunnel_ifconfig (void)
static int tunnel_create (char *dev, int flags)
int tunnel_open (uint32_t net, uint32_t mask, outputfunc_t o)
void tunnel_close (void)
void tunnel_input (void)
void tunnel_output (char *buffer, int len)

Variables

static struct tunnel gTunnel
static outputfunc_t gOutput

Function Documentation

◆ set_sin()

void set_sin ( struct sockaddr * s,
uint32_t ip )
static

◆ tunnel_close()

void tunnel_close ( void )

◆ tunnel_create()

int tunnel_create ( char * dev,
int flags )
static

◆ tunnel_ifconfig()

int tunnel_ifconfig ( void )
static

◆ tunnel_input()

void tunnel_input ( void )

◆ tunnel_open()

int tunnel_open ( uint32_t net,
uint32_t mask,
outputfunc_t o )

◆ tunnel_output()

void tunnel_output ( char * buffer,
int len )

Variable Documentation

◆ gOutput

outputfunc_t gOutput
static

◆ gTunnel

struct tunnel gTunnel
static