Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2013 21:22:14 +0000 (UTC)
From:      Monthadar Al Jaberi <monthadar@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246504 - head/sys/net80211
Message-ID:  <201302072122.r17LMEkb010853@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: monthadar
Date: Thu Feb  7 21:22:14 2013
New Revision: 246504
URL: http://svnweb.freebsd.org/changeset/base/246504

Log:
  Start accepting IEEE80211_ACTION_MESH_GANN frames;
  
  * Add IEEE80211_ACTION_MESH_GANN Action frame verification in
    ieee80211_parse_action;
  
  Approved by:	adrian (mentor)

Modified:
  head/sys/net80211/ieee80211_input.c

Modified: head/sys/net80211/ieee80211_input.c
==============================================================================
--- head/sys/net80211/ieee80211_input.c	Thu Feb  7 21:21:40 2013	(r246503)
+++ head/sys/net80211/ieee80211_input.c	Thu Feb  7 21:22:14 2013	(r246504)
@@ -776,6 +776,10 @@ ieee80211_parse_action(struct ieee80211_
 			/* verify something */
 			break;
 		case IEEE80211_ACTION_MESH_GANN:
+			IEEE80211_VERIFY_LENGTH(efrm - frm,
+			    sizeof(struct ieee80211_meshgann_ie),
+			    return EINVAL);
+			break;
 		case IEEE80211_ACTION_MESH_CC:
 		case IEEE80211_ACTION_MESH_MCCA_SREQ:
 		case IEEE80211_ACTION_MESH_MCCA_SREP:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302072122.r17LMEkb010853>