public class SfcIpv4PacketInHandler extends Object implements org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener, AutoCloseable
Since a TCP Proxy SF will generate packets, the SFF wont know what to do with them unless we add the above rules. Upon receiving a TCP Syn from the client, the SF will establish a connection with the client (send TCP SynAck to client), and then establish a separate connection with the server (send TCP Syn to server).
Modifier and Type | Field and Description |
---|---|
static int |
ETHERTYPE_IPV4 |
Constructor and Description |
---|
SfcIpv4PacketInHandler(SfcOfFlowProgrammerImpl flowProgrammer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getBufferSize() |
int |
getMaxBufferTime() |
int |
getPacketCountPurge() |
void |
onPacketReceived(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packetIn)
The handler function for IPv4 PktIn packets.
|
void |
setMaxBufferTime(int maxBufferTime) |
void |
setPacketCountPurge(int packetCountPurge) |
public static final int ETHERTYPE_IPV4
public SfcIpv4PacketInHandler(SfcOfFlowProgrammerImpl flowProgrammer)
public int getMaxBufferTime()
public void setMaxBufferTime(int maxBufferTime)
public int getPacketCountPurge()
public void setPacketCountPurge(int packetCountPurge)
public int getBufferSize()
public void onPacketReceived(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packetIn)
onPacketReceived
in interface org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener
packetIn
- The incoming packet.public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2017 OpenDaylight. All rights reserved.