com.mobius.software.telco.protocols.diameter.primitives.rfc5777.IPOption Maven / Gradle / Ivy
package com.mobius.software.telco.protocols.diameter.primitives.rfc5777;
/*
* Mobius Software LTD
* Copyright 2023, Mobius Software LTD and individual contributors
* by the @authors tag.
*
* This program is free software: you can redistribute it and/or modify
* under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see
*/
import com.mobius.software.telco.protocols.diameter.AvpCodes;
import com.mobius.software.telco.protocols.diameter.annotations.DiameterAvpDefinition;
import com.mobius.software.telco.protocols.diameter.exceptions.MissingAvpException;
import com.mobius.software.telco.protocols.diameter.primitives.DiameterGroupedAvp;
import io.netty.buffer.ByteBuf;
/**
*
* @author yulian oifa
*
*/
/*
* 4.1.8.3. IP-Option AVP
The IP-Option AVP (AVP Code 537) is of type Grouped and specifies an
IP header option that must be matched.
IP-Option ::= < AVP Header: 537 >
{ IP-Option-Type }
* [ IP-Option-Value ]
[ Negated ]
* [ AVP ]
If one or more IP-Option-Value AVPs are present, one of the values
MUST match the value in the IP header option. If the IP-Option-Value
AVP is absent, the option type MUST be present in the IP header but
the value is wild carded.
The Negated AVP is used in conjunction with the IP-Option-Value AVPs
to specify IP header options that do not match specific values. The
Negated AVP is used without the IP-Option-Value AVP to specify IP
headers that do not contain the option type.
*/
@DiameterAvpDefinition(code = AvpCodes.IP_OPTION, vendorId = -1L, name = "IP-Option")
public interface IPOption extends DiameterGroupedAvp
{
IPOptionTypeEnum getIPOptionType();
void setIPOptionType(IPOptionTypeEnum value) throws MissingAvpException;
ByteBuf getIPOptionValue();
void setIPOptionValue(ByteBuf value);
NegatedEnum getNegated();
void setNegated(NegatedEnum value);
}