Search Linux Wireless

Accessing PROTOCOL TYPE field from rx.c in mac80211

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,
 I would like to inspect the protocol type field from mac802.11, and
specifically in rx.c in the function

static ieee80211_rx_result debug_noinline
ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)

I was trying to do:

struct iphdr * network_header;
skb_set_network_header(skb,ieee80211_get_hdrlen_from_skb(skb));
network_header = (struct iphdr *)skb_network_header(skb);

 if (network_header->protocol==IPPROTO_TCP){
...
}
but it does not seams to work....

In status.c everything works fine when I do:

struct iphdr * network_header;

network_header = (struct iphdr *)skb_network_header(skb);

 if (network_header->protocol==IPPROTO_TCP){
...
}

the problem is how to correctly set the network header pointer in the
skb in rx.c
can somebody give me an hint?


Thank you

-- 
Claudio Rossi
-------------------
Office @ PoliTO: +39 011 5644194
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux