---
name: "eth_type_trans"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/eth_type_trans"
---

# eth\_type\_trans(9)

determine the packet's protocol ID.

## NAME

eth\_type\_trans - determine the packet's protocol ID.

## SYNOPSIS

**\_\_be16 eth\_type\_trans(struct sk\_buff \*** *skb***, struct net\_device \*** *dev***);**

## ARGUMENTS

*skb*

received socket data

*dev*

receiving network device

## DESCRIPTION

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.

## COPYRIGHT
