Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
main.c File Reference
#include "main.h"
#include "sysfs.h"
#include "debugfs.h"
#include "routing.h"
#include "send.h"
#include "originator.h"
#include "soft-interface.h"
#include "icmp_socket.h"
#include "translation-table.h"
#include "hard-interface.h"
#include "gateway_client.h"
#include "bridge_loop_avoidance.h"
#include "vis.h"
#include "hash.h"
#include "bat_algo.h"

Go to the source code of this file.

Functions

int batadv_mesh_init (struct net_device *soft_iface)
 
void batadv_mesh_free (struct net_device *soft_iface)
 
void batadv_inc_module_count (void)
 
void batadv_dec_module_count (void)
 
int batadv_is_my_mac (const uint8_t *addr)
 
int batadv_batman_skb_recv (struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev)
 
int batadv_recv_handler_register (uint8_t packet_type, int(*recv_handler)(struct sk_buff *, struct batadv_hard_iface *))
 
void batadv_recv_handler_unregister (uint8_t packet_type)
 
int batadv_algo_register (struct batadv_algo_ops *bat_algo_ops)
 
int batadv_algo_select (struct batadv_priv *bat_priv, char *name)
 
int batadv_algo_seq_print_text (struct seq_file *seq, void *offset)
 
 module_param_cb (routing_algo,&batadv_param_ops_ra,&batadv_param_string_ra, 0644)
 
 module_init (batadv_init)
 
 module_exit (batadv_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR (BATADV_DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (BATADV_DRIVER_DESC)
 
 MODULE_SUPPORTED_DEVICE (BATADV_DRIVER_DEVICE)
 
 MODULE_VERSION (BATADV_SOURCE_VERSION)
 

Variables

struct list_head batadv_hardif_list
 
char batadv_routing_algo [20] = "BATMAN_IV"
 
unsigned char batadv_broadcast_addr [] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}
 
struct workqueue_structbatadv_event_workqueue
 

Function Documentation

int batadv_algo_register ( struct batadv_algo_ops bat_algo_ops)

Definition at line 324 of file main.c.

int batadv_algo_select ( struct batadv_priv bat_priv,
char name 
)

Definition at line 358 of file main.c.

int batadv_algo_seq_print_text ( struct seq_file seq,
void offset 
)

Definition at line 374 of file main.c.

int batadv_batman_skb_recv ( struct sk_buff skb,
struct net_device dev,
struct packet_type ptype,
struct net_device orig_dev 
)

Definition at line 200 of file main.c.

void batadv_dec_module_count ( void  )

Definition at line 168 of file main.c.

void batadv_inc_module_count ( void  )

Definition at line 163 of file main.c.

int batadv_is_my_mac ( const uint8_t addr)

Definition at line 173 of file main.c.

void batadv_mesh_free ( struct net_device soft_iface)

Definition at line 141 of file main.c.

int batadv_mesh_init ( struct net_device soft_iface)

Definition at line 90 of file main.c.

int batadv_recv_handler_register ( uint8_t  packet_type,
int(*)(struct sk_buff *, struct batadv_hard_iface *)  recv_handler 
)

Definition at line 292 of file main.c.

void batadv_recv_handler_unregister ( uint8_t  packet_type)

Definition at line 303 of file main.c.

MODULE_AUTHOR ( BATADV_DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( BATADV_DRIVER_DESC  )
module_exit ( batadv_exit  )
module_init ( batadv_init  )
MODULE_LICENSE ( "GPL"  )
module_param_cb ( routing_algo  ,
batadv_param_ops_ra,
batadv_param_string_ra,
0644   
)
MODULE_SUPPORTED_DEVICE ( BATADV_DRIVER_DEVICE  )
MODULE_VERSION ( BATADV_SOURCE_VERSION  )

Variable Documentation

unsigned char batadv_broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}

Definition at line 46 of file main.c.

struct workqueue_struct* batadv_event_workqueue

Definition at line 48 of file main.c.

struct list_head batadv_hardif_list

Definition at line 40 of file main.c.

char batadv_routing_algo[20] = "BATMAN_IV"

Definition at line 43 of file main.c.