msp_pkt_utils.h File Reference

Utility APIs for packets on the MS-PIC. More...


Return codes for @c msp_reinject_packet() API.

#define MSP_REINJ_PKT_SESSION_INVALID   -100
 Indicates that the session is not in OPEN state.

Functions

int msp_reinject_packet (msvcs_session_t *session, struct jbuf *jb)
 Reinjects a jbuf into the service chain.


Detailed Description

Utility APIs for packets on the MS-PIC.


Function Documentation

int msp_reinject_packet msvcs_session_t session,
struct jbuf *  jb
 

Reinjects a jbuf into the service chain.

This can only be called on jbufs on which a MSVCS_ST_PKT_HOLD has been called earlier.

Parameters:
[in] session The session to which the jbuf belongs.
[in] jbuf The packet to be reinjected.
Returns:
MSP_OK on success
  • MSP_REINJ_PKT_SESSION_INVALID The session is not in OPEN state. The caller should free the jbuf.


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