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