FlowMon IPv6 Tunnel Monitoring Plugin
FlowMon IPv6 Tunnel Monitoring Plugin
 All Data Structures Files Functions Variables Macros Pages
input-ip6tun.h File Reference
#include <netinet/if_ether.h>

Go to the source code of this file.

Macros

#define DBG(format,...)   ;
#define EXIT_TEREDO_TRAILER   66
#define IP6TUN_RECORD_INVALID   0x00000000
#define IP6TUN_RECORD_L3_PROTO   0x00000001
#define IP6TUN_RECORD_IPV6   0x00000002
#define IP6TUN_RECORD_IPV4   0x00000004
#define IP6TUN_RECORD_L4_PROTO   0x00000008
#define IP6TUN_RECORD_PORTS   0x00000010
#define IP6TUN_RECORD_FLAGS   0x00000020
#define IP6TUN_RECORD_ICMP   0x00000040
#define IP6TUN_RECORD_TMECH   0x00000080
#define IP6TUN_RECORD_TEREDO_HDR   0x00000100
#define IP6TUN_RECORD_TEREDO_TRL   0x00000200
#define IP6TUN_RECORD_GEOIP_REG   0x00000400
#define IP6TUN_RECORD_GEOIP_IP6TUN   0x00000800
#define IP6TUN_RECORD_TTL_HOP   0x00001000
#define IP6TUN_RECORD_HOP   0x00002000
#define IP6TUN_TMECH_NONE   0x00
#define IP6TUN_TMECH_TEREDO   0x01
#define IP6TUN_TMECH_ISATAP   0x02
#define IP6TUN_TMECH_6TO4   0x04
#define IP6TUN_TMECH_AYIYA   0x08
#define IP6TUN_TMECH_OTHER41   0x10
#define IP6TUN_TMECH_6OVER4   0x20
#define TEREDO_TRL_NONCE   0x01
#define TEREDO_TRL_AADDR   0x02
#define TEREDO_TRL_NDISC   0x04
#define TEREDO_TRL_RPORT   0x08
#define TEREDO_HDR_ORIG   0x01
#define TEREDO_HDR_AUTH   0x02
#define PCAP_SIZE   1500
#define IPPROTO_41   41
#define ETH_P_8021Q   0x8100
#define ETH_P_ISMP   0x81FD
#define ETH_P_MPLS_UC   0x8847
#define ETH_P_MPLS_MC   0x8848
#define ETH_P_LLDP   0x88CC
#define _ETH_P_8021AD   0x88A8
#define _ETH_P_8021QINQ   0x9100
#define _ETH_P_8021QINQ_DOUBLE   0x9200
#define _ETH_P_8021QINQ_TRIPPLE   0x9300
#define VLAN_HLEN   4
#define VLAN_ID_MASK   0xFF0F
#define MPLS_HLEN   4
#define MPLS_LABEL_SHIFT   12
#define MPLS_STACK_MASK   0xFF7F
#define AYIYA_PORT   5072
#define AYIYA_BASE_HLEN   8
#define AYIYA_TIME_TOL   120
#define TEREDO_AUTH_BASIC_HLEN   13
#define TEREDO_TRAILER_BASIC_LEN   2
#define TEREDO_ORIG_HLEN   8
#define TEREDO_ORIG_PRE   0x0000
#define TEREDO_ORIG_PRE_NO   0x0000
#define TEREDO_AUTH_PRE   0x0001
#define TEREDO_AUTH_PRE_NO   0x0100
#define TEREDO_PREFIX   0x2001
#define TEREDO_PREFIX_NO   0x0120
#define ISATAP_MARK   0x5EFE
#define ISATAP_MARK_NO   0xFE5E
#define _6TO4_RELAY   0xC0586301
#define _6TO4_RELAY_NO   0x58C00163
#define _6TO4_PREFIX   0x2002
#define _6TO4_PREFIX_NO   0x0220
#define _6OVER4_PREFIX   0xFE80
#define _6OVER4_PREFIX_NO   0x80FE
#define TCP_SPORT_OFFSET   0
#define TCP_DPORT_OFFSET   2
#define TCP_FLAGS_OFFSET   13
#define TCP_DATA_OFFSET_OFFSET   12
#define TCP_DATA_OFFSET_SHIFT   4
#define IP_HLEN_MASK   0x0F
#define IP_TTL_OFFSET   0x08
#define IPV6_HLEN   40
#define IPV6_HOP_OFFSET   0x07
#define IPV6_LL_MASK   0xFE80
#define IPV6_LL_MASK_NO   0x80FE
#define UDP_HLEN   8
#define UDP_DNS_PORT   53
#define GET_FAILED   1
#define PARSE_FAILED   0
#define PARSE_SUCCESS   1
#define INIT_FAILED   0
#define INIT_SUCCESS   1
#define VALIDITE_FAILED   0
#define VALIDITE_SUCCESS   1
#define NSEC_IN_SEC   1000000000
#define NSEC_IN_USEC   1000
#define getidlen   idlen_idtype >> 4
#define getidtype   idlen_idtype & 0xF0
#define getsiglen   siglen_hshmeth >> 4
#define gethshmeth   siglen_hshmeth & 0xF0
#define getautmeth   autmeth_opcode >> 4
#define getopcode   autmeth_opcode & 0xF0

Functions

struct __attribute__ ((packed)) ayiya_hdr
 Structure of ayiya header.

Macro Definition Documentation

#define DBG (   format,
  ... 
)    ;

Definition at line 45 of file input-ip6tun.h.

#define EXIT_TEREDO_TRAILER   66

Definition at line 56 of file input-ip6tun.h.

#define IP6TUN_RECORD_INVALID   0x00000000

Definition at line 59 of file input-ip6tun.h.

#define IP6TUN_RECORD_L3_PROTO   0x00000001

Definition at line 62 of file input-ip6tun.h.

#define IP6TUN_RECORD_IPV6   0x00000002

Definition at line 63 of file input-ip6tun.h.

#define IP6TUN_RECORD_IPV4   0x00000004

Definition at line 64 of file input-ip6tun.h.

#define IP6TUN_RECORD_L4_PROTO   0x00000008

Definition at line 65 of file input-ip6tun.h.

#define IP6TUN_RECORD_PORTS   0x00000010

Definition at line 66 of file input-ip6tun.h.

#define IP6TUN_RECORD_FLAGS   0x00000020

Definition at line 67 of file input-ip6tun.h.

#define IP6TUN_RECORD_ICMP   0x00000040

Definition at line 68 of file input-ip6tun.h.

#define IP6TUN_RECORD_TMECH   0x00000080

Definition at line 69 of file input-ip6tun.h.

#define IP6TUN_RECORD_TEREDO_HDR   0x00000100

Definition at line 70 of file input-ip6tun.h.

#define IP6TUN_RECORD_TEREDO_TRL   0x00000200

Definition at line 71 of file input-ip6tun.h.

#define IP6TUN_RECORD_GEOIP_REG   0x00000400

Definition at line 72 of file input-ip6tun.h.

#define IP6TUN_RECORD_GEOIP_IP6TUN   0x00000800

Definition at line 73 of file input-ip6tun.h.

#define IP6TUN_RECORD_TTL_HOP   0x00001000

Definition at line 74 of file input-ip6tun.h.

#define IP6TUN_RECORD_HOP   0x00002000

Definition at line 75 of file input-ip6tun.h.

#define IP6TUN_TMECH_NONE   0x00

Definition at line 77 of file input-ip6tun.h.

#define IP6TUN_TMECH_TEREDO   0x01

Definition at line 78 of file input-ip6tun.h.

#define IP6TUN_TMECH_ISATAP   0x02

