From owner-freebsd-net@FreeBSD.ORG Thu Jul 28 14:53:36 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D63D6106566B for ; Thu, 28 Jul 2011 14:53:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f50.google.com (mail-gw0-f50.google.com [74.125.83.50]) by mx1.freebsd.org (Postfix) with ESMTP id 978898FC15 for ; Thu, 28 Jul 2011 14:53:36 +0000 (UTC) Received: by gwj16 with SMTP id 16so2433247gwj.37 for ; Thu, 28 Jul 2011 07:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=l99iBvsv+4ovo+IU/NTRcQiPCoxy2+Cc5YJcc64tFB8=; b=II7G5/vfOaNOLoEvUOPm1LButnY3eciBs4lOKYRVPZJuTLQQOilXZgS7WfAoedweEP hKW3sMOcnK5nXg/2nRTAsMhwr/dI8Iu176XPgnq28HB8ne/aaAE+FBADmgO3UMGpVG4V 1hSphscDsM6cYXPRt+nDi7WMieIj2Wdn1vBgI= MIME-Version: 1.0 Received: by 10.151.86.11 with SMTP id o11mr144000ybl.386.1311864814396; Thu, 28 Jul 2011 07:53:34 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.186.7 with HTTP; Thu, 28 Jul 2011 07:53:34 -0700 (PDT) In-Reply-To: References: Date: Thu, 28 Jul 2011 22:53:34 +0800 X-Google-Sender-Auth: hsQL356vCCgOBaya6HZC4QkyEmk Message-ID: From: Adrian Chadd To: Monthadar Al Jaberi Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org Subject: Re: Clarification request about mesh_parse_meshpeering_action() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2011 14:53:36 -0000 It's possible it's wrong? Poke rpaulo@, see if he has some time to look at it? Adrian On 25 July 2011 20:39, Monthadar Al Jaberi wrote: > Hi, > > I hope someone can explain to me the following: > > in ieee80211_mesh.c in function mesh_parse_meshpeering_action(). > The last argument uint8_t subtype is supposed to tell the type of Mesh > Peer Managment Action frame. > > The weird thing is that inside the function subtype is checked if it > is equal to IEEE80211_MESH_PEER_LINK_CLOSE and a bit lower in the code > it is checked if it is not equal to > IEEE80211_ACTION_MESHPEERING_CLOSE. > > These two enums represent two different things. One is an > InformationElement while the other is an Action Frame that contains > Information elements. > > How come? > > br, > //Monthadar Al Jaberi > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >