LINKTYPE_LOOP

Packet structure for BSD loopback encapsulation

+---------------------------+
|       Protocol type       |
|         (4 Octets)        |
+---------------------------+
|           Payload         |
.                           .
.                           .
.                           .

Description

The protocol type field is in big-endian byte order. The values for that field are:

  • 2 - payload is an IPv4 packet;
  • 24 - payload is an IPv6 packet;
  • 28 - payload is an IPv6 packet;
  • 30 - payload is an IPv6 packet;
  • 7 - payload is an OSI packet;
  • 23 - payload is an IPX packet.

All of the IPv6 values correspond to IPv6 packets; code reading files should check for all of them.