openflow_input: add subclasses for port_mod_prop
of_port_mod_prop_optical has a signed member which we don't currently support.
diff --git a/openflow_input/standard-1.4 b/openflow_input/standard-1.4
index 2f495ed..9b923af 100644
--- a/openflow_input/standard-1.4
+++ b/openflow_input/standard-1.4
@@ -832,6 +832,22 @@
uint16_t length; /* Length in bytes of this property. */
};
+struct of_port_mod_prop_ethernet : of_port_mod_prop {
+ uint16_t type == 0;
+ uint16_t length;
+ uint32_t advertise;
+};
+
+struct of_port_mod_prop_optical : of_port_mod_prop {
+ uint16_t type == 1;
+ uint16_t length;
+ uint32_t configure;
+ uint32_t freq_ldma;
+ uint32_t fl_offset; /* TODO signed */
+ uint32_t grid_span;
+ uint32_t tx_pwr;
+};
+
struct of_port_mod : of_header {
uint8_t version;
uint8_t type == 16;