[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Config mode questions
>
> For a Request/Reply exchange in Config mode:
>
> 1. If the gateway wants to send its response to an INTERNAL_IP4_SUBNET
> attribute request how the response will be sent for both
> subnet and mask if
> the attribute length is mentioned into RFC to be 0 or 4
> octets for this
> attribute. How do you specify the mask for the subnet protected?
The Reply message will contain 2 attributes: INTERNAL_IP4_SUBNET and
INTERNAL_IP4_NETMASK.
>
> 2. APPLICATION_VERSION attribute can be 0 length or more. Is this one
> required to be multiple of 2 or 4 octets? If not, when someone request
> SUPPORTED_ATTRIBUTES, the result should be multiple of 2
> (which might not be
> in case your APPLICATION_VERSION is 7 bytes length for example)
>
I think you misunderstood the text describing SUPPORTED_ATTRIBUTES. The
length of the SUPPORTED_ATTRIBUTES has nothing to do with the lengths of
other attributes. The length of SUPPORTED_ATTRIBUTES = # of supported
attributes / 2; because the data portion of SUPPORTED_ATTRIBUTES is a list
of identifiers, each 2 octets in length.
> 3. Are the attributes required to be aligned at 4 bytes?
>
I think IKE-Cfg follows the general rules of any attribute payload. I don't
believe there is any such requirement, but I could be wrong.
> Thanks in advance.
>