Book Image

OpenFlow Cookbook

Book Image

OpenFlow Cookbook

Overview of this book

Table of Contents (17 chapters)
16
Index

Experimenter multipart messages

When the switch wants to send experimenter-specific multipart message, it should send an OFPMP_EXPERIMENTER multipart message (ofp_multipart_request) to controller.

How to do it...

The message format that should be used by the switch for forming the multipart message is defined in the Introduction section of Chapter 5, Handling Multipart Statistics Messages (Part 1).

The body field should be filled with the following structure:

/* Body for ofp_multipart_request/reply of type * OFPMP_EXPERIMENTER. */
struct ofp_experimenter_multipart_header {
uint32_t experimenter; /* Experimenter ID. */
uint32_t exp_type;     /* Experimenter defined. */
/* Experimenter-defined arbitrary additional data. */
};

The experimenter field should be filled with an experimenter ID and the exp_type field should be filled with an experimenter type.

The body field could be filled with experimenter-defined values.