<div dir="ltr">Avinash,<div><br></div><div>Ya m talking about the WLAN.</div><div>can you just throw some more light on cfg802.11 handlers.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 28, 2015 at 11:24 PM, Avinash Patil <span dir="ltr"><<a href="mailto:avinashapatil@gmail.com" target="_blank">avinashapatil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Gunjan,<br>
<br>
Are you talking about WLAN beacon frames? If so, you can you cfg80211<br>
handlers to register management frames and once frame is received<br>
parse frame type/subtype to check if its beacon.<br>
I dont think beacon frames are delievered to netdev.<br>
<br>
Thanks,<br>
Avinash<br>
<div><div class="h5"><br>
On Fri, Aug 28, 2015 at 10:51 AM, Gunjan Mehta <<a href="mailto:gunjanmehta08@gmail.com">gunjanmehta08@gmail.com</a>> wrote:<br>
> Then how do i capture the beacon frames?<br>
><br>
> On Fri, Aug 28, 2015 at 10:40 PM, Jeff Haran <<a href="mailto:Jeff.Haran@citrix.com">Jeff.Haran@citrix.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> From: <a href="mailto:kernelnewbies-bounces@kernelnewbies.org">kernelnewbies-bounces@kernelnewbies.org</a><br>
>> [mailto:<a href="mailto:kernelnewbies-bounces@kernelnewbies.org">kernelnewbies-bounces@kernelnewbies.org</a>] On Behalf Of Gunjan Mehta<br>
>> Sent: Friday, August 28, 2015 9:21 AM<br>
>> To: kernelnewbies; <a href="mailto:netfilter-devel@vger.kernel.org">netfilter-devel@vger.kernel.org</a><br>
>> Subject: Identify Beacon Frame<br>
>><br>
>><br>
>><br>
>> Hi All,<br>
>><br>
>><br>
>><br>
>> I am new to kernel development. I am writing a kernel module that captures<br>
>> packet at the netfilter pre - routing hook.<br>
>><br>
>><br>
>><br>
>> I only want to capture the BEACON FRAME.<br>
>><br>
>><br>
>><br>
>> I have few queries:<br>
>><br>
>><br>
>><br>
>> 1>When the beacon frame comes to receiving machine do the sk_buff gets<br>
>> allocated?<br>
>><br>
>> 2> How can i identify the beacon frame at the pre routing hook?<br>
>><br>
>> 3> Beacon frame consist of a string for authentication of client with the<br>
>> server, can i use sk_buff pointers to get access to that string, if sk_buff<br>
>> is allocated?<br>
>><br>
>><br>
>><br>
>> Regards<br>
>><br>
>> Gunjan<br>
>><br>
>><br>
>><br>
>> These beacon frames do not appear to be IP packets. If that is true, I<br>
>> don’t think you are going to see them in any netfilter hooks.<br>
>><br>
>><br>
>><br>
>> Jeff Haran<br>
>><br>
>><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
</blockquote></div><br></div>