Definition at line 79 of file input-ip6tun.h.

#define IP6TUN_TMECH_6TO4   0x04

Definition at line 80 of file input-ip6tun.h.

#define IP6TUN_TMECH_AYIYA   0x08

Definition at line 81 of file input-ip6tun.h.

#define IP6TUN_TMECH_OTHER41   0x10

Definition at line 82 of file input-ip6tun.h.

#define IP6TUN_TMECH_6OVER4   0x20

Definition at line 83 of file input-ip6tun.h.

#define TEREDO_TRL_NONCE   0x01

Definition at line 85 of file input-ip6tun.h.

#define TEREDO_TRL_AADDR   0x02

Definition at line 86 of file input-ip6tun.h.

#define TEREDO_TRL_NDISC   0x04

Definition at line 87 of file input-ip6tun.h.

#define TEREDO_TRL_RPORT   0x08

Definition at line 88 of file input-ip6tun.h.

#define TEREDO_HDR_ORIG   0x01

Definition at line 90 of file input-ip6tun.h.

#define TEREDO_HDR_AUTH   0x02

Definition at line 91 of file input-ip6tun.h.

#define PCAP_SIZE   1500

Definition at line 93 of file input-ip6tun.h.

#define IPPROTO_41   41

Definition at line 95 of file input-ip6tun.h.

#define ETH_P_8021Q   0x8100

Definition at line 98 of file input-ip6tun.h.

#define ETH_P_ISMP   0x81FD

Definition at line 101 of file input-ip6tun.h.

#define ETH_P_MPLS_UC   0x8847

Definition at line 104 of file input-ip6tun.h.

#define ETH_P_MPLS_MC   0x8848

Definition at line 108 of file input-ip6tun.h.

#define ETH_P_LLDP   0x88CC

Definition at line 111 of file input-ip6tun.h.

#define _ETH_P_8021AD   0x88A8

Definition at line 113 of file input-ip6tun.h.

#define _ETH_P_8021QINQ   0x9100

Definition at line 114 of file input-ip6tun.h.

#define _ETH_P_8021QINQ_DOUBLE   0x9200

Definition at line 115 of file input-ip6tun.h.

#define _ETH_P_8021QINQ_TRIPPLE   0x9300

Definition at line 116 of file input-ip6tun.h.

#define VLAN_HLEN   4

Definition at line 118 of file input-ip6tun.h.

#define VLAN_ID_MASK   0xFF0F

Definition at line 119 of file input-ip6tun.h.

#define MPLS_HLEN   4

Definition at line 121 of file input-ip6tun.h.

#define MPLS_LABEL_SHIFT   12

Definition at line 122 of file input-ip6tun.h.

#define MPLS_STACK_MASK   0xFF7F

Definition at line 123 of file input-ip6tun.h.

#define AYIYA_PORT   5072

Definition at line 125 of file input-ip6tun.h.

#define AYIYA_BASE_HLEN   8

Definition at line 126 of file input-ip6tun.h.

#define AYIYA_TIME_TOL   120

Definition at line 127 of file input-ip6tun.h.

#define TEREDO_AUTH_BASIC_HLEN   13

Definition at line 129 of file input-ip6tun.h.

#define TEREDO_TRAILER_BASIC_LEN   2

Definition at line 130 of file input-ip6tun.h.

#define TEREDO_ORIG_HLEN   8

Definition at line 131 of file input-ip6tun.h.

#define TEREDO_ORIG_PRE   0x0000

Definition at line 132 of file input-ip6tun.h.

#define TEREDO_ORIG_PRE_NO   0x0000

Definition at line 133 of file input-ip6tun.h.

#define TEREDO_AUTH_PRE   0x0001

Definition at line 134 of file input-ip6tun.h.

#define TEREDO_AUTH_PRE_NO   0x0100

Definition at line 135 of file input-ip6tun.h.

