From owner-svn-src-projects@FreeBSD.ORG Sat Jun 27 16:49:35 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CED1106564A; Sat, 27 Jun 2009 16:49:35 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5BCDA8FC0A; Sat, 27 Jun 2009 16:49:35 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5RGnZLO082949; Sat, 27 Jun 2009 16:49:35 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5RGnZLK082947; Sat, 27 Jun 2009 16:49:35 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <200906271649.n5RGnZLK082947@svn.freebsd.org> From: Rui Paulo Date: Sat, 27 Jun 2009 16:49:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r195110 - projects/mesh11s/sys/net80211 X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2009 16:49:35 -0000 Author: rpaulo Date: Sat Jun 27 16:49:35 2009 New Revision: 195110 URL: http://svn.freebsd.org/changeset/base/195110 Log: Add a prototype struct for the extensibility code in mesh vaps. Sponsored by: The FreeBSD Foundation Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.h Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.h ============================================================================== --- projects/mesh11s/sys/net80211/ieee80211_mesh.h Sat Jun 27 16:48:07 2009 (r195109) +++ projects/mesh11s/sys/net80211/ieee80211_mesh.h Sat Jun 27 16:49:35 2009 (r195110) @@ -371,6 +371,25 @@ struct ieee80211_meshcntl_ae11 { }; #ifdef _KERNEL +struct ieee80211_mesh_proto { + /* Action frame categories to intercept */ + uint8_t mpr_actpath; + uint8_t mpr_actlinkmetric; + /* Values to be sent in the Mesh Configuration IE */ + uint8_t mpr_pathid[4]; + uint8_t mpr_metricid[4]; + uint8_t mpr_congid[4]; + uint8_t mpr_syncid[4]; + uint8_t mpr_authid[4]; + void (*mpr_recv_action)(struct ieee80211vap *, + struct ieee80211_node *, struct mbuf *); + struct ieee80211_node * (*mpr_discover)(struct ieee80211vap *, + uint8_t [IEEE80211_ADDR_LEN], struct mbuf *); + struct ieee80211_node * (*mpr_find_txnode)(struct ieee80211vap *vap, + uint8_t dest[IEEE80211_ADDR_LEN]); + uint32_t (*mpr_linkmetric)(struct ieee80211_node *); + /* XXX needs more methods */ +}; struct ieee80211_mesh_state { int ms_idlen; uint8_t ms_id[IEEE80211_MESHID_LEN]; @@ -380,7 +399,7 @@ struct ieee80211_mesh_state { #define IEEE80211_MESHFLAGS_PORTAL 0x02 /* mesh portal role */ #define IEEE80211_MESHFLAGS_FWD 0x04 /* forward packets */ uint8_t ms_flags; - + struct ieee80211_mesh_proto *ms_proto; }; void ieee80211_mesh_attach(struct ieee80211com *); void ieee80211_mesh_detach(struct ieee80211com *);