summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/routing/RoutingDROP.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingDROP.java')
-rw-r--r--src/org/noreply/fancydress/type3/routing/RoutingDROP.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/org/noreply/fancydress/type3/routing/RoutingDROP.java b/src/org/noreply/fancydress/type3/routing/RoutingDROP.java
new file mode 100644
index 0000000..942a640
--- /dev/null
+++ b/src/org/noreply/fancydress/type3/routing/RoutingDROP.java
@@ -0,0 +1,39 @@
+package org.noreply.fancydress.type3.routing;
+
+/**
+ * The DROP routing as specified in the type III spec.
+ *
+ * DROP packets are dropped by the handling server. Their purpose
+ * is to generate dummy traffic.
+ *
+ * The payload of a DROP packet should be random garbage.
+ */
+public class RoutingDROP extends RoutingDestination {
+
+ /**
+ * Construct a DROP routing.
+ */
+ public RoutingDROP() {
+ super (RoutingType.DROP);
+ }
+
+ /**
+ * Return the total length in octets of the routing information.
+ *
+ * @return total length in octets of the routing information
+ */
+ public int getRoutingInformationLength() {
+ return 0;
+ }
+
+ /**
+ * Get the routing type of this instance.
+ *
+ * @return routing type
+ */
+ public byte[] getRoutingInformation() {
+ byte[] result = {};
+ return result;
+ }
+}
+