~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to include/openflow/openflow-1.0.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 * 0xff00...0xfff7  "reserved" but not assigned a meaning by OpenFlow 1.0
29
29
 * 0xfff8...0xffff  "reserved" OFPP_* ports with assigned meanings
30
30
 */
31
 
enum ofp_port {
32
 
    /* Ranges. */
33
 
    OFPP_MAX        = 0xff00,   /* Maximum number of physical switch ports. */
34
 
    OFPP_FIRST_RESV = 0xfff8,   /* First assigned reserved port number. */
35
 
    OFPP_LAST_RESV  = 0xffff,   /* Last assigned reserved port number. */
36
 
 
37
 
    /* Reserved output "ports". */
38
 
    OFPP_IN_PORT    = 0xfff8,  /* Send the packet out the input port.  This
39
 
                                  virtual port must be explicitly used
40
 
                                  in order to send back out of the input
41
 
                                  port. */
42
 
    OFPP_TABLE      = 0xfff9,  /* Perform actions in flow table.
43
 
                                  NB: This can only be the destination
44
 
                                  port for packet-out messages. */
45
 
    OFPP_NORMAL     = 0xfffa,  /* Process with normal L2/L3 switching. */
46
 
    OFPP_FLOOD      = 0xfffb,  /* All physical ports except input port and
47
 
                                  those disabled by STP. */
48
 
    OFPP_ALL        = 0xfffc,  /* All physical ports except input port. */
49
 
    OFPP_CONTROLLER = 0xfffd,  /* Send to controller. */
50
 
    OFPP_LOCAL      = 0xfffe,  /* Local openflow "port". */
51
 
    OFPP_NONE       = 0xffff   /* Not associated with a physical port. */
52
 
};
 
31
 
 
32
/* Ranges. */
 
33
#define OFPP_MAX        OFP_PORT_C(0xff00) /* Max # of switch ports. */
 
34
#define OFPP_FIRST_RESV OFP_PORT_C(0xfff8) /* First assigned reserved port. */
 
35
#define OFPP_LAST_RESV  OFP_PORT_C(0xffff) /* Last assigned reserved port. */
 
36
 
 
37
/* Reserved output "ports". */
 
38
#define OFPP_IN_PORT    OFP_PORT_C(0xfff8) /* Where the packet came in. */
 
39
#define OFPP_TABLE      OFP_PORT_C(0xfff9) /* Perform actions in flow table. */
 
40
#define OFPP_NORMAL     OFP_PORT_C(0xfffa) /* Process with normal L2/L3. */
 
41
#define OFPP_FLOOD      OFP_PORT_C(0xfffb) /* All ports except input port and
 
42
                                            * ports disabled by STP. */
 
43
#define OFPP_ALL        OFP_PORT_C(0xfffc) /* All ports except input port. */
 
44
#define OFPP_CONTROLLER OFP_PORT_C(0xfffd) /* Send to controller. */
 
45
#define OFPP_LOCAL      OFP_PORT_C(0xfffe) /* Local openflow "port". */
 
46
#define OFPP_NONE       OFP_PORT_C(0xffff) /* Not associated with any port. */
53
47
 
54
48
/* OpenFlow 1.0 specific capabilities supported by the datapath (struct
55
49
 * ofp_switch_features, member capabilities). */