psd_ipc.h File Reference

Constants and types used for SYNC IPC. More...

Go to the source code of this file.

Data Structures

struct  policy_req_msg_s
struct  policy_filter_msg_s
struct  policy_route_msg_s

Defines

#define IPC_MSG_TYPE_PSD   60001
 IPC message type to use with psd.
#define PSD_PORT_NUM   7077
 port psd is listening on
#define PSD_CONNECT_ADDRESS   "127.0.0.1"
 IP used to connect to the psd.
#define MAX_IF_NAME_LEN   64
 Max interface name length.
#define MAX_POLICY_NAME_LEN   64
 Max policy name length.
#define MAX_FILTER_NAME_LEN   64
 Max filter name length.
#define MAX_COND_NAME_LEN   64
 Max condition name length.

Typedefs

typedef policy_req_msg_s policy_req_msg_t
typedef policy_filter_msg_s policy_filter_msg_t
typedef policy_route_msg_s policy_route_msg_t

Enumerations

enum  msg_type_e {
  MSG_POLICY_REQ = 1, MSG_FILTER, MSG_ROUTE, MSG_POLICY_NA,
  MSG_POLICY_UPDATE, MSG_UPDATE_DONE, MSG_HB
}


Detailed Description

Constants and types used for SYNC IPC.

Constants for understanding and building request and reply IPC messages to/from psd. Also this includes connection information like the address to use to connect.

Definition in file psd_ipc.h.


Typedef Documentation

typedef struct policy_filter_msg_s policy_filter_msg_t

Structure of policy filter message. Since the reply message is asynchronous to request, ifname and af are included in the message to tell client where to apply the policy.

typedef struct policy_req_msg_s policy_req_msg_t

Structure of policy request message. The unit number is included in ifname, like "fd-1/0/0.0".

typedef struct policy_route_msg_s policy_route_msg_t

Structure of policy route message. Since the reply message is asynchronous to request, ifname and af are included in the message to tell client where to apply the policy.


Enumeration Type Documentation

enum msg_type_e

Applicable IPC Message subtypes:

Enumerator:
MSG_POLICY_REQ  Request a policy.
MSG_FILTER  Filter data message.
MSG_ROUTE  Route data message.
MSG_POLICY_NA  Policy is not available.
MSG_POLICY_UPDATE  Policy need to be updated.
MSG_UPDATE_DONE  Policy update is done.
MSG_HB  Heartbeat message.

Definition at line 111 of file psd_ipc.h.


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:27:06 2010 for SDK Your Net Corporation Policy Manager Example: Policy Enforcement Daemon 1.0 by Doxygen 1.5.1