pcap.codec.icmp.icmp6.Icmp6RouterRenumbering Maven / Gradle / Ivy
/** This code is licenced under the GPL version 2. */
package pcap.codec.icmp.icmp6;
import pcap.codec.icmp.Icmp;
import pcap.common.annotation.Inclubating;
/** @author Ardika Rommy Sanjaya */
@Inclubating
public class Icmp6RouterRenumbering extends Icmp.IcmpTypeAndCode {
public static final Icmp6RouterRenumbering ROUTER_RENUMBERING_COMMAND =
new Icmp6RouterRenumbering((byte) 0, "Router renumbering command");
public static final Icmp6RouterRenumbering ROUTER_RENUMBERING_RESULT =
new Icmp6RouterRenumbering((byte) 1, "Router renumbering result");
public static final Icmp6RouterRenumbering SEQUENCE_NUMBER_RESET =
new Icmp6RouterRenumbering((byte) 255, "Sequence number reset");
public Icmp6RouterRenumbering(Byte code, String name) {
super((byte) 138, code, name);
}
/**
* Add new {@link Icmp6RouterRenumbering} to registry.
*
* @param code icmp type code.
* @param name icmp type name.
* @return returns {@link Icmp6RouterRenumbering}.
*/
public static Icmp6RouterRenumbering register(Byte code, String name) {
return new Icmp6RouterRenumbering(code, name);
}
@Override
public String toString() {
return super.toString();
}
static {
Icmp.IcmpTypeAndCode.ICMP6_REGISTRY.add(ROUTER_RENUMBERING_COMMAND);
Icmp.IcmpTypeAndCode.ICMP6_REGISTRY.add(ROUTER_RENUMBERING_RESULT);
Icmp.IcmpTypeAndCode.ICMP6_REGISTRY.add(SEQUENCE_NUMBER_RESET);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy