msvcs_flow.h File Reference

Functions to support registration of flow types from plugins. More...


Data Structures

struct  msvcs_flow_params_s
 Flow parameters used for flow operations. More...
struct  msvcs_flow_sel_ipv4_s
 Flow selectors for IPV4 flow type. More...

Constants used by flow type params.

#define MSVCS_FLOW_MAX_SEL_SIZE   512
 Maximum selector size supported by MP SDK framework.
#define MSVCS_FLOW_TYPE_NAME_MAX_LEN   32
 Flow type maximum name length.
#define MSVCS_FLOW_HASH_INVALID   0xFFFFFFFF
 Invalid value for hash.
#define MSVCS_FLOW_FLAG_FORWARD_FLOW   0x0001
 Matched flow is forward.
#define MSVCS_FLOW_FLAG_REVERSE_FLOW   0x0002
 Matched flow is reverse.
#define MSVCS_FLOW_FLAG_ACTION_DROP   0x0004
 Matched flow has drop action.
#define MSVCS_FLOW_FLAG_ACTION_REJECT   0x0008
 Matched flow has reject action.

Typedefs

typedef enum msvcs_flow_type_ msvcs_flow_type_id_t
 Type for the flow type.
typedef msvcs_flow_s msvcs_flow_t
 Forward declaration for flow.
typedef msvcs_flow_params_s msvcs_flow_params_t
 Flow parameters used for flow operations.
typedef msvcs_flow_sel_ipv4_s msvcs_flow_sel_ipv4_t
 Flow selectors for IPV4 flow type.

Enumerations

enum  { FTF_EXPLICIT_HASH = 0x1 }
 Flags used by flow type parameters. More...
enum  msvcs_flow_type_ {
  MSVCS_FLOW_TYPE_UNKNOWN = 0, MSVCS_FLOW_TYPE_IPV4 = 1, MSVCS_FLOW_TYPE_IPACTV4 = 2, MSVCS_FLOW_TYPE_RSVD = 3,
  MSVCS_FLOW_TYPE_MAX = 16
}
 Flow types for predefined flows created by MP SDK framework. More...

Functions

msvcs_flow_tmsvcs_flow_find (msvcs_flow_params_t *flow_params)
 Look up a flow based on the selector.


Detailed Description

Functions to support registration of flow types from plugins.

This file provides the necessary functions that let plugins operate on flows. The following things are supported:


Typedef Documentation

typedef struct msvcs_flow_sel_ipv4_s msvcs_flow_sel_ipv4_t
 

Flow selectors for IPV4 flow type.

This can also be used by new flow types.


Enumeration Type Documentation

anonymous enum
 

Flags used by flow type parameters.

Enumerator:
FTF_EXPLICIT_HASH  Request a hash value to be computed.

enum msvcs_flow_type_
 

Flow types for predefined flows created by MP SDK framework.

Enumerator:
MSVCS_FLOW_TYPE_UNKNOWN  Reserved, internal use.
MSVCS_FLOW_TYPE_IPV4  IPV4 flow type.
MSVCS_FLOW_TYPE_IPACTV4  IP Action V4 flow type.
MSVCS_FLOW_TYPE_MAX  Maximum flow types.


Function Documentation

msvcs_flow_t* msvcs_flow_find msvcs_flow_params_t flow_params  ) 
 

Look up a flow based on the selector.

Parameters:
[in] flow_params Parameters needed for flow lookup. On a successful find, fp_session_id, fp_session are filled in the flow parameters.
Returns:
Returns a valid flow on success; NULL on failure.


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:24:53 2010 for libmsp-svcs by Doxygen 1.4.5