Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
mesh_path Struct Reference

#include <mesh.h>

Data Fields

u8 dst [ETH_ALEN]
 
u8 mpp [ETH_ALEN]
 
struct ieee80211_sub_if_datasdata
 
struct sta_info __rcunext_hop
 
struct timer_list timer
 
struct sk_buff_head frame_queue
 
struct rcu_head rcu
 
u32 sn
 
u32 metric
 
u8 hop_count
 
unsigned long exp_time
 
u32 discovery_timeout
 
u8 discovery_retries
 
enum mesh_path_flags flags
 
spinlock_t state_lock
 
u8 rann_snd_addr [ETH_ALEN]
 
u32 rann_metric
 
unsigned long last_preq_to_root
 
bool is_root
 
bool is_gate
 

Detailed Description

struct mesh_path - mac80211 mesh path structure

: mesh path destination mac address : mesh subif : mesh neighbor to which frames for this destination will be forwarded : mesh path discovery timer : pending queue for frames sent to this destination while the path is unresolved : target sequence number : current metric to this destination : hops to destination : in jiffies, when the path will expire or when it expired : timeout (lapse in jiffies) used for the last discovery retry : number of discovery retries : mesh path flags, as specified on &enum mesh_path_flags : mesh path state lock used to protect changes to the mpath itself. No need to take this lock when adding or removing an mpath to a hash bucket on a path table. : the RANN sender address : the aggregated path metric towards the root node : Timestamp of last PREQ sent to root : the destination station of this path is a root node : the destination station of this path is a mesh gate

The combination of dst and sdata is unique in the mesh path table. Since the next_hop STA is only protected by RCU as well, deleting the STA must also remove/substitute the mesh_path structure and wait until that is no longer reachable before destroying the STA completely.

Definition at line 117 of file mesh.h.

Field Documentation

u8 discovery_retries

Definition at line 130 of file mesh.h.

u32 discovery_timeout

Definition at line 129 of file mesh.h.

u8 dst[ETH_ALEN]

Definition at line 118 of file mesh.h.

unsigned long exp_time

Definition at line 128 of file mesh.h.

enum mesh_path_flags flags

Definition at line 131 of file mesh.h.

struct sk_buff_head frame_queue

Definition at line 123 of file mesh.h.

u8 hop_count

Definition at line 127 of file mesh.h.

bool is_gate

Definition at line 137 of file mesh.h.

bool is_root

Definition at line 136 of file mesh.h.

unsigned long last_preq_to_root

Definition at line 135 of file mesh.h.

u32 metric

Definition at line 126 of file mesh.h.

u8 mpp[ETH_ALEN]

Definition at line 119 of file mesh.h.

struct sta_info __rcu* next_hop

Definition at line 121 of file mesh.h.

u32 rann_metric

Definition at line 134 of file mesh.h.

u8 rann_snd_addr[ETH_ALEN]

Definition at line 133 of file mesh.h.

Definition at line 124 of file mesh.h.

Definition at line 120 of file mesh.h.

u32 sn

Definition at line 125 of file mesh.h.

spinlock_t state_lock

Definition at line 132 of file mesh.h.

Definition at line 122 of file mesh.h.


The documentation for this struct was generated from the following file: