From e4a8ebcb70eff854ecf9e2aa2fb9020f253a5fd5 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 15 Oct 2003 15:24:13 +0000 Subject: Leg's and Packet's routing information is of type RoutingForward --- src/org/noreply/fancydress/type3/Packet.java | 2 +- src/org/noreply/fancydress/type3/SingleLeg.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/org/noreply/fancydress/type3/Packet.java b/src/org/noreply/fancydress/type3/Packet.java index dfe9b55..1699375 100644 --- a/src/org/noreply/fancydress/type3/Packet.java +++ b/src/org/noreply/fancydress/type3/Packet.java @@ -10,7 +10,7 @@ import java.util.*; public class Packet { private byte[] packet; - private Routing thisRoute; + private RoutingForward thisRoute; public Packet( Path path, diff --git a/src/org/noreply/fancydress/type3/SingleLeg.java b/src/org/noreply/fancydress/type3/SingleLeg.java index fe138b7..0da3a1e 100644 --- a/src/org/noreply/fancydress/type3/SingleLeg.java +++ b/src/org/noreply/fancydress/type3/SingleLeg.java @@ -11,7 +11,7 @@ public abstract class SingleLeg { public static final int MIN_SH = 42; /* length of the invariant part of a subheader */ public static final int SINGLE_HEADER_LEN = 2048; /* length of the invariant part of a subheader */ private byte[] thisLeg = null; - private Routing thisRoute = null; + private RoutingForward thisRoute = null; public static final int MAJOR_VERSION = 0; public static final int MINOR_VERSION = 3; @@ -93,7 +93,8 @@ public abstract class SingleLeg { byte[] result = subHeader[0]; thisLeg = result; - thisRoute = hops[0].getRouting(); + /* FIXME: do some clever thing if hops[0] is not a routing forward */ + thisRoute = (RoutingForward) hops[0].getRouting(); } @@ -138,7 +139,7 @@ public abstract class SingleLeg { return Util.concat(fixedPart, dynamicPart); } - public Routing getRoute() { + public RoutingForward getRoute() { return thisRoute; } } -- cgit v1.2.3