org.openflow.protocol
Class Match

java.lang.Object
  extended by org.openflow.protocol.Match

public class Match
extends java.lang.Object

Fields to match against flows. Equivalent to ofp_match.

Author:
David Underhill

Field Summary
 byte[] dl_dst
          Ethernet destination address
 byte[] dl_src
          Ethernet source address
 short dl_type
          Ethernet frame type
 short dl_vlan
          Input VLAN
 short in_port
          Input switch port
static Match MATCH_ALL
          a Match which matches all fields
 int nw_dst
          IP destination address
 byte nw_proto
          IP protocol
 int nw_src
          IP source address
static int SIZEOF
          size of the data contained in this object in bytes
 short tp_dst
          TCP/UDP destination port
 short tp_src
          TCP/UDP source port
 FlowWildcards wildcards
          Wildcard fields
 
Constructor Summary
Match()
          Constructs fully wildcarded match.
Match(java.io.DataInput in)
          used to construct a message being received
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SIZEOF

public static int SIZEOF
size of the data contained in this object in bytes


MATCH_ALL

public static final Match MATCH_ALL
a Match which matches all fields


wildcards

public FlowWildcards wildcards
Wildcard fields


in_port

public short in_port
Input switch port


dl_src

public final byte[] dl_src
Ethernet source address


dl_dst

public final byte[] dl_dst
Ethernet destination address


dl_vlan

public short dl_vlan
Input VLAN


dl_type

public short dl_type
Ethernet frame type


nw_proto

public byte nw_proto
IP protocol


nw_src

public int nw_src
IP source address


nw_dst

public int nw_dst
IP destination address


tp_src

public short tp_src
TCP/UDP source port


tp_dst

public short tp_dst
TCP/UDP destination port

Constructor Detail

Match

public Match()
Constructs fully wildcarded match.


Match

public Match(java.io.DataInput in)
      throws java.io.IOException
used to construct a message being received

Throws:
java.io.IOException
Method Detail

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object