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