Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
net_user.h File Reference

Go to the source code of this file.

Data Structures

struct  net_user_info
 

Macros

#define ETH_ADDR_LEN   (6)
 
#define ETH_HEADER_ETHERTAP   (16)
 
#define ETH_HEADER_OTHER   (26) /* 14 for ethernet + VLAN + MPLS for crazy people */
 
#define ETH_MAX_PACKET   (1500)
 
#define UML_NET_VERSION   (4)
 

Functions

void ether_user_init (void *data, void *dev)
 
void iter_addresses (void *d, void(*cb)(unsigned char *, unsigned char *, void *), void *arg)
 
voidget_output_buffer (int *len_out)
 
void free_output_buffer (void *buffer)
 
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_out, 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,...)
 
int dev_netmask (void *d, void *m)
 

Macro Definition Documentation

#define ETH_ADDR_LEN   (6)

Definition at line 9 of file net_user.h.

#define ETH_HEADER_ETHERTAP   (16)

Definition at line 10 of file net_user.h.

#define ETH_HEADER_OTHER   (26) /* 14 for ethernet + VLAN + MPLS for crazy people */

Definition at line 11 of file net_user.h.

#define ETH_MAX_PACKET   (1500)

Definition at line 12 of file net_user.h.

#define UML_NET_VERSION   (4)

Definition at line 14 of file net_user.h.

Function Documentation

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

Definition at line 245 of file net_user.c.

int dev_netmask ( void d,
void m 
)

Definition at line 868 of file net_kern.c.

void ether_user_init ( void data,
void dev 
)
void free_output_buffer ( void buffer)

Definition at line 896 of file net_kern.c.

void* get_output_buffer ( int len_out)

Definition at line 886 of file net_kern.c.

void iter_addresses ( void d,
void(*)(unsigned char *, unsigned char *, void *)  cb,
void arg 
)

Definition at line 849 of file net_kern.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_out,
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.