Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
l2tp.h File Reference
#include <linux/types.h>
#include <linux/socket.h>
#include <netinet/in.h>

Go to the source code of this file.

Data Structures

struct  sockaddr_l2tpip
 
struct  sockaddr_l2tpip6
 

Macros

#define IPPROTO_L2TP   115
 
#define __SOCK_SIZE__   16 /* sizeof(struct sockaddr) */
 
#define L2TP_CMD_MAX   (__L2TP_CMD_MAX - 1)
 
#define L2TP_ATTR_MAX   (__L2TP_ATTR_MAX - 1)
 
#define L2TP_ATTR_STATS_MAX   (__L2TP_ATTR_STATS_MAX - 1)
 
#define L2TP_GENL_NAME   "l2tp"
 
#define L2TP_GENL_VERSION   0x1
 

Enumerations

enum  {
  L2TP_CMD_NOOP, L2TP_CMD_TUNNEL_CREATE, L2TP_CMD_TUNNEL_DELETE, L2TP_CMD_TUNNEL_MODIFY,
  L2TP_CMD_TUNNEL_GET, L2TP_CMD_SESSION_CREATE, L2TP_CMD_SESSION_DELETE, L2TP_CMD_SESSION_MODIFY,
  L2TP_CMD_SESSION_GET, __L2TP_CMD_MAX
}
 
enum  {
  L2TP_ATTR_NONE, L2TP_ATTR_PW_TYPE, L2TP_ATTR_ENCAP_TYPE, L2TP_ATTR_OFFSET,
  L2TP_ATTR_DATA_SEQ, L2TP_ATTR_L2SPEC_TYPE, L2TP_ATTR_L2SPEC_LEN, L2TP_ATTR_PROTO_VERSION,
  L2TP_ATTR_IFNAME, L2TP_ATTR_CONN_ID, L2TP_ATTR_PEER_CONN_ID, L2TP_ATTR_SESSION_ID,
  L2TP_ATTR_PEER_SESSION_ID, L2TP_ATTR_UDP_CSUM, L2TP_ATTR_VLAN_ID, L2TP_ATTR_COOKIE,
  L2TP_ATTR_PEER_COOKIE, L2TP_ATTR_DEBUG, L2TP_ATTR_RECV_SEQ, L2TP_ATTR_SEND_SEQ,
  L2TP_ATTR_LNS_MODE, L2TP_ATTR_USING_IPSEC, L2TP_ATTR_RECV_TIMEOUT, L2TP_ATTR_FD,
  L2TP_ATTR_IP_SADDR, L2TP_ATTR_IP_DADDR, L2TP_ATTR_UDP_SPORT, L2TP_ATTR_UDP_DPORT,
  L2TP_ATTR_MTU, L2TP_ATTR_MRU, L2TP_ATTR_STATS, L2TP_ATTR_IP6_SADDR,
  L2TP_ATTR_IP6_DADDR, __L2TP_ATTR_MAX
}
 
enum  {
  L2TP_ATTR_STATS_NONE, L2TP_ATTR_TX_PACKETS, L2TP_ATTR_TX_BYTES, L2TP_ATTR_TX_ERRORS,
  L2TP_ATTR_RX_PACKETS, L2TP_ATTR_RX_BYTES, L2TP_ATTR_RX_SEQ_DISCARDS, L2TP_ATTR_RX_OOS_PACKETS,
  L2TP_ATTR_RX_ERRORS, __L2TP_ATTR_STATS_MAX
}
 
enum  l2tp_pwtype {
  L2TP_PWTYPE_NONE = 0x0000, L2TP_PWTYPE_ETH_VLAN = 0x0004, L2TP_PWTYPE_ETH = 0x0005, L2TP_PWTYPE_PPP = 0x0007,
  L2TP_PWTYPE_PPP_AC = 0x0008, L2TP_PWTYPE_IP = 0x000b, __L2TP_PWTYPE_MAX
}
 
enum  l2tp_l2spec_type { L2TP_L2SPECTYPE_NONE, L2TP_L2SPECTYPE_DEFAULT }
 
enum  l2tp_encap_type { L2TP_ENCAPTYPE_UDP, L2TP_ENCAPTYPE_IP }
 
enum  l2tp_seqmode { L2TP_SEQ_NONE = 0, L2TP_SEQ_IP = 1, L2TP_SEQ_ALL = 2 }
 

Macro Definition Documentation

#define __SOCK_SIZE__   16 /* sizeof(struct sockaddr) */

struct sockaddr_l2tpip - the sockaddr structure for L2TP-over-IP sockets : address family number AF_L2TPIP. : protocol specific address information : connection id of tunnel

