Get rid of OFP_MAXLEN.
Statistics or vendor extensions can fill up the whole 64 kB.
This commit is contained in:
@@ -60,11 +60,6 @@
|
||||
#define OFP_PACKED /* SWIG doesn't understand __attribute. */
|
||||
#endif
|
||||
|
||||
/* Maximum length of a OpenFlow packet. */
|
||||
#define OFP_MAXLEN (sizeof(struct ofp_switch_features) \
|
||||
+ (sizeof(struct ofp_phy_port) * OFPP_MAX) + 200)
|
||||
|
||||
|
||||
/* The most significant bit being set in the version field indicates an
|
||||
* experimental OpenFlow version.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -111,7 +111,7 @@ static const struct nl_policy openflow_policy[] = {
|
||||
[DP_GENL_A_DP_IDX] = { .type = NL_A_U32 },
|
||||
[DP_GENL_A_OPENFLOW] = { .type = NL_A_UNSPEC,
|
||||
.min_len = sizeof(struct ofp_header),
|
||||
.max_len = OFP_MAXLEN },
|
||||
.max_len = 65535 },
|
||||
};
|
||||
|
||||
/* Tries to receive an openflow message from the kernel on 'sock'. If
|
||||
|
||||
Reference in New Issue
Block a user