Deleted Added
full compact
ieee80211_mesh.c (234894) ieee80211_mesh.c (240521)
1/*-
2 * Copyright (c) 2009 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Rui Paulo under sponsorship from the
6 * FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29#include <sys/cdefs.h>
30#ifdef __FreeBSD__
1/*-
2 * Copyright (c) 2009 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Rui Paulo under sponsorship from the
6 * FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29#include <sys/cdefs.h>
30#ifdef __FreeBSD__
31__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_mesh.c 234894 2012-05-01 16:16:20Z monthadar $");
31__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_mesh.c 240521 2012-09-14 22:00:03Z eadler $");
32#endif
33
34/*
35 * IEEE 802.11s Mesh Point (MBSS) support.
36 *
37 * Based on March 2009, D3.0 802.11s draft spec.
38 */
39#include "opt_inet.h"

--- 1133 unchanged lines hidden (view full) ---

1173 ms->ms_ppath->mpp_inact));
1174
1175 mesh_forward(vap, m, mc);
1176 return (1); /* dont process locally */
1177}
1178
1179/*
1180 * Verifies transmitter, updates lifetime, precursor list and process data
32#endif
33
34/*
35 * IEEE 802.11s Mesh Point (MBSS) support.
36 *
37 * Based on March 2009, D3.0 802.11s draft spec.
38 */
39#include "opt_inet.h"

--- 1133 unchanged lines hidden (view full) ---

1173 ms->ms_ppath->mpp_inact));
1174
1175 mesh_forward(vap, m, mc);
1176 return (1); /* dont process locally */
1177}
1178
1179/*
1180 * Verifies transmitter, updates lifetime, precursor list and process data
1181 * locally, if data is is proxy with AE = 10 it could mean data should go
1181 * locally, if data is proxy with AE = 10 it could mean data should go
1182 * on another mesh path or data should be forwarded to the DS.
1183 *
1184 * > 0 means we have forwarded data and no need to process locally
1185 * == 0 means we want to process locally (and we may have forwarded data
1186 * < 0 means there was an error and data should be discarded
1187 */
1188static int
1189mesh_recv_indiv_data_to_me(struct ieee80211vap *vap, struct mbuf *m,

--- 1948 unchanged lines hidden ---
1182 * on another mesh path or data should be forwarded to the DS.
1183 *
1184 * > 0 means we have forwarded data and no need to process locally
1185 * == 0 means we want to process locally (and we may have forwarded data
1186 * < 0 means there was an error and data should be discarded
1187 */
1188static int
1189mesh_recv_indiv_data_to_me(struct ieee80211vap *vap, struct mbuf *m,

--- 1948 unchanged lines hidden ---