#include <linux/module.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/rculist.h>
#include <linux/uaccess.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/kthread.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/jiffies.h>
#include <linux/netdevice.h>
#include <linux/net.h>
#include <linux/inetdevice.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/udp.h>
#include <linux/l2tp.h>
#include <linux/hash.h>
#include <linux/sort.h>
#include <linux/file.h>
#include <linux/nsproxy.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#include <net/dst.h>
#include <net/ip.h>
#include <net/udp.h>
#include <net/inet_common.h>
#include <net/xfrm.h>
#include <net/protocol.h>
#include <net/inet6_connection_sock.h>
#include <net/inet_ecn.h>
#include <net/ip6_route.h>
#include <net/ip6_checksum.h>
#include <asm/byteorder.h>
#include <linux/atomic.h>
#include "l2tp_core.h"
Go to the source code of this file.
|
struct l2tp_session * | l2tp_session_find (struct net *net, struct l2tp_tunnel *tunnel, u32 session_id) |
|
| EXPORT_SYMBOL_GPL (l2tp_session_find) |
|
struct l2tp_session * | l2tp_session_find_nth (struct l2tp_tunnel *tunnel, int nth) |
|
| EXPORT_SYMBOL_GPL (l2tp_session_find_nth) |
|
struct l2tp_session * | l2tp_session_find_by_ifname (struct net *net, char *ifname) |
|
| EXPORT_SYMBOL_GPL (l2tp_session_find_by_ifname) |
|
struct l2tp_tunnel * | l2tp_tunnel_find (struct net *net, u32 tunnel_id) |
|
| EXPORT_SYMBOL_GPL (l2tp_tunnel_find) |
|
struct l2tp_tunnel * | l2tp_tunnel_find_nth (struct net *net, int nth) |
|
| EXPORT_SYMBOL_GPL (l2tp_tunnel_find_nth) |
|
void | l2tp_recv_common (struct l2tp_session *session, struct sk_buff *skb, unsigned char *ptr, unsigned char *optr, u16 hdrflags, int length, int(*payload_hook)(struct sk_buff *skb)) |
|
| EXPORT_SYMBOL (l2tp_recv_common) |
|
int | l2tp_udp_encap_recv (struct sock *sk, struct sk_buff *skb) |
|
| EXPORT_SYMBOL_GPL (l2tp_udp_encap_recv) |
|
int | l2tp_xmit_skb (struct l2tp_session *session, struct sk_buff *skb, int hdr_len) |
|
| EXPORT_SYMBOL_GPL (l2tp_xmit_skb) |
|
int | l2tp_tunnel_create (struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp) |
|
| EXPORT_SYMBOL_GPL (l2tp_tunnel_create) |
|
int | l2tp_tunnel_delete (struct l2tp_tunnel *tunnel) |
|
| EXPORT_SYMBOL_GPL (l2tp_tunnel_delete) |
|
void | l2tp_session_free (struct l2tp_session *session) |
|
| EXPORT_SYMBOL_GPL (l2tp_session_free) |
|
int | l2tp_session_delete (struct l2tp_session *session) |
|
| EXPORT_SYMBOL_GPL (l2tp_session_delete) |
|
struct l2tp_session * | l2tp_session_create (int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) |
|
| EXPORT_SYMBOL_GPL (l2tp_session_create) |
|
| module_init (l2tp_init) |
|
| module_exit (l2tp_exit) |
|
| MODULE_AUTHOR ("James Chapman <[email protected]>") |
|
| MODULE_DESCRIPTION ("L2TP core") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_VERSION (L2TP_DRV_VERSION) |
|
#define L2TP_DEFAULT_DEBUG_FLAGS 0 |
#define L2TP_DRV_VERSION "V2.0" |
#define L2TP_HDR_SIZE_NOSEQ 6 |
#define L2TP_HDR_SIZE_SEQ 10 |
#define L2TP_HDR_VER_2 0x0002 |
#define L2TP_HDR_VER_3 0x0003 |
#define L2TP_HDR_VER_MASK 0x000F |
#define L2TP_HDRFLAG_L 0x4000 |
#define L2TP_HDRFLAG_O 0x0200 |
#define L2TP_HDRFLAG_P 0x0100 |
#define L2TP_HDRFLAG_S 0x0800 |
#define L2TP_HDRFLAG_T 0x8000 |
#define L2TP_SL_SEQ_MASK 0x00ffffff |
#define L2TP_SLFLAG_S 0x40000000 |
#define l2tp_tunnel_dec_refcount |
( |
|
t | ) |
l2tp_tunnel_dec_refcount_1(t) |
#define l2tp_tunnel_inc_refcount |
( |
|
t | ) |
l2tp_tunnel_inc_refcount_1(t) |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
MODULE_DESCRIPTION |
( |
"L2TP core" |
| ) |
|
module_exit |
( |
l2tp_exit |
| ) |
|
module_init |
( |
l2tp_init |
| ) |
|