MCPcopy Create free account
hub / github.com/secdev/scapy / STAMPSessionSenderTestUnauthenticated

Class STAMPSessionSenderTestUnauthenticated

scapy/contrib/stamp.py:183–229  ·  view source on GitHub ↗

Extended STAMP Session-Sender Test Packet in Unauthenticated Mode. The format (defined in Section 3 of `RFC 8972 `_) is shown below:: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2

Source from the content-addressed store, hash-verified

181
182
183class STAMPSessionSenderTestUnauthenticated(Packet):
184 """
185 Extended STAMP Session-Sender Test Packet in Unauthenticated Mode.
186
187 The format (defined in Section 3 of `RFC 8972
188 <https://www.rfc-editor.org/rfc/rfc8972.html>`_) is shown below::
189
190 0 1 2 3
191 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
192 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
193 | Sequence Number |
194 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
195 | Timestamp |
196 | |
197 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
198 | Error Estimate | SSID |
199 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
200 | |
201 | |
202 | MBZ (28 octets) |
203 | |
204 | |
205 | |
206 | |
207 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
208 ~ TLVs ~
209 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
210
211 References:
212 * `Simple Two-Way Active Measurement Protocol Optional Extensions
213 [RFC 8972] <https://www.rfc-editor.org/rfc/rfc8972.html>`_
214 """
215 name = 'STAMP Session-Sender Test'
216 fields_desc = [
217 IntField('seq', 0),
218 MultipleTypeField(
219 [
220 (TimeStampField('ts', 0),
221 lambda pkt:pkt.err_estimate.Z == 0)
222 ],
223 UTCTimeField('ts', 0, fmt='Q')
224 ),
225 PacketField('err_estimate', ErrorEstimate(), ErrorEstimate),
226 ShortField('ssid', 1),
227 NBytesField('mbz', 0, 28), # 28 bytes MBZ
228 PacketListField('tlv_objects', [], STAMPTestTLV),
229 ]
230
231
232class STAMPSessionReflectorTestUnauthenticated(Packet):

Callers

nothing calls this directly

Calls 9

IntFieldClass · 0.90
MultipleTypeFieldClass · 0.90
TimeStampFieldClass · 0.90
UTCTimeFieldClass · 0.90
PacketFieldClass · 0.90
ShortFieldClass · 0.90
NBytesFieldClass · 0.90
PacketListFieldClass · 0.90
ErrorEstimateClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…