Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dn_dev.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/timer.h>
#include <linux/string.h>
#include <linux/if_addr.h>
#include <linux/if_arp.h>
#include <linux/if_ether.h>
#include <linux/skbuff.h>
#include <linux/sysctl.h>
#include <linux/notifier.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <net/net_namespace.h>
#include <net/neighbour.h>
#include <net/dst.h>
#include <net/flow.h>
#include <net/fib_rules.h>
#include <net/netlink.h>
#include <net/dn.h>
#include <net/dn_dev.h>
#include <net/dn_route.h>
#include <net/dn_neigh.h>
#include <net/dn_fib.h>

Go to the source code of this file.

Macros

#define DN_IFREQ_SIZE   (sizeof(struct ifreq) - sizeof(struct sockaddr) + sizeof(struct sockaddr_dn))
 
#define DN_DEV_LIST_SIZE   ARRAY_SIZE(dn_dev_list)
 
#define DN_DEV_PARMS_OFFSET(x)   offsetof(struct dn_dev_parms, x)
 
#define DRDELAY   (5 * HZ)
 

Functions

int dn_dev_ioctl (unsigned int cmd, void __user *arg)
 
struct net_devicedn_dev_get_default (void)
 
int dn_dev_set_default (struct net_device *dev, int force)
 
int dn_dev_bind_default (__le16 *addr)
 
void dn_dev_up (struct net_device *dev)
 
void dn_dev_down (struct net_device *dev)
 
void dn_dev_init_pkt (struct sk_buff *skb)
 
void dn_dev_veri_pkt (struct sk_buff *skb)
 
void dn_dev_hello (struct sk_buff *skb)
 
void dn_dev_devices_off (void)
 
void dn_dev_devices_on (void)
 
int register_dnaddr_notifier (struct notifier_block *nb)
 
int unregister_dnaddr_notifier (struct notifier_block *nb)
 
 module_param_array (addr, int, NULL, 0444)
 
 MODULE_PARM_DESC (addr,"The DECnet address of this machine: area,node")
 
void __init dn_dev_init (void)
 
void __exit dn_dev_cleanup (void)
 

Variables

struct neigh_table dn_neigh_table
 
__le16 decnet_address = 0
 

Macro Definition Documentation

#define DN_DEV_LIST_SIZE   ARRAY_SIZE(dn_dev_list)

Definition at line 147 of file dn_dev.c.

#define DN_DEV_PARMS_OFFSET (   x)    offsetof(struct dn_dev_parms, x)

Definition at line 149 of file dn_dev.c.

#define DN_IFREQ_SIZE   (sizeof(struct ifreq) - sizeof(struct sockaddr) + sizeof(struct sockaddr_dn))

Definition at line 57 of file dn_dev.c.

#define DRDELAY   (5 * HZ)

Definition at line 862 of file dn_dev.c.

Function Documentation

int dn_dev_bind_default ( __le16 addr)

Definition at line 803 of file dn_dev.c.

void __exit dn_dev_cleanup ( void  )

Definition at line 1420 of file dn_dev.c.

void dn_dev_devices_off ( void  )

Definition at line 1236 of file dn_dev.c.

void dn_dev_devices_on ( void  )

Definition at line 1247 of file dn_dev.c.

void dn_dev_down ( struct net_device dev)

Definition at line 1208 of file dn_dev.c.

struct net_device* dn_dev_get_default ( void  )
read

Definition at line 493 of file dn_dev.c.

void dn_dev_hello ( struct sk_buff skb)

Definition at line 1232 of file dn_dev.c.

void __init dn_dev_init ( void  )

Definition at line 1389 of file dn_dev.c.

void dn_dev_init_pkt ( struct sk_buff skb)

Definition at line 1224 of file dn_dev.c.

int dn_dev_ioctl ( unsigned int  cmd,
void __user arg 
)

Definition at line 411 of file dn_dev.c.

int dn_dev_set_default ( struct net_device dev,
int  force 
)

Definition at line 510 of file dn_dev.c.

void dn_dev_up ( struct net_device dev)

Definition at line 1126 of file dn_dev.c.

void dn_dev_veri_pkt ( struct sk_buff skb)

Definition at line 1228 of file dn_dev.c.

module_param_array ( addr  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( addr  ,
"The DECnet address of this machine:  area,
node  
)
int register_dnaddr_notifier ( struct notifier_block nb)

Definition at line 1259 of file dn_dev.c.

int unregister_dnaddr_notifier ( struct notifier_block nb)

Definition at line 1264 of file dn_dev.c.

Variable Documentation

__le16 decnet_address = 0

Definition at line 69 of file dn_dev.c.

struct neigh_table dn_neigh_table

Definition at line 96 of file dn_neigh.c.