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

Function _len

scapy/layers/smb.py:309–314  ·  view source on GitHub ↗

Returns the length of a field, works with Unicode strings.

(pkt, name)

Source from the content-addressed store, hash-verified

307
308
309def _len(pkt, name):
310 """
311 Returns the length of a field, works with Unicode strings.
312 """
313 fld, v = pkt.getfield_and_val(name)
314 return len(fld.addfield(pkt, v, b""))
315
316
317class _SMBNegotiate_Response(Packet):

Callers 1

Calls 2

getfield_and_valMethod · 0.45
addfieldMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…