Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
af_decnet.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/socket.h>
#include <linux/in.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/string.h>
#include <linux/sockios.h>
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/inet.h>
#include <linux/route.h>
#include <linux/netfilter.h>
#include <linux/seq_file.h>
#include <net/sock.h>
#include <net/tcp_states.h>
#include <net/flow.h>
#include <asm/ioctls.h>
#include <linux/capability.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/init.h>
#include <linux/poll.h>
#include <net/net_namespace.h>
#include <net/neighbour.h>
#include <net/dst.h>
#include <net/fib_rules.h>
#include <net/dn.h>
#include <net/dn_nsp.h>
#include <net/dn_dev.h>
#include <net/dn_route.h>
#include <net/dn_fib.h>
#include <net/dn_neigh.h>

Go to the source code of this file.

Data Structures

struct  dn_sock
 

Macros

#define DN_SK_HASH_SHIFT   8
 
#define DN_SK_HASH_SIZE   (1 << DN_SK_HASH_SHIFT)
 
#define DN_SK_HASH_MASK   (DN_SK_HASH_SIZE - 1)
 

Functions

int dn_sockaddr2username (struct sockaddr_dn *sdn, unsigned char *buf, unsigned char type)
 
int dn_username2sockaddr (unsigned char *data, int len, struct sockaddr_dn *sdn, unsigned char *fmt)
 
struct sockdn_sklist_find_listener (struct sockaddr_dn *addr)
 
struct sockdn_find_by_skb (struct sk_buff *skb)
 
int dn_destroy_timer (struct sock *sk)
 
chardn_addr2asc (__u16 addr, char *buf)
 
unsigned int dn_mss_from_pmtu (struct net_device *dev, int mtu)
 
int dn_route_rcv (struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *)
 
void dn_register_sysctl (void)
 
void dn_unregister_sysctl (void)
 
 MODULE_DESCRIPTION ("The Linux DECnet Network Protocol")
 
 MODULE_AUTHOR ("Linux DECnet Project Team")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_NETPROTO (PF_DECnet)
 
 module_init (decnet_init)
 

Macro Definition Documentation

#define DN_SK_HASH_MASK   (DN_SK_HASH_SIZE - 1)

Definition at line 150 of file af_decnet.c.

#define DN_SK_HASH_SHIFT   8

Definition at line 148 of file af_decnet.c.

#define DN_SK_HASH_SIZE   (1 << DN_SK_HASH_SHIFT)

Definition at line 149 of file af_decnet.c.

Function Documentation

char* dn_addr2asc ( __u16  addr,
char buf 
)

Definition at line 665 of file af_decnet.c.

int dn_destroy_timer ( struct sock sk)

Definition at line 571 of file af_decnet.c.

struct sock* dn_find_by_skb ( struct sk_buff skb)
read

Definition at line 413 of file af_decnet.c.

unsigned int dn_mss_from_pmtu ( struct net_device dev,
int  mtu 
)

Definition at line 1847 of file af_decnet.c.

void dn_register_sysctl ( void  )

Definition at line 368 of file sysctl_net_decnet.c.

int dn_route_rcv ( struct sk_buff ,
struct net_device ,
struct packet_type ,
struct net_device  
)

Definition at line 629 of file dn_route.c.

struct sock* dn_sklist_find_listener ( struct sockaddr_dn addr)
read

Definition at line 374 of file af_decnet.c.

int dn_sockaddr2username ( struct sockaddr_dn sdn,
unsigned char buf,
unsigned char  type 
)

Definition at line 287 of file af_decnet.c.

void dn_unregister_sysctl ( void  )

Definition at line 365 of file sysctl_net_decnet.c.

int dn_username2sockaddr ( unsigned char data,
int  len,
struct sockaddr_dn sdn,
unsigned char fmt 
)

Definition at line 322 of file af_decnet.c.

MODULE_ALIAS_NETPROTO ( PF_DECnet  )
MODULE_AUTHOR ( "Linux DECnet Project Team"  )
MODULE_DESCRIPTION ( "The Linux DECnet Network Protocol )
module_init ( decnet_init  )
MODULE_LICENSE ( "GPL"  )