static { registry.put(LINUX_SLL_HOST.value(), LINUX_SLL_HOST); registry.put(LINUX_SLL_BROADCAST.value(), LINUX_SLL_BROADCAST); registry.put(LINUX_SLL_MULTICAST.value(), LINUX_SLL_MULTICAST); registry.put(LINUX_SLL_OTHERHOST.value(), LINUX_SLL_OTHERHOST); registry.put(LINUX_SLL_OUTGOING.value(), LINUX_SLL_OUTGOING); }
@Override public int compareTo(LinuxSllPacketType o) { return value().compareTo(o.value()); }
/** * @param type * @return a EtherType object. */ public static LinuxSllPacketType register(LinuxSllPacketType type) { return registry.put(type.value(), type); }