Peafowl
latest

User Guide

  • Building and Installing
  • Basic Usage
  • Flows
  • Fields Extraction
  • Supported Protocols

API Reference

  • C API
    • Peafowl C API
      • Class Hierarchy
      • File Hierarchy
      • Full API
        • Classes and Structs
        • Enums
        • Unions
        • Functions
        • Defines
        • Typedefs
  • C++ API
    • Peafowl C++ API
      • Class Hierarchy
      • File Hierarchy
      • Full API
        • Namespaces
        • Classes and Structs
        • Functions
        • Typedefs
  • Python API
    • pypeafowl
      • Peafowl python API
      • pypeafowl.Direction
        • pypeafowl.Direction.INBOUND
        • pypeafowl.Direction.OUTBOUND
        • pypeafowl.Direction.name
        • pypeafowl.Direction.value
      • pypeafowl.DissectionInfo
        • pypeafowl.DissectionInfo.getL2
        • pypeafowl.DissectionInfo.getL3
        • pypeafowl.DissectionInfo.getL4
        • pypeafowl.DissectionInfo.getL7
        • pypeafowl.DissectionInfo.getStatus
        • pypeafowl.DissectionInfo.guessProtocol
        • pypeafowl.DissectionInfo.hasProtocolL7
      • pypeafowl.DissectionInfoL2
        • pypeafowl.DissectionInfoL2.getLength
        • pypeafowl.DissectionInfoL2.getProtocol
      • pypeafowl.DissectionInfoL3
        • pypeafowl.DissectionInfoL3.getAddressDst
        • pypeafowl.DissectionInfoL3.getAddressSrc
        • pypeafowl.DissectionInfoL3.getLength
        • pypeafowl.DissectionInfoL3.getPayloadLength
        • pypeafowl.DissectionInfoL3.getProtocol
        • pypeafowl.DissectionInfoL3.getRefragmentedPacket
      • pypeafowl.DissectionInfoL4
        • pypeafowl.DissectionInfoL4.getDirection
        • pypeafowl.DissectionInfoL4.getLength
        • pypeafowl.DissectionInfoL4.getPayloadLength
        • pypeafowl.DissectionInfoL4.getPortDst
        • pypeafowl.DissectionInfoL4.getPortSrc
        • pypeafowl.DissectionInfoL4.getProtocol
        • pypeafowl.DissectionInfoL4.getResegmentedPacket
      • pypeafowl.DissectionInfoL7
        • pypeafowl.DissectionInfoL7.getField
        • pypeafowl.DissectionInfoL7.getFields
        • pypeafowl.DissectionInfoL7.getProtocol
        • pypeafowl.DissectionInfoL7.getProtocols
        • pypeafowl.DissectionInfoL7.getTags
        • pypeafowl.DissectionInfoL7.httpGetHeader
      • pypeafowl.Field
        • pypeafowl.Field.getNumber
        • pypeafowl.Field.getString
        • pypeafowl.Field.isPresent
      • pypeafowl.FieldId
        • pypeafowl.FieldId.HTTP_URL
        • pypeafowl.FieldId.name
        • pypeafowl.FieldId.value
      • pypeafowl.FlowInfo
        • pypeafowl.FlowInfo.getAddressDst
        • pypeafowl.FlowInfo.getAddressSrc
        • pypeafowl.FlowInfo.getId
        • pypeafowl.FlowInfo.getPortDst
        • pypeafowl.FlowInfo.getPortSrc
        • pypeafowl.FlowInfo.getProtocolL2
        • pypeafowl.FlowInfo.getProtocolL3
        • pypeafowl.FlowInfo.getProtocolL4
        • pypeafowl.FlowInfo.getProtocolsL7
        • pypeafowl.FlowInfo.getStatistic
        • pypeafowl.FlowInfo.getThreadId
        • pypeafowl.FlowInfo.getUserData
        • pypeafowl.FlowInfo.setUserData
      • pypeafowl.FlowManager
        • pypeafowl.FlowManager.onTermination
      • pypeafowl.FlowsStrategy
        • pypeafowl.FlowsStrategy.FLOWS_STRATEGY_EVICT
        • pypeafowl.FlowsStrategy.FLOWS_STRATEGY_NONE
        • pypeafowl.FlowsStrategy.FLOWS_STRATEGY_SKIP
        • pypeafowl.FlowsStrategy.name
        • pypeafowl.FlowsStrategy.value
      • pypeafowl.IpAddress
        • pypeafowl.IpAddress.getIPv4
        • pypeafowl.IpAddress.getIPv6
        • pypeafowl.IpAddress.isIPv4
        • pypeafowl.IpAddress.isIPv6
        • pypeafowl.IpAddress.toString
      • pypeafowl.Peafowl
        • pypeafowl.Peafowl.dissectFromL2
        • pypeafowl.Peafowl.dissectFromL3
        • pypeafowl.Peafowl.fieldAddL7
        • pypeafowl.Peafowl.fieldRemoveL7
        • pypeafowl.Peafowl.setExpectedFlows
        • pypeafowl.Peafowl.setFlowManager
        • pypeafowl.Peafowl.setTimestampUnit
      • pypeafowl.ProtocolL2
        • pypeafowl.ProtocolL2.getId
        • pypeafowl.ProtocolL2.getName
      • pypeafowl.ProtocolL3
        • pypeafowl.ProtocolL3.getId
        • pypeafowl.ProtocolL3.getName
      • pypeafowl.ProtocolL4
        • pypeafowl.ProtocolL4.getId
        • pypeafowl.ProtocolL4.getName
      • pypeafowl.ProtocolL7
        • pypeafowl.ProtocolL7.getId
        • pypeafowl.ProtocolL7.getName
      • pypeafowl.Statistic
        • pypeafowl.Statistic.BYTES
        • pypeafowl.Statistic.L4_TCP_COUNT_FIN
        • pypeafowl.Statistic.L4_TCP_COUNT_RETRANSMISSIONS
        • pypeafowl.Statistic.L4_TCP_COUNT_RST
        • pypeafowl.Statistic.L4_TCP_COUNT_SYN
        • pypeafowl.Statistic.L4_TCP_COUNT_ZERO_WINDOW
        • pypeafowl.Statistic.L4_TCP_RTT_SYN_ACK
        • pypeafowl.Statistic.L4_TCP_WINDOW_SCALING
        • pypeafowl.Statistic.L7_BYTES
        • pypeafowl.Statistic.L7_PACKETS
        • pypeafowl.Statistic.PACKETS
        • pypeafowl.Statistic.STAT_NUM
        • pypeafowl.Statistic.TIMESTAMP_FIRST
        • pypeafowl.Statistic.TIMESTAMP_LAST
        • pypeafowl.Statistic.name
        • pypeafowl.Statistic.value
      • pypeafowl.Status
        • pypeafowl.Status.getMessage
      • pypeafowl.String
        • pypeafowl.String.getLength
        • pypeafowl.String.getValue
      • pypeafowl.convertPcapDlt

