'\" t .\" Title: ieee80211_get_hdrlen_from_skb .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Utility functions .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "IEEE80211_GET_HDRLEN" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Utility functions" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ieee80211_get_hdrlen_from_skb \- get header length from data .SH "SYNOPSIS" .HP \w'unsigned\ int\ ieee80211_get_hdrlen_from_skb('u .BI "unsigned int ieee80211_get_hdrlen_from_skb(const\ struct\ sk_buff\ *\ " "skb" ");" .SH "ARGUMENTS" .PP \fIskb\fR .RS 4 the frame .RE .SH "DESCRIPTION" .PP Given an skb with a raw 802\&.11 header at the data pointer this function returns the 802\&.11 header length\&. .SH "RETURN" .PP The 802\&.11 header length in bytes (not including encryption headers)\&. Or 0 if the data in the sk_buff is too short to contain a valid 802\&.11 header\&. .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br