Go to the source code of this file.
|
#define | L2TP_TUNNEL_MAGIC 0x42114DDA |
|
#define | L2TP_SESSION_MAGIC 0x0C04EB7D |
|
#define | L2TP_HASH_BITS 4 |
|
#define | L2TP_HASH_SIZE (1 << L2TP_HASH_BITS) |
|
#define | L2TP_HASH_BITS_2 8 |
|
#define | L2TP_HASH_SIZE_2 (1 << L2TP_HASH_BITS_2) |
|
#define | l2tp_session_inc_refcount(s) l2tp_session_inc_refcount_1(s) |
|
#define | l2tp_session_dec_refcount(s) l2tp_session_dec_refcount_1(s) |
|
#define | l2tp_printk(ptr, type, func, fmt,...) |
|
#define | l2tp_warn(ptr, type, fmt,...) l2tp_printk(ptr, type, pr_warn, fmt, ##__VA_ARGS__) |
|
#define | l2tp_info(ptr, type, fmt,...) l2tp_printk(ptr, type, pr_info, fmt, ##__VA_ARGS__) |
|
#define | l2tp_dbg(ptr, type, fmt,...) l2tp_printk(ptr, type, pr_debug, fmt, ##__VA_ARGS__) |
|
|
struct l2tp_session * | l2tp_session_find (struct net *net, struct l2tp_tunnel *tunnel, u32 session_id) |
|
struct l2tp_session * | l2tp_session_find_nth (struct l2tp_tunnel *tunnel, int nth) |
|
struct l2tp_session * | l2tp_session_find_by_ifname (struct net *net, char *ifname) |
|
struct l2tp_tunnel * | l2tp_tunnel_find (struct net *net, u32 tunnel_id) |
|
struct l2tp_tunnel * | l2tp_tunnel_find_nth (struct net *net, int nth) |
|
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) |
|
int | l2tp_tunnel_delete (struct l2tp_tunnel *tunnel) |
|
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) |
|
int | l2tp_session_delete (struct l2tp_session *session) |
|
void | l2tp_session_free (struct l2tp_session *session) |
|
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)) |
|
int | l2tp_udp_encap_recv (struct sock *sk, struct sk_buff *skb) |
|
int | l2tp_xmit_skb (struct l2tp_session *session, struct sk_buff *skb, int hdr_len) |
|
int | l2tp_nl_register_ops (enum l2tp_pwtype pw_type, const struct l2tp_nl_cmd_ops *ops) |
|
void | l2tp_nl_unregister_ops (enum l2tp_pwtype pw_type) |
|
#define L2TP_HASH_BITS_2 8 |
Value:do { \
func(
fmt, ##__VA_ARGS__); \
} while (0)
Definition at line 284 of file l2tp_core.h.
#define l2tp_session_dec_refcount |
( |
|
s | ) |
l2tp_session_dec_refcount_1(s) |
#define l2tp_session_inc_refcount |
( |
|
s | ) |
l2tp_session_inc_refcount_1(s) |
#define L2TP_SESSION_MAGIC 0x0C04EB7D |
#define L2TP_TUNNEL_MAGIC 0x42114DDA |
- Enumerator:
L2TP_MSG_DEBUG |
|
L2TP_MSG_CONTROL |
|
L2TP_MSG_SEQ |
|
L2TP_MSG_DATA |
|
Definition at line 27 of file l2tp_core.h.