Customize

  • Adding New Protocols
  • Adding New Fields
  • Low-level Configuration
Peafowl
  • Docs »
  • C API »
  • Peafowl C API »
  • Enum pfwl_datalink_type
  • Edit on GitHub

Enum pfwl_datalink_type¶

  • Defined in File peafowl.h

Enum Documentation¶

enum pfwl_datalink_type¶

L2 datalink protocols supported by peafowl. When adding a new protocol, please update the pfwl_l2_protocols_names array in parsing_l2.c

Values:

enumerator PFWL_PROTO_L2_EN10MB¶

IEEE 802.3 Ethernet (10Mb, 100Mb, 1000Mb, and up)

enumerator PFWL_PROTO_L2_LINUX_SLL¶

Linux “cooked” capture encapsulation.

enumerator PFWL_PROTO_L2_IEEE802_11_RADIO¶

Radiotap link-layer information followed by an 802.11 header

enumerator PFWL_PROTO_L2_IEEE802_11¶

IEEE 802.11.

enumerator PFWL_PROTO_L2_IEEE802¶

IEEE 802.5 Token Ring.

enumerator PFWL_PROTO_L2_SLIP¶

SLIP, encapsulated with a LINKTYPE_SLIP header.

enumerator PFWL_PROTO_L2_PPP¶

PPP, as per RFC 1661 and RFC 1662.

enumerator PFWL_PROTO_L2_FDDI¶

FDDI, as specified by ANSI INCITS 239-1994.

enumerator PFWL_PROTO_L2_RAW¶

Raw IP.

enumerator PFWL_PROTO_L2_LOOP¶

OpenBSD loopback encapsulation.

enumerator PFWL_PROTO_L2_NULL¶

BSD loopback encapsulation.

enumerator PFWL_PROTO_L2_NUM¶

Special value to indicate an unsupported datalink type. This must be the last value

Next Previous

© Copyright 2019, Daniele De Sensi Revision 89fdf35a.

Built with Sphinx using a theme provided by Read the Docs.