RadioTap and stuff¶
RadioTap¶
-
class
RadioTap
¶ Bases:
cycapture.libtins._tins.PDU
RadioTap packet
-
class
ChannelType
¶ Bases:
enum.IntEnum
Enumeration of the different channel types. See RadioTap.channel.
Attributes:
TURBO
,CCK
,OFDM
,TWO_GZ
,FIVE_GZ
,PASSIVE
,DYN_CCK_OFDM
,GFSK
-
class
RadioTap.
FrameFlags
¶ Bases:
enum.IntEnum
Flags used in the RadioTap.flags property
Attributes:
CFP
,PREAMBLE
,WEP
,FRAGMENTATION
,FCS
,PADDING
,FAILED_FCS
,SHORT_GI
-
class
RadioTap.
PresentFlags
¶ Bases:
enum.IntEnum
Flags used in the RadioTap.present property
Attributes:
TSTF
,FLAGS
,RATE
,CHANNEL
,FHSS
,DBM_SIGNAL
,DBM_NOISE
,LOCK_QUALITY
,TX_ATTENUATION
,DB_TX_ATTENUATION
,DBM_TX_ATTENUATION
,ANTENNA
,DB_SIGNAL
,DB_NOISE
,RX_FLAGS
,TX_FLAGS
,DATA_RETRIES
,CHANNEL_PLUS
,MCS
-
RadioTap.
channel
(self, new_freq, new_type)¶ Setter for the channel frequency and type field
Parameters: - new_freq (uint16_t) -- The new channel frequency
- new_type (uint16_t) -- The new channel type (you can OR the ChannelType values)
-
RadioTap.
mcs
¶ the MCS field (read-write,
uint8_t
)
-
RadioTap.
present
¶ Return which fields are set. You can mask this value using the PresentFlags enum. (read-only property)
-
class
LLC¶
-
class
LLC
(dsap=0, ssap=0)¶ Bases:
cycapture.libtins._tins.PDU
LLC frame (IEEE 802.2)
Constructs an instance of LLC, setting the dsap and ssap.
The control field is set to 0.
Parameters: - dsap (int) -- The dsap value
- ssap (int) -- The ssap value
-
class
Format
¶ Bases:
enum.IntEnum
LLC Format flags
Attributes:
INFORMATION
,SUPERVISORY
,UNNUMBERED
-
class
LLC.
ModifierFunctions
¶ Bases:
enum.IntEnum
LLC Modifier functions
Attributes:
UI
,DISC
,UA
,TEST
,FRMR
,DM
,XID
,SABME
-
class
LLC.
SupervisoryFunctions
¶ Bases:
enum.IntEnum
LLC Supervisory functions
Attributes:
RECEIVE_READY
,RECEIVE_NOT_READY
,REJECT
-
LLC.
dsap
¶ dsap field (read-write, uint8_t)
-
LLC.
group
¶ group destination bit (read-write, bool)
-
LLC.
modifier_function
¶ modifier function field (read-write,
ModifierFunctions
; only applied if format is UNNUMBERED)
-
LLC.
poll_final
¶ poll/final flag (read-write, bool)
-
LLC.
receive_seq_number
¶ sender receive sequence number (read-write, uint8_t; only applied if format is INFORMATION or SUPERVISORY)
-
LLC.
response
¶ response bit (read-write, bool)
-
LLC.
send_seq_number
¶ sender send sequence number (read-write, uint8_t; only applied if format is INFORMATION)
-
LLC.
ssap
¶ ssap field (read-write, uint8_t)
-
LLC.
supervisory_function
¶ supervisory function (read-write,
SupervisoryFunctions
; only applied if format is SUPERVISORY)
SNAP¶
-
class
SNAP
¶ Bases:
cycapture.libtins._tins.PDU
SNAP frame.
Note that this PDU contains the 802.3 LLC structure + SNAP frame. So far only unnumbered information structure is supported.
The constructor sets the dsap and ssap fields to
0xaa
, and the id field to3
.-
control
¶ Control field (read-write, uint8_t)
-
dsap
¶ DSAP field (read-only)
-
eth_type
¶ Ethernet Type field (read-write, uint16_t)
-
org_code
¶ Organization Code field (read-write, 24 bits int)
-
ssap
¶ SSAP field (read-only)
-
IEEE 802.3¶
-
class
Dot3
(dst_addr=None, src_addr=None)¶ Bases:
cycapture.libtins._tins.PDU
Dot3 (IEEE 802.3) packet
Parameters: -
length
¶ Length field (read-write, uint16_t)
-