diff options
author | Peter Palfrader <peter@palfrader.org> | 2003-10-09 11:41:45 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2003-10-09 11:41:45 +0000 |
commit | 566d17f731637df6828bdf32502a0fb123882dbe (patch) | |
tree | fc09fdfb90953134fa1d25f73367307502348a22 /src/org/noreply/fancydress/type3/routing/RoutingDROP.java | |
parent | 018eea460ee32df1b70c40c2eca05f06c06daca5 (diff) |
Initial import
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingDROP.java')
-rw-r--r-- | src/org/noreply/fancydress/type3/routing/RoutingDROP.java | 39 |
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; + } +} + |