Protocol Type Registry Vendor Crawlers

LINK-LAYER HEADER TYPES *

class pcapkit.vendor.reg.linktype.LinkType[source]

Bases: pcapkit.vendor.default.Vendor

Link-Layer Header Type Values

count(data)[source]

Count field records.

process(data)[source]

Process registry data.

Parameters

data (List[str]) – Registry data.

Returns

Enumeration fields. List[str]: Missing fields.

Return type

List[str]

request(text)[source]

Fetch registry table.

Parameters

text (str) – Context from LINK.

Returns

Rows (tr) from registry table (table).

Return type

List[str]

FLAG = 'isinstance(value, int) and 0x00000000 <= value <= 0xFFFFFFFF'

Value limit checker.

Link to registry.

ETHER TYPES

class pcapkit.vendor.reg.ethertype.EtherType[source]

Bases: pcapkit.vendor.default.Vendor

Ethertype IEEE 802 Numbers

count(data)[source]

Count field records.

Parameters

data (List[str]) – CSV data.

Returns

Field recordings.

Return type

Counter

process(data)[source]

Process CSV data.

Parameters

data (List[str]) – CSV data.

Returns

Enumeration fields. List[str]: Missing fields.

Return type

List[str]

rename(name, code)[source]

Rename duplicated fields.

Parameters
  • name (str) – Field name.

  • code (str) – Field code (hex).

Keyword Arguments

original (str) – Original field name (extracted from CSV records).

Returns

Revised field name.

Return type

str

FLAG = 'isinstance(value, int) and 0x0000 <= value <= 0xFFFF'

Value limit checker.

Link to registry.

Assigned Internet Protocol Numbers

class pcapkit.vendor.reg.transtype.TransType[source]

Bases: pcapkit.vendor.default.Vendor

Transport Layer Protocol Numbers

count(data)[source]

Count field records.

Parameters

data (List[str]) – CSV data.

Returns

Field recordings.

Return type

Counter

process(data)[source]

Process CSV data.

Parameters

data (List[str]) – CSV data.

Returns

Enumeration fields. List[str]: Missing fields.

Return type

List[str]

FLAG = 'isinstance(value, int) and 0 <= value <= 255'

Value limit checker.

Link to registry.


*

http://www.tcpdump.org/linktypes.html

https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml#ieee-802-numbers-1

https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml#protocol-numbers-1