summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/SingleLeg.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/noreply/fancydress/type3/SingleLeg.java')
-rw-r--r--src/org/noreply/fancydress/type3/SingleLeg.java7
1 files changed, 4 insertions, 3 deletions
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;
}
}