X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-util.h;h=2e3fb3a40aeba0b6898a597b9a0e62bffdb443fd;hb=751c778501b0e0726cc0c715f3ad2628c19ba0bb;hp=bf2ae07ba7639fb29d50413ecae19b07d3f51244;hpb=31a19d69db3f8058257c47f986ec908571b263e7;p=sliver-openvswitch.git diff --git a/lib/ofp-util.h b/lib/ofp-util.h index bf2ae07ba..2e3fb3a40 100644 --- a/lib/ofp-util.h +++ b/lib/ofp-util.h @@ -314,12 +314,15 @@ const char *ofputil_packet_in_reason_to_string(enum ofp_packet_in_reason); bool ofputil_packet_in_reason_from_string(const char *, enum ofp_packet_in_reason *); -/* Abstract packet-out message. */ +/* Abstract packet-out message. + * + * ofputil_decode_packet_out() will ensure that 'in_port' is a physical port + * (OFPP_MAX or less) or one of OFPP_LOCAL, OFPP_NONE, or OFPP_CONTROLLER. */ struct ofputil_packet_out { const void *packet; /* Packet data, if buffer_id == UINT32_MAX. */ size_t packet_len; /* Length of packet data in bytes. */ uint32_t buffer_id; /* Buffer id or UINT32_MAX if no buffer. */ - uint16_t in_port; /* Packet's input port or OFPP_NONE. */ + uint16_t in_port; /* Packet's input port. */ union ofp_action *actions; /* Actions. */ size_t n_actions; /* Number of elements in 'actions' array. */ };