es.tid.rsvp.objects.FlowLabelSenderTemplateIPv6 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.rsvp.objects;
/*
* FIXME: TODO
-
RFC 2205 RSVP September 1997
A.10 SENDER_TEMPLATE Class
SENDER_TEMPLATE class = 11.
o IPv4 SENDER_TEMPLATE object: Class = 11, C-Type = 1
Definition same as IPv4/UDP FILTER_SPEC object.
o IPv6 SENDER_TEMPLATE object: Class = 11, C-Type = 2
Definition same as IPv6/UDP FILTER_SPEC object.
o IPv6 Flow-label SENDER_TEMPLATE object: Class = 11, C-Type =
3
*
*/
public class FlowLabelSenderTemplateIPv6 extends SenderTemplate{
public FlowLabelSenderTemplateIPv6() {
classNum = 11;
cType = 3;
}
public FlowLabelSenderTemplateIPv6(byte[] bytes, int offset){
super(bytes,offset);
decode();
}
/*
0 1 2 3
+-------------+-------------+-------------+-------------+
| Length (bytes) | Class-Num | C-Type |
+-------------+-------------+-------------+-------------+
| |
// (Object contents) //
| |
+-------------+-------------+-------------+-------------+
*/
@Override
public void encode() {
length = 4;
bytes = new byte[length];
encodeHeader();
}
@Override
public void decode() {
// FIXME
}
}