net.floodlightcontroller.packet
Class BasePacket
java.lang.Object
   net.floodlightcontroller.packet.BasePacket
net.floodlightcontroller.packet.BasePacket
- All Implemented Interfaces: 
- IPacket
- Direct Known Subclasses: 
- ARP, BPDU, BSN, BSNPROBE, Data, DHCP, Ethernet, ICMP, IPv4, LLC, LLDP, TCP, UDP
- public abstract class BasePacket 
- extends java.lang.Object- implements IPacket
- Author:
- David Erickson (daviderickson@cs.stanford.edu)
 
 
 
| Methods inherited from class java.lang.Object | 
| finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
 
 
log
public static final org.slf4j.Logger log
parent
protected IPacket parent
payload
protected IPacket payload
BasePacket
public BasePacket()
getParent
public IPacket getParent()
- 
- Specified by:
- getParentin interface- IPacket
 
- 
- Returns:
- the parent
 
setParent
public IPacket setParent(IPacket parent)
- 
- Specified by:
- setParentin interface- IPacket
 
- 
- Parameters:
- parent- the parent to set
- Returns:
 
getPayload
public IPacket getPayload()
- 
- Specified by:
- getPayloadin interface- IPacket
 
- 
- Returns:
- the payload
 
setPayload
public IPacket setPayload(IPacket payload)
- 
- Specified by:
- setPayloadin interface- IPacket
 
- 
- Parameters:
- payload- the payload to set
- Returns:
 
resetChecksum
public void resetChecksum()
- Description copied from interface: IPacket
- Reset any checksums as needed, and call resetChecksum on all parents
 
- 
- Specified by:
- resetChecksumin interface- IPacket
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- java.lang.Object
 
- 
 
equals
public boolean equals(java.lang.Object obj)
- 
- Overrides:
- equalsin class- java.lang.Object
 
- 
 
clone
public java.lang.Object clone()
- Description copied from interface: IPacket
- Clone this packet and its payload packet but not its parent.
 
- 
- Specified by:
- clonein interface- IPacket
- Overrides:
- clonein class- java.lang.Object
 
- 
- Returns: