Skip to content

Commit

Permalink
Path interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilmann Zäschke committed Jun 10, 2024
1 parent 265d6bd commit 993244e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/scion/jpan/AbstractDatagramChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ protected void buildHeader(
rawPath.length,
srcIA,
srcAddress.getAddress(),
path.getIsdAs(),
path.getRemoteIsdAs(),
path.getRemoteAddress().getAddress(),
hdrType,
cfgTrafficClass);
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/org/scion/jpan/Path.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public interface Path {

long getRemoteIsdAs();

/**
* @return ISD/AS of the remote host.
*/
long getIsdAs();

@Override
String toString();
}
2 changes: 1 addition & 1 deletion src/main/java/org/scion/jpan/ScionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public List<RequestPath> getPaths(long dstIsdAs, InetSocketAddress dstScionAddre
* @return All paths returned by the path service.
*/
public List<RequestPath> getPaths(RequestPath path) {
return getPaths(path.getIsdAs(), path.getRemoteAddress(), path.getRemotePort());
return getPaths(path.getRemoteIsdAs(), path.getRemoteAddress(), path.getRemotePort());
}

/**
Expand Down

0 comments on commit 993244e

Please sign in to comment.