OpenVPN
Macros | Enumerations
ovpn_dco_freebsd.h File Reference
#include <sys/types.h>
#include <netinet/in.h>
Include dependency graph for ovpn_dco_freebsd.h:

Go to the source code of this file.

Macros

#define OVPN_MAX_REQUEST_SIZE   4096
 
#define OVPN_NEW_PEER   _IO('D', 1)
 
#define OVPN_DEL_PEER   _IO('D', 2)
 
#define OVPN_GET_STATS   _IO('D', 3)
 
#define OVPN_NEW_KEY   _IO('D', 4)
 
#define OVPN_SWAP_KEYS   _IO('D', 5)
 
#define OVPN_DEL_KEY   _IO('D', 6)
 
#define OVPN_SET_PEER   _IO('D', 7)
 
#define OVPN_START_VPN   _IO('D', 8)
 
#define OVPN_SEND_PKT   _IO('D', 9)
 
#define OVPN_POLL_PKT   _IO('D', 10)
 
#define OVPN_GET_PKT   _IO('D', 11)
 
#define OVPN_SET_IFMODE   _IO('D', 12)
 
#define OVPN_GET_PEER_STATS   _IO('D', 13)
 

Enumerations

enum  ovpn_notif_type { OVPN_NOTIF_DEL_PEER, OVPN_NOTIF_ROTATE_KEY }
 
enum  ovpn_del_reason { OVPN_DEL_REASON_REQUESTED = 0, OVPN_DEL_REASON_TIMEOUT = 1 }
 
enum  ovpn_key_slot {
  OVPN_KEY_SLOT_PRIMARY = 0, OVPN_KEY_SLOT_SECONDARY = 1, __OVPN_KEY_SLOT_FIRST, OVPN_KEY_SLOT_PRIMARY = __OVPN_KEY_SLOT_FIRST,
  OVPN_KEY_SLOT_SECONDARY, __OVPN_KEY_SLOT_AFTER_LAST
}
 
enum  ovpn_key_cipher { OVPN_CIPHER_ALG_NONE = 0, OVPN_CIPHER_ALG_AES_GCM = 1, OVPN_CIPHER_ALG_CHACHA20_POLY1305 = 2 }
 

Macro Definition Documentation

◆ OVPN_DEL_KEY

#define OVPN_DEL_KEY   _IO('D', 6)

Definition at line 63 of file ovpn_dco_freebsd.h.

◆ OVPN_DEL_PEER

#define OVPN_DEL_PEER   _IO('D', 2)

Definition at line 59 of file ovpn_dco_freebsd.h.

◆ OVPN_GET_PEER_STATS

#define OVPN_GET_PEER_STATS   _IO('D', 13)

Definition at line 70 of file ovpn_dco_freebsd.h.

◆ OVPN_GET_PKT

#define OVPN_GET_PKT   _IO('D', 11)

Definition at line 68 of file ovpn_dco_freebsd.h.

◆ OVPN_GET_STATS

#define OVPN_GET_STATS   _IO('D', 3)

Definition at line 60 of file ovpn_dco_freebsd.h.

◆ OVPN_MAX_REQUEST_SIZE

#define OVPN_MAX_REQUEST_SIZE   4096

Definition at line 35 of file ovpn_dco_freebsd.h.

◆ OVPN_NEW_KEY

#define OVPN_NEW_KEY   _IO('D', 4)

Definition at line 61 of file ovpn_dco_freebsd.h.

◆ OVPN_NEW_PEER

#define OVPN_NEW_PEER   _IO('D', 1)

Definition at line 58 of file ovpn_dco_freebsd.h.

◆ OVPN_POLL_PKT

#define OVPN_POLL_PKT   _IO('D', 10)

Definition at line 67 of file ovpn_dco_freebsd.h.

◆ OVPN_SEND_PKT

#define OVPN_SEND_PKT   _IO('D', 9)

Definition at line 66 of file ovpn_dco_freebsd.h.

◆ OVPN_SET_IFMODE

#define OVPN_SET_IFMODE   _IO('D', 12)

Definition at line 69 of file ovpn_dco_freebsd.h.

◆ OVPN_SET_PEER

#define OVPN_SET_PEER   _IO('D', 7)

Definition at line 64 of file ovpn_dco_freebsd.h.

◆ OVPN_START_VPN

#define OVPN_START_VPN   _IO('D', 8)

Definition at line 65 of file ovpn_dco_freebsd.h.

◆ OVPN_SWAP_KEYS

#define OVPN_SWAP_KEYS   _IO('D', 5)

Definition at line 62 of file ovpn_dco_freebsd.h.

Enumeration Type Documentation

◆ ovpn_del_reason

Enumerator
OVPN_DEL_REASON_REQUESTED 
OVPN_DEL_REASON_TIMEOUT 

Definition at line 42 of file ovpn_dco_freebsd.h.

◆ ovpn_key_cipher

Enumerator
OVPN_CIPHER_ALG_NONE 
OVPN_CIPHER_ALG_AES_GCM 
OVPN_CIPHER_ALG_CHACHA20_POLY1305 

Definition at line 52 of file ovpn_dco_freebsd.h.

◆ ovpn_key_slot

Enumerator
OVPN_KEY_SLOT_PRIMARY 
OVPN_KEY_SLOT_SECONDARY 
__OVPN_KEY_SLOT_FIRST 
OVPN_KEY_SLOT_PRIMARY 
OVPN_KEY_SLOT_SECONDARY 
__OVPN_KEY_SLOT_AFTER_LAST 

Definition at line 47 of file ovpn_dco_freebsd.h.

◆ ovpn_notif_type

Enumerator
OVPN_NOTIF_DEL_PEER 
OVPN_NOTIF_ROTATE_KEY 

Definition at line 37 of file ovpn_dco_freebsd.h.