summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/routing/RoutingDROP.java
blob: 942a64000186804f2fce8a0fae1e1e200b56850c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
	}
}