Definition at line 24 of file l2tp.h.

#define IPPROTO_L2TP   115

Definition at line 16 of file l2tp.h.

#define L2TP_ATTR_MAX   (__L2TP_ATTR_MAX - 1)

Definition at line 130 of file l2tp.h.

#define L2TP_ATTR_STATS_MAX   (__L2TP_ATTR_STATS_MAX - 1)

Definition at line 146 of file l2tp.h.

#define L2TP_CMD_MAX   (__L2TP_CMD_MAX - 1)

Definition at line 88 of file l2tp.h.

#define L2TP_GENL_NAME   "l2tp"

Definition at line 177 of file l2tp.h.

#define L2TP_GENL_VERSION   0x1

Definition at line 178 of file l2tp.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
L2TP_CMD_NOOP 
L2TP_CMD_TUNNEL_CREATE 
L2TP_CMD_TUNNEL_DELETE 
L2TP_CMD_TUNNEL_MODIFY 
L2TP_CMD_TUNNEL_GET 
L2TP_CMD_SESSION_CREATE 
L2TP_CMD_SESSION_DELETE 
L2TP_CMD_SESSION_MODIFY 
L2TP_CMD_SESSION_GET 
__L2TP_CMD_MAX 

Definition at line 75 of file l2tp.h.

anonymous enum
Enumerator:
L2TP_ATTR_NONE 
L2TP_ATTR_PW_TYPE 
L2TP_ATTR_ENCAP_TYPE 
L2TP_ATTR_OFFSET 
L2TP_ATTR_DATA_SEQ 
L2TP_ATTR_L2SPEC_TYPE 
L2TP_ATTR_L2SPEC_LEN 
L2TP_ATTR_PROTO_VERSION 
L2TP_ATTR_IFNAME 
L2TP_ATTR_CONN_ID 
L2TP_ATTR_PEER_CONN_ID 
L2TP_ATTR_SESSION_ID 
L2TP_ATTR_PEER_SESSION_ID 
L2TP_ATTR_UDP_CSUM 
L2TP_ATTR_VLAN_ID 
L2TP_ATTR_COOKIE 
L2TP_ATTR_PEER_COOKIE 
L2TP_ATTR_DEBUG 
L2TP_ATTR_RECV_SEQ 
L2TP_ATTR_SEND_SEQ 
L2TP_ATTR_LNS_MODE 
L2TP_ATTR_USING_IPSEC 
L2TP_ATTR_RECV_TIMEOUT 
L2TP_ATTR_FD 
L2TP_ATTR_IP_SADDR 
L2TP_ATTR_IP_DADDR 
L2TP_ATTR_UDP_SPORT 
L2TP_ATTR_UDP_DPORT 
L2TP_ATTR_MTU 
L2TP_ATTR_MRU 
L2TP_ATTR_STATS 
L2TP_ATTR_IP6_SADDR 
L2TP_ATTR_IP6_DADDR 
__L2TP_ATTR_MAX 

Definition at line 93 of file l2tp.h.

anonymous enum
Enumerator:
L2TP_ATTR_STATS_NONE 
L2TP_ATTR_TX_PACKETS 
L2TP_ATTR_TX_BYTES 
L2TP_ATTR_TX_ERRORS 
L2TP_ATTR_RX_PACKETS 
L2TP_ATTR_RX_BYTES 
L2TP_ATTR_RX_SEQ_DISCARDS 
L2TP_ATTR_RX_OOS_PACKETS 
L2TP_ATTR_RX_ERRORS 
__L2TP_ATTR_STATS_MAX 

Definition at line 133 of file l2tp.h.

Enumerator:
L2TP_ENCAPTYPE_UDP 
L2TP_ENCAPTYPE_IP 

Definition at line 163 of file l2tp.h.

Enumerator:
L2TP_L2SPECTYPE_NONE 
L2TP_L2SPECTYPE_DEFAULT 

Definition at line 158 of file l2tp.h.

Enumerator:
L2TP_PWTYPE_NONE 
L2TP_PWTYPE_ETH_VLAN 
L2TP_PWTYPE_ETH 
L2TP_PWTYPE_PPP 
L2TP_PWTYPE_PPP_AC 
L2TP_PWTYPE_IP 
__L2TP_PWTYPE_MAX 

Definition at line 148 of file l2tp.h.

Enumerator:
L2TP_SEQ_NONE 
L2TP_SEQ_IP 
L2TP_SEQ_ALL 

Definition at line 168 of file l2tp.h.