'\" t .\" Title: eth_type_trans .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "ETH_TYPE_TRANS" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "Network device support" .\" ----------------------------------------------------------------- .\" * 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" eth_type_trans \- determine the packet\*(Aqs protocol ID\&. .SH "SYNOPSIS" .HP \w'__be16\ eth_type_trans('u .BI "__be16 eth_type_trans(struct\ sk_buff\ *\ " "skb" ", struct\ net_device\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIstruct sk_buff * skb\fR .RS 4 received socket data .RE .PP \fIstruct net_device * dev\fR .RS 4 receiving network device .RE .SH "DESCRIPTION" .PP The rule here is that we assume 802\&.3 if the type field is short enough to be a length\&. This is normal practice and works for any \*(Aqnow in use\*(Aq protocol\&. .SH "COPYRIGHT" .br