Package Peach :: Package Generators :: Module stun :: Class StunReflectedFromAttribute
[hide private]

Class StunReflectedFromAttribute

source code


REFLECTED-FROM

The REFLECTED-FROM attribute is present only in Binding Responses, when the Binding Request contained a RESPONSE-ADDRESS attribute. The attribute contains the identity (in terms of IP address) of the source where the request came from. Its purpose is to provide traceability, so that a STUN server cannot be used as a reflector for denial-of-service attacks.

Its syntax is identical to the MAPPED-ADDRESS attribute

Instance Methods [hide private]
 
__init__(self, group, port, address, family=0x01) source code

Inherited from StunMappedAddressAttribute: next, reset

Inherited from StunMappedAddressAttribute (private): _getValue

Inherited from StunAttribute: getRawValue

Class Variables [hide private]

Inherited from StunMappedAddressAttribute (private): _address, _empty, _family, _port

Inherited from StunAttribute: CHANGED_ADDRESS, CHANGE_REQUEST, ERROR_CODE, MAPPED_ADDRESS, MESSAGE_INTEGRITY, PASSWORD, REFLECTED_FROM, RESPONSE_ADDRESS, SOURCE_ADDRESS, UNKNOWN_ATTRIBUTES, USERNAME

Inherited from StunAttribute (private): _generator, _length, _type

Method Details [hide private]

__init__(self, group, port, address, family=0x01)
(Constructor)

source code 
Parameters:
  • group (Group) - Group to use
  • family (Generator) - Family (defaults to 0x01 IPV4)
  • port (Generator) - Port number
  • address (Generator) - 32bit IPv4 address
Overrides: StunAttribute.__init__