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

Class NTPPrivatePktTail

scapy/layers/ntp.py:1600–1613  ·  view source on GitHub ↗

include/ntp_request.h The req_pkt_tail structure is used by ntpd to adjust for different packet sizes that may arrive.

Source from the content-addressed store, hash-verified

1598
1599
1600class NTPPrivatePktTail(Packet):
1601 """
1602 include/ntp_request.h
1603 The req_pkt_tail structure is used by ntpd to adjust for different
1604 packet sizes that may arrive.
1605 """
1606
1607 name = "req_pkt_tail"
1608 fields_desc = [
1609 TimeStampField("tstamp", 0),
1610 IntField("key_id", 0),
1611 XStrFixedLenField(
1612 "dgst", "", length_from=lambda x: _NTP_AUTH_MD5_DGST_SIZE)
1613 ]
1614
1615
1616class NTPPrivate(NTP):

Callers

nothing calls this directly

Calls 3

IntFieldClass · 0.90
XStrFixedLenFieldClass · 0.90
TimeStampFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…