Пример #1
0
 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);
 }
Пример #2
0
 @Override
 public int compareTo(LinuxSllPacketType o) {
   return value().compareTo(o.value());
 }
Пример #3
0
 /**
  * @param type
  * @return a EtherType object.
  */
 public static LinuxSllPacketType register(LinuxSllPacketType type) {
   return registry.put(type.value(), type);
 }