Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class fi.hut.tcm.jacob.tcpip.ip.IpRoutingMessenger

java.lang.Object
  |
  +--fi.hut.tcm.jacob.conduits.BufferMessenger
        |
        +--fi.hut.tcm.jacob.tcpip.ip.IpMessenger
              |
              +--fi.hut.tcm.jacob.tcpip.ip.IpRoutingMessenger
Subclasses:
IpRoutingFromNetMessenger, IpRoutingToNetMessenger

public abstract class IpRoutingMessenger
extends fi.hut.tcm.jacob.tcpip.ip.IpMessenger
IpRoutingMessenger This is the superclass of IpRoutingToNetMessenger and IpRoutingFromNetMessenger capturing their common methods. Provides the methods: 1. setNextHopIpAddr() Retreives the next hop IP address based on the packet's destination address, and puts it into the message's OutOfBand data. 2. destinationLocal() Tells whether the destination IP address is one of our local addresses. 3. decrementTTL() Decrements the TTL field in the IP header, and returns the new value.


Constructor Summary
IpRoutingMessenger()
           
 
Method Summary
int decrementTTL(fi.hut.tcm.jacob.conduits.Message message)
           
boolean destinationLocal(fi.hut.tcm.jacob.conduits.Message message, fi.hut.tcm.jacob.conduits.Session session)
           
void setInterfaceId(fi.hut.tcm.jacob.conduits.Message message, java.lang.String id)
           
void setNextHopIpAddr(fi.hut.tcm.jacob.conduits.Message message, int ipAddr)
           
 
Methods inherited from class fi.hut.tcm.jacob.tcpip.ip.IpMessenger
getChecksum, getDestIpAddr, getFlags, getFragOffs, getHLen, getIdentification, getProtocolId, getServiceType, getSrcIpAddr, getTotalLength, getTTL, getVers, setChecksum, setDestIpAddr, setFlags, setFragOffs, setHLen, setIdentification, setProtocolId, setServiceType, setSrcIpAddr, setTotalLength, setTTL, setVers
 
Methods inherited from class fi.hut.tcm.jacob.conduits.BufferMessenger
appendTrailer, copyBuffer, copyData, extractData, get6BytesUnaligned, getBit, getByte, getHalfByte, getInt, getIntUnaligned, getLength, getLong, getLongUnaligned, getShort, getShortUnaligned, hexDump, hexDump, newBuffer, newBuffer, newBuffer, prependHeader, removeHeader, removeTrailer, set6BytesUnaligned, setBit, setByte, setHalfByte, setInt, setIntUnaligned, setLong, setLongUnaligned, setShort, setShortUnaligned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

IpRoutingMessenger

public IpRoutingMessenger()
Method Detail

setNextHopIpAddr

public void setNextHopIpAddr(fi.hut.tcm.jacob.conduits.Message message,
                             int ipAddr)

setInterfaceId

public void setInterfaceId(fi.hut.tcm.jacob.conduits.Message message,
                           java.lang.String id)

destinationLocal

public boolean destinationLocal(fi.hut.tcm.jacob.conduits.Message message,
                                fi.hut.tcm.jacob.conduits.Session session)

decrementTTL

public int decrementTTL(fi.hut.tcm.jacob.conduits.Message message)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD