⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipsec_logger_util.h

📁 ipsec PNE 3.3 source code, running at more than vxworks6.x version.
💻 H
字号:
/* ipsec_logger_util.h - ipsec logger utility routines. *//*  * Copyright (c) 2004-2006 Wind River Systems, Inc.  *  * The right to copy, distribute, modify or otherwise make use  * of this software may be licensed only pursuant to the terms  * of an applicable Wind River license agreement.  *//*modification history--------------------01a,12jan06,djp  removed rwos dependencies01e,18oct05,djp  Added code cleanup macros01d,13apr05,djp  Fixed include paths01c,07mar05,djp  Fixed include paths01b,13may04,hms added sa_family parm to callback. added ipsecLoggerIsEnabled()01a,05may04,djp Initial version of IPsec Logger Header File*/#if !defined (__IPSEC_LOGGER_UTIL_H__)#define __IPSEC_LOGGER_UTIL_H__#ifdef __cplusplusextern "C"    {#endif#include <vxWorks.h>#include <wrn/ipsec/ipsecLogger.h>#include "../sadb/sadb_if.h"#include "ipsec_if.h"extern void ipsecEventLogFromNetworkTrafficInfo    (    VI_NETWORK_TRAFFIC_INFO *pTrafficInfo,    void *pEventData,    IPSEC_LOG_EVENT_ID eventId,    IPSEC_LOG_REASON reasonId    );extern void ipsecEventLogFromSABundle    (    SA_BUNDLE *pBundle,    void *pEventData,    IPSEC_LOG_EVENT_ID eventId,    SA_SPEC_RET_TYPES saSpecType    );extern void ipsecEventLogFromIPMessage    (    IP_VI_MESSAGE *pIPmessage,    void *pEventData,    IPSEC_LOG_EVENT_ID eventId,    IPSEC_LOG_REASON reasonId    );#ifdef __cplusplus}#endif/* Log SPD Discards */#ifdef INCLUDE_LOGGING_SPD_PACKET_DISCARD#define LOG_SPD_DISCARD_FROM_TRAFFIC_INFO(traffic_info, data, evt, reason) \    if (ipsecLoggerIsLogEventEnabled (SPD_PACKET_DISCARD))                 \       {                                                                   \       ipsecEventLogFromNetworkTrafficInfo(p_traffic_info, data, evt,      \                                           reason);                        \       }#else#define LOG_SPD_DISCARD_FROM_TRAFFIC_INFO(traffic_info, data, evt, reason)#endif#endif /* __IPSEC_LOGGER_UTIL_H__*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -