ROFL-pipeline  v0.6.0dev
Data Structures | Typedefs | Functions
datapacket.h File Reference

Defines the common packet abstraction that a logical switch can process through its pipeline. More...

#include <stdbool.h>
#include <sys/time.h>
#include "../openflow/of_switch.h"
#include "../openflow/openflow1x/pipeline/of1x_action.h"

Go to the source code of this file.

Data Structures

union  of_write_actions
 
struct  datapacket
 Data packet abstraction. More...
 

Typedefs

typedef union of_write_actions of_write_actions_t
 
typedef void platform_datapacket_state_t
 
typedef struct datapacket datapacket_t
 Data packet abstraction. More...
 

Functions

static void __init_packet_metadata (datapacket_t *const pkt)
 

Detailed Description

Defines the common packet abstraction that a logical switch can process through its pipeline.

Author
Marc Sune<marc.sune (at) bisdn.de>

The datapacket is an OF version agnostic data packet abstraction which may also contain platform specific state (likely at least a reference to the packet buffer in the platform).

Definition in file datapacket.h.

Typedef Documentation

typedef struct datapacket datapacket_t

Data packet abstraction.

Abstraction that represents a data packet that may transverse one Logical Switch OpenFlow Pipeline. This abstraction is OpenFlow version agnostic. It contains a (void*) reference, platform_state to allow the user of the library to keep platform specific state while transversing the pipeline, which the packet mangling APIs may use afterwards.