#define TEREDO_PREFIX   0x2001

Definition at line 136 of file input-ip6tun.h.

#define TEREDO_PREFIX_NO   0x0120

Definition at line 137 of file input-ip6tun.h.

#define ISATAP_MARK   0x5EFE

Definition at line 139 of file input-ip6tun.h.

#define ISATAP_MARK_NO   0xFE5E

Definition at line 140 of file input-ip6tun.h.

#define _6TO4_RELAY   0xC0586301

Definition at line 142 of file input-ip6tun.h.

#define _6TO4_RELAY_NO   0x58C00163

Definition at line 143 of file input-ip6tun.h.

#define _6TO4_PREFIX   0x2002

Definition at line 144 of file input-ip6tun.h.

#define _6TO4_PREFIX_NO   0x0220

Definition at line 145 of file input-ip6tun.h.

#define _6OVER4_PREFIX   0xFE80

Definition at line 147 of file input-ip6tun.h.

#define _6OVER4_PREFIX_NO   0x80FE

Definition at line 148 of file input-ip6tun.h.

#define TCP_SPORT_OFFSET   0

Definition at line 150 of file input-ip6tun.h.

#define TCP_DPORT_OFFSET   2

Definition at line 151 of file input-ip6tun.h.

#define TCP_FLAGS_OFFSET   13

Definition at line 152 of file input-ip6tun.h.

#define TCP_DATA_OFFSET_OFFSET   12

Definition at line 153 of file input-ip6tun.h.

#define TCP_DATA_OFFSET_SHIFT   4

Definition at line 154 of file input-ip6tun.h.

#define IP_HLEN_MASK   0x0F

Definition at line 156 of file input-ip6tun.h.

#define IP_TTL_OFFSET   0x08

Definition at line 157 of file input-ip6tun.h.

#define IPV6_HLEN   40

Definition at line 159 of file input-ip6tun.h.

#define IPV6_HOP_OFFSET   0x07

Definition at line 160 of file input-ip6tun.h.

#define IPV6_LL_MASK   0xFE80

Definition at line 162 of file input-ip6tun.h.

#define IPV6_LL_MASK_NO   0x80FE

Definition at line 163 of file input-ip6tun.h.

#define UDP_HLEN   8

Definition at line 167 of file input-ip6tun.h.

#define UDP_DNS_PORT   53

Definition at line 168 of file input-ip6tun.h.

#define GET_FAILED   1

Definition at line 172 of file input-ip6tun.h.

#define PARSE_FAILED   0

Definition at line 174 of file input-ip6tun.h.

#define PARSE_SUCCESS   1

Definition at line 175 of file input-ip6tun.h.

#define INIT_FAILED   0

Definition at line 177 of file input-ip6tun.h.

#define INIT_SUCCESS   1

Definition at line 178 of file input-ip6tun.h.

#define VALIDITE_FAILED   0

Definition at line 180 of file input-ip6tun.h.

#define VALIDITE_SUCCESS   1

Definition at line 181 of file input-ip6tun.h.

#define NSEC_IN_SEC   1000000000

Definition at line 184 of file input-ip6tun.h.

#define NSEC_IN_USEC   1000

Definition at line 185 of file input-ip6tun.h.

#define getidlen   idlen_idtype >> 4
#define getidtype   idlen_idtype & 0xF0
#define getsiglen   siglen_hshmeth >> 4
#define gethshmeth   siglen_hshmeth & 0xF0
#define getautmeth   autmeth_opcode >> 4
#define getopcode   autmeth_opcode & 0xF0

Function Documentation

struct __attribute__ ( (packed)  )
read

Structure of ayiya header.

Structure to Teredo trailer.

Structure to Teredo authentication header.

Structure of Teredo origin header.

Definition at line 192 of file input-ip6tun.h.


© 2012 Masaryk University - Institute of Computer Science - visit http://www.muni.cz/ics/