pcap.codec.icmp.icmp6.Icmp6RouterSolicitation 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 Icmp6RouterSolicitation extends Icmp.IcmpTypeAndCode {
public static final Icmp6RouterSolicitation ROUTER_SOLICITATION =
new Icmp6RouterSolicitation((byte) 0, "Router solicitation");
protected Icmp6RouterSolicitation(Byte code, String name) {
super((byte) 133, code, name);
}
/**
* Add new {@link Icmp6RouterSolicitation} to registry.
*
* @param code icmp type code.
* @param name icmp type name.
* @return returns {@link Icmp6RouterSolicitation}.
*/
public static Icmp6RouterSolicitation register(Byte code, String name) {
return new Icmp6RouterSolicitation(code, name);
}
@Override
public String toString() {
return super.toString();
}
static {
Icmp.IcmpTypeAndCode.ICMP6_REGISTRY.add(ROUTER_SOLICITATION);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy