Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gw.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/rcupdate.h>
#include <linux/rculist.h>
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/skbuff.h>
#include <linux/can.h>
#include <linux/can/core.h>
#include <linux/can/gw.h>
#include <net/rtnetlink.h>
#include <net/net_namespace.h>
#include <net/sock.h>

Go to the source code of this file.

Data Structures

struct  cf_mod
 
struct  can_can_gw
 
struct  cgw_job
 

Macros

#define CAN_GW_VERSION   "20101209"
 
#define MODFUNC(func, op)
 

Functions

 MODULE_DESCRIPTION ("PF_CAN netlink gateway")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_AUTHOR ("Oliver Hartkopp <[email protected]>")
 
 MODULE_ALIAS ("can-gw")
 
 MODFUNC (mod_and_data,*(u64 *) cf->data &=*(u64 *) mod->modframe.and.data)
 
 module_init (cgw_module_init)
 
 module_exit (cgw_module_exit)
 

Macro Definition Documentation

#define CAN_GW_VERSION   "20101209"

Definition at line 60 of file gw.c.

#define MODFUNC (   func,
  op 
)
Value:
static void func(struct can_frame *cf, \
struct cf_mod *mod) { op ; }

Definition at line 140 of file gw.c.

Function Documentation

MODFUNC ( mod_and_data  ,
*(u64 *) cf->data = *(u64 *)mod->modframe.and.data 
)

Definition at line 145 of file gw.c.

MODULE_ALIAS ( "can-gw"  )
MODULE_AUTHOR ( "Oliver Hartkopp <[email protected]>"  )
MODULE_DESCRIPTION ( "PF_CAN netlink gateway )
module_exit ( cgw_module_exit  )
module_init ( cgw_module_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )