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

Go to the source code of this file.

Macros

#define BATADV_GW_MODE_OFF_NAME   "off"
 
#define BATADV_GW_MODE_CLIENT_NAME   "client"
 
#define BATADV_GW_MODE_SERVER_NAME   "server"
 

Enumerations

enum  batadv_gw_modes { BATADV_GW_MODE_OFF, BATADV_GW_MODE_CLIENT, BATADV_GW_MODE_SERVER }
 

Functions

void batadv_gw_bandwidth_to_kbit (uint8_t gw_class, int *down, int *up)
 
ssize_t batadv_gw_bandwidth_set (struct net_device *net_dev, char *buff, size_t count)
 

Macro Definition Documentation

#define BATADV_GW_MODE_CLIENT_NAME   "client"

Definition at line 30 of file gateway_common.h.

#define BATADV_GW_MODE_OFF_NAME   "off"

Definition at line 29 of file gateway_common.h.

#define BATADV_GW_MODE_SERVER_NAME   "server"

Definition at line 31 of file gateway_common.h.

Enumeration Type Documentation

Enumerator:
BATADV_GW_MODE_OFF 
BATADV_GW_MODE_CLIENT 
BATADV_GW_MODE_SERVER 

Definition at line 23 of file gateway_common.h.

Function Documentation

ssize_t batadv_gw_bandwidth_set ( struct net_device net_dev,
char buff,
size_t  count 
)

Definition at line 137 of file gateway_common.c.

void batadv_gw_bandwidth_to_kbit ( uint8_t  gw_class,
int down,
int up 
)

Definition at line 60 of file gateway_common.c.