MCPcopy Index your code
hub / github.com/secdev/scapy / do_dissect

Method do_dissect

scapy/layers/ldap.py:956–967  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

954 )
955
956 def do_dissect(self, x):
957 # Note: Windows builds this packet with a buggy sequence size, that does not
958 # include the optional fields. Do another pass of dissection on the optionals.
959 s = super(LDAP_ExtendedResponse, self).do_dissect(x)
960 if not s:
961 return s
962 for obj in self.ASN1_root.seq[-2:]: # only on the 2 optional fields
963 try:
964 s = obj.dissect(self, s)
965 except ASN1F_badsequence:
966 break
967 return s
968
969
970# RFC 4511 sect 4.1.11

Callers

nothing calls this directly

Calls 1

dissectMethod · 0.45

Tested by

no test coverage detected