es.tid.ospf.ospfv2.OSPFv2HelloPacket 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.ospf.ospfv2;
public class OSPFv2HelloPacket extends OSPFv2Packet{
public OSPFv2HelloPacket(){
super();
this.setType(OSPFPacketTypes.OSPFv2_HELLO_PACKET);
}
public OSPFv2HelloPacket(byte[] bytes, int offset){
super(bytes,offset);
}
@Override
public String toString() {
// TODO Auto-generated method stub
return "Hello packet";
}
@Override
public void encode() {
int len=24;//Header bytes
this.setLength(len);
this.bytes=new byte[this.getLength()];
this.encodeOSPFV2PacketHeader();
}
}