Connection management functions

Functions for managing a connection. More...

Classes

struct  ore_connection_configuration
 ORe connection configuration

Used to configure an ORe connection during l4ore_open() and later on using l4ore_get_config() and l4ore_set_config(). More...


Typedefs

typedef struct
ore_connection_configuration 
l4ore_config
 ORe connection configuration

Used to configure an ORe connection during l4ore_open() and later on using l4ore_get_config() and l4ore_set_config().


Functions

L4_CV int l4ore_open (char *device, unsigned char mac[6], l4ore_config *conf)
 Open a connection to ORe.
L4_CV void l4ore_close (int handle)
 Close connection.
L4_CV void l4ore_set_config (int handle, l4ore_config *conf)
 Set configuration for connection. Note that ro values in the connection descriptor will be ignored.
L4_CV l4ore_config l4ore_get_config (int handle)
 Get configuration for connection.
L4_INLINE int l4ore_is_invalid_config (l4ore_config)
 Check if config is valid.

Detailed Description

Functions for managing a connection.


Function Documentation

L4_CV void l4ore_close ( int  handle  ) 

Close connection.

Parameters:
handle Connection handle.

Definition at line 214 of file lib.c.

L4_CV l4ore_config l4ore_get_config ( int  handle  ) 

Get configuration for connection.

Parameters:
handle connection handle
Returns:
The current configuration info for this channel.

Definition at line 38 of file debug.c.

L4_CV int l4ore_open ( char *  device,
unsigned char  mac[6],
l4ore_config conf 
)

Open a connection to ORe.

Parameters:
device name of the device to open (e.g. "eth0")
Returns:
mac Space for MAC address provided by server
Parameters:
conf initial configuration for this connection
Returns:
connection handle <0 for failure

Definition at line 80 of file lib.c.

L4_CV void l4ore_set_config ( int  handle,
l4ore_config conf 
)

Set configuration for connection. Note that ro values in the connection descriptor will be ignored.

Parameters:
handle connection handle
new_desc new connection configuration

Definition at line 56 of file debug.c.


Generated on Wed Apr 11 06:37:32 2012 for ORe - a software network switch for L4 by  doxygen 1.5.6