Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Variables
packet.h File Reference

Go to the source code of this file.

Data Structures

struct  batadv_bla_claim_dst
 
struct  batadv_header
 
struct  batadv_ogm_packet
 
struct  batadv_icmp_packet
 
struct  batadv_icmp_packet_rr
 
struct  batadv_unicast_packet
 
struct  batadv_unicast_frag_packet
 
struct  batadv_bcast_packet
 
struct  batadv_vis_packet
 
struct  batadv_tt_query_packet
 
struct  batadv_roam_adv_packet
 
struct  batadv_tt_change
 

Macros

#define BATADV_ETH_P_BATMAN   0x4305 /* unofficial/not registered Ethertype */
 
#define BATADV_COMPAT_VERSION   14
 
#define BATADV_TT_QUERY_TYPE_MASK   0x3
 
#define BATADV_OGM_HLEN   sizeof(struct batadv_ogm_packet)
 
#define BATADV_RR_LEN   16
 

Enumerations

enum  batadv_packettype {
  BATADV_IV_OGM = 0x01, BATADV_ICMP = 0x02, BATADV_UNICAST = 0x03, BATADV_BCAST = 0x04,
  BATADV_VIS = 0x05, BATADV_UNICAST_FRAG = 0x06, BATADV_TT_QUERY = 0x07, BATADV_ROAM_ADV = 0x08
}
 
enum  batadv_iv_flags { BATADV_NOT_BEST_NEXT_HOP = BIT(3), BATADV_PRIMARIES_FIRST_HOP = BIT(4), BATADV_VIS_SERVER = BIT(5), BATADV_DIRECTLINK = BIT(6) }
 
enum  batadv_icmp_packettype {
  BATADV_ECHO_REPLY = 0, BATADV_DESTINATION_UNREACHABLE = 3, BATADV_ECHO_REQUEST = 8, BATADV_TTL_EXCEEDED = 11,
  BATADV_PARAMETER_PROBLEM = 12
}
 
enum  batadv_vis_packettype { BATADV_VIS_TYPE_SERVER_SYNC = 0, BATADV_VIS_TYPE_CLIENT_UPDATE = 1 }
 
enum  batadv_unicast_frag_flags { BATADV_UNI_FRAG_HEAD = BIT(0), BATADV_UNI_FRAG_LARGETAIL = BIT(1) }
 
enum  batadv_tt_query_packettype { BATADV_TT_REQUEST = 0, BATADV_TT_RESPONSE = 1 }
 
enum  batadv_tt_query_flags { BATADV_TT_FULL_TABLE = BIT(2) }
 
enum  batadv_tt_client_flags {
  BATADV_TT_CLIENT_DEL = BIT(0), BATADV_TT_CLIENT_ROAM = BIT(1), BATADV_TT_CLIENT_WIFI = BIT(2), BATADV_TT_CLIENT_TEMP = BIT(3),
  BATADV_TT_CLIENT_NOPURGE = BIT(8), BATADV_TT_CLIENT_NEW = BIT(9), BATADV_TT_CLIENT_PENDING = BIT(10)
}
 
enum  batadv_bla_claimframe { BATADV_CLAIM_TYPE_CLAIM = 0x00, BATADV_CLAIM_TYPE_UNCLAIM = 0x01, BATADV_CLAIM_TYPE_ANNOUNCE = 0x02, BATADV_CLAIM_TYPE_REQUEST = 0x03 }
 

Variables

struct batadv_bla_claim_dst __packed
 

Macro Definition Documentation

#define BATADV_COMPAT_VERSION   14

Definition at line 37 of file packet.h.

#define BATADV_ETH_P_BATMAN   0x4305 /* unofficial/not registered Ethertype */

Definition at line 23 of file packet.h.

#define BATADV_OGM_HLEN   sizeof(struct batadv_ogm_packet)

Definition at line 130 of file packet.h.

#define BATADV_RR_LEN   16

Definition at line 142 of file packet.h.

#define BATADV_TT_QUERY_TYPE_MASK   0x3

Definition at line 68 of file packet.h.

Enumeration Type Documentation

Enumerator:
BATADV_CLAIM_TYPE_CLAIM 
BATADV_CLAIM_TYPE_UNCLAIM 
BATADV_CLAIM_TYPE_ANNOUNCE 
BATADV_CLAIM_TYPE_REQUEST 

Definition at line 95 of file packet.h.

Enumerator:
BATADV_ECHO_REPLY 
BATADV_DESTINATION_UNREACHABLE 
BATADV_ECHO_REQUEST 
BATADV_TTL_EXCEEDED 
BATADV_PARAMETER_PROBLEM 

Definition at line 47 of file packet.h.

Enumerator:
BATADV_NOT_BEST_NEXT_HOP 
BATADV_PRIMARIES_FIRST_HOP 
BATADV_VIS_SERVER 
BATADV_DIRECTLINK 

Definition at line 39 of file packet.h.

Enumerator:
BATADV_IV_OGM 
BATADV_ICMP 
BATADV_UNICAST 
BATADV_BCAST 
BATADV_VIS 
BATADV_UNICAST_FRAG 
BATADV_TT_QUERY 
BATADV_ROAM_ADV 

Definition at line 25 of file packet.h.

Enumerator:
BATADV_TT_CLIENT_DEL 
BATADV_TT_CLIENT_ROAM 
BATADV_TT_CLIENT_WIFI 
BATADV_TT_CLIENT_TEMP 
BATADV_TT_CLIENT_NOPURGE 
BATADV_TT_CLIENT_NEW 
BATADV_TT_CLIENT_PENDING 

Definition at line 84 of file packet.h.

Enumerator:
BATADV_TT_FULL_TABLE 

Definition at line 76 of file packet.h.

Enumerator:
BATADV_TT_REQUEST 
BATADV_TT_RESPONSE 

Definition at line 70 of file packet.h.

Enumerator:
BATADV_UNI_FRAG_HEAD 
BATADV_UNI_FRAG_LARGETAIL 

Definition at line 62 of file packet.h.

Enumerator:
BATADV_VIS_TYPE_SERVER_SYNC 
BATADV_VIS_TYPE_CLIENT_UPDATE 

Definition at line 56 of file packet.h.

Variable Documentation