diff options
author | Luis Carlos Cobo <luisca@cozybit.com> | 2008-08-05 13:34:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-07 09:49:04 -0400 |
commit | e32f85f7b917456265d4c30d15f734c4912cfa6a (patch) | |
tree | 14d48a5e3d4b279966f2c15b0a3e5f909bc71d58 /net/mac80211/mesh.h | |
parent | eda0c003d1ff14c99d8476b482377ccfaf967b6c (diff) |
mac80211: fix use of skb->cb for mesh forwarding
Now we deal with mesh forwarding before the 802.11->802.3 conversion, thus
eliminating a few unnecessary steps. The next hop lookup is called from
ieee80211_master_start_xmit() instead of subif_start_xmit(). Until the next hop
is found, RA in the frame will be all zeroes for frames originating from the
device. For forwarded frames, RA will contain the TA of the received frame,
which will be necessary to send a path error if a next hop is not found.
Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh.h')
-rw-r--r-- | net/mac80211/mesh.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h index 669eafafe497..7495fbb0d211 100644 --- a/net/mac80211/mesh.h +++ b/net/mac80211/mesh.h | |||
@@ -214,8 +214,7 @@ void ieee80211s_stop(void); | |||
214 | void ieee80211_mesh_init_sdata(struct ieee80211_sub_if_data *sdata); | 214 | void ieee80211_mesh_init_sdata(struct ieee80211_sub_if_data *sdata); |
215 | 215 | ||
216 | /* Mesh paths */ | 216 | /* Mesh paths */ |
217 | int mesh_nexthop_lookup(u8 *next_hop, struct sk_buff *skb, | 217 | int mesh_nexthop_lookup(struct sk_buff *skb, struct net_device *dev); |
218 | struct net_device *dev); | ||
219 | void mesh_path_start_discovery(struct net_device *dev); | 218 | void mesh_path_start_discovery(struct net_device *dev); |
220 | struct mesh_path *mesh_path_lookup(u8 *dst, struct net_device *dev); | 219 | struct mesh_path *mesh_path_lookup(u8 *dst, struct net_device *dev); |
221 | struct mesh_path *mesh_path_lookup_by_idx(int idx, struct net_device *dev); | 220 | struct mesh_path *mesh_path_lookup_by_idx(int idx, struct net_device *dev); |
@@ -286,6 +285,4 @@ static inline void mesh_path_activate(struct mesh_path *mpath) | |||
286 | #define mesh_allocated 0 | 285 | #define mesh_allocated 0 |
287 | #endif | 286 | #endif |
288 | 287 | ||
289 | #define MESH_PREQ(skb) (skb->cb + 30) | ||
290 | |||
291 | #endif /* IEEE80211S_H */ | 288 | #endif /* IEEE80211S_H */ |