(self, attr)
| 284 | self.setfieldval(k, value) |
| 285 | |
| 286 | def getfieldval(self, attr): |
| 287 | # Ease compatibility with _NTLMPayloadField |
| 288 | try: |
| 289 | return super(_NTLMPayloadPacket, self).getfieldval(attr) |
| 290 | except AttributeError: |
| 291 | try: |
| 292 | return next( |
| 293 | x[1] |
| 294 | for x in super(_NTLMPayloadPacket, self).getfieldval( |
| 295 | self._NTLM_PAYLOAD_FIELD_NAME |
| 296 | ) |
| 297 | if x[0] == attr |
| 298 | ) |
| 299 | except StopIteration: |
| 300 | raise AttributeError(attr) |
| 301 | |
| 302 | def getfield_and_val(self, attr): |
| 303 | # Ease compatibility with _NTLMPayloadField |
no outgoing calls
no test coverage detected