Changeset 939:d64575f85d44
- Timestamp:
- 10/25/08 19:15:28 (2 months ago)
- Files:
-
- scapy/fields.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
scapy/fields.py
r907 r939 435 435 if length is not None: 436 436 self.length_from = lambda pkt,length=length: length 437 def i2repr(self, pkt, v): 438 if type(v) is str: 439 v = v.rstrip("\0") 440 return repr(v) 437 441 def getfield(self, pkt, s): 438 442 l = self.length_from(pkt)