es.tid.pce.pcep.objects.EndPoints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network-protocols Show documentation
Show all versions of network-protocols Show documentation
BGP-LS,OSPF-TE,PCEP and RSVP-TE protocol encodings.
The newest version!
package es.tid.pce.pcep.objects;
/**
* Base abstract class for representing EndPoints Object.
* There are currently two implemented classes, IPv4 and IPv6, as defined in RFC 5440
*
* From RFC 5440 Section 7.6. END-POINTS Object
*
* The END-POINTS object is used in a PCReq message to specify the
* source IP address and the destination IP address of the path for
* which a path computation is requested. The P flag of the END-POINTS
* object MUST be set. If the END-POINTS object is received with the P
* flag cleared, the receiving peer MUST send a PCErr message with
* Error-Type=10 and Error-value=1. The corresponding path computation
* request MUST be cancelled by the PCE without further notification.
*
* @author Oscar Gonzalez de Dios ([email protected])
*
*/
public abstract class EndPoints extends PCEPObject{
public EndPoints(){
super();
}
public EndPoints(byte[] bytes, int offset) throws MalformedPCEPObjectException{
super(bytes, offset);
}
@Override
public int hashCode() {
return super.hashCode();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
return true;
}
}