Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
net_user.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdarg.h>
#include <errno.h>
#include <stddef.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <net_user.h>
#include <os.h>
#include <um_malloc.h>

Go to the source code of this file.

Data Structures

struct  change_pre_exec_data
 

Functions

int tap_open_common (void *dev, char *gate_addr)
 
void tap_check_ips (char *gate_addr, unsigned char *eth_addr)
 
void read_output (int fd, char *output, int len)
 
int net_read (int fd, void *buf, int len)
 
int net_recvfrom (int fd, void *buf, int len)
 
int net_write (int fd, void *buf, int len)
 
int net_send (int fd, void *buf, int len)
 
int net_sendto (int fd, void *buf, int len, void *to, int sock_len)
 
void open_addr (unsigned char *addr, unsigned char *netmask, void *arg)
 
void close_addr (unsigned char *addr, unsigned char *netmask, void *arg)
 
charsplit_if_spec (char *str,...)
 

Function Documentation

void close_addr ( unsigned char addr,
unsigned char netmask,
void arg 
)

Definition at line 245 of file net_user.c.

int net_read ( int  fd,
void buf,
int  len 
)

Definition at line 95 of file net_user.c.

int net_recvfrom ( int  fd,
void buf,
int  len 
)

Definition at line 108 of file net_user.c.

int net_send ( int  fd,
void buf,
int  len 
)

Definition at line 136 of file net_user.c.

int net_sendto ( int  fd,
void buf,
int  len,
void to,
int  sock_len 
)

Definition at line 151 of file net_user.c.

int net_write ( int  fd,
void buf,
int  len 
)

Definition at line 123 of file net_user.c.

void open_addr ( unsigned char addr,
unsigned char netmask,
void arg 
)

Definition at line 240 of file net_user.c.

void read_output ( int  fd,
char output,
int  len 
)

Definition at line 50 of file net_user.c.

char* split_if_spec ( char str,
  ... 
)

Definition at line 250 of file net_user.c.

void tap_check_ips ( char gate_addr,
unsigned char eth_addr 
)

Definition at line 33 of file net_user.c.

int tap_open_common ( void dev,
char gate_addr 
)

Definition at line 18 of file net_user.c.