eth_type_trans(9)

eth_type_trans9

Determine the packet's protocol id.

Usage

__be16 eth_type_trans(struct sk_buff * skb, struct net_device * dev);

Arguments

skb

received socket data

dev

receiving network device

Overview

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 'now in use' protocol.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.