Skip to content

Instantly share code, notes, and snippets.

@oshothebig
Created September 3, 2011 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oshothebig/1191031 to your computer and use it in GitHub Desktop.
Save oshothebig/1191031 to your computer and use it in GitHub Desktop.
ofp_header
struct ofp_header {
uint8_t version; /* OFP_VERSION. */
uint8_t type; /* One of the OFPT_ constants. */
uint16_t length; /* Length including this ofp_header. */
uint32_t xid; /* Transaction id associated with this packet.
Replies use the same id as was in the request
to facilitate pairing. */
}
OFP_ASSERT(sizeof(struct ofp_header) == 8);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment