Changeset 3315
- Timestamp:
- 08/02/08 19:39:23 (5 years ago)
- Location:
- branch/UMPA/umpa/protocols
- Files:
-
- 2 modified
-
IP.py (modified) (1 diff)
-
_protocols.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branch/UMPA/umpa/protocols/IP.py
r3314 r3315 201 201 datagrams. See RFC 791 for more.") 202 202 203 def _is_valid(self, name):204 """Check if attribute is allowed."""205 return self._fields.has_key(name)206 207 203 def _raw(self, protocol_container, protocol_bits): 208 204 bit = 0 -
branch/UMPA/umpa/protocols/_protocols.py
r3313 r3315 141 141 142 142 def _is_valid(self, field): 143 """ Overload it in subclasses."""144 r aise NotImplementedError143 """Check if attribute is allowed.""" 144 return self._fields.has_key(name) 145 145 146 146 def get_offset(self, field):
