def encode(p, a = %Attribute.XORMappedAddress{}) do
encode_(0x0020, Attribute.XORMappedAddress.encode(p, a))
end
def decode(params, 0x0020, v) do
Attribute.XORMappedAddress.decode params, v
end
This task is about adding one clause to each of these functions, and creating a module with functions responsible for encoding and decoding Lifetime attribute's value, similar to what XORMappedAddress module does.
In https://tools.ietf.org/html/rfc5389#page-10 there is:
This task is about adding one clause to each of these functions, and creating a module with functions responsible for encoding and decoding Lifetime attribute's value, similar to what
XORMappedAddress
module does.More info: