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

📄 ipsec_print_routines.c

📁 ipsec PNE 3.3 source code, running at more than vxworks6.x version.
💻 C
字号:
/******************************************************************************//* Copyright 2000-2001 Wind River Systems, Inc. 							  *//******************************************************************************//* ipsec_print_routines.c - modification history---------------------------------------------01a,19mar20,rpt	Extracted from WindNet IPSec 1.1, added modification history*//******************************************************************************/#include <copyright_wrs.h>#include <stddef.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <ctype.h>#include <vxWorks.h>#include <netinet/in.h>#include "ipsecP.h"#include "ipsec_class.h"#include "ipsec_globals.h"#include "ipsec_print_routines.h"/******************************************************************************/void ipsec_printf    (    IPSEC_PRINTF_GROUPS printf_group,    const char *cptr_format,    ...    )    {    BOOL print_flag;    va_list argptr;    va_start (argptr, cptr_format);    if (ipsec_global_class.ipsec_printing_enabled == FALSE)        {        va_end (argptr);        return;        }    switch (printf_group)        {        case IPSEC_ERROR_PRINTF:            print_flag = ipsec_global_class.ipsec_error_printing_enabled;            break;        case IPSEC_WARNING_PRINTF:            print_flag = ipsec_global_class.ipsec_warning_printing_enabled;            break;        case IPSEC_INITIALIZATION_PRINTF:            print_flag = ipsec_global_class.ipsec_initialization_printing_enabled;            break;        case IPSEC_DEBUG_PRINTF:            print_flag = ipsec_global_class.ipsec_debug_printing_enabled;            break;        default:            print_flag = FALSE;            break;        }    if (print_flag == TRUE)        {        vprintf (cptr_format, argptr);        }    va_end (argptr);    }/******************************************************************************/void ipsec_printf_mon    (    IPSEC_PRINTF_GROUPS printf_group,    const char *cptr_format,    ...    )    {    BOOL print_flag;    va_list argptr;    va_start (argptr, cptr_format);    switch (printf_group)        {        case IPSEC_ERROR_PRINTF:            print_flag = ipsec_global_class.ipsec_error_printing_enabled;            break;        case IPSEC_WARNING_PRINTF:            print_flag = ipsec_global_class.ipsec_warning_printing_enabled;            break;        default:            print_flag = FALSE;            break;        }    if (print_flag == TRUE)        {        vprintf (cptr_format, argptr);        }    va_end (argptr);    }/******************************************************************************/

⌨️ 快捷键说明

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