From 566d17f731637df6828bdf32502a0fb123882dbe Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 9 Oct 2003 11:41:45 +0000 Subject: Initial import --- .../fancydress/type3/routing/RoutingDROP.java | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/org/noreply/fancydress/type3/routing/RoutingDROP.java (limited to 'src/org/noreply/fancydress/type3/routing/RoutingDROP.java') 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; + } +} + -- cgit v1.2.3