ipfix.c (1410B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 * 7 * File: ipfix.c 8 * Purpose: IPFIX common APIs 9 */ 10 11 #include <soc/drv.h> 12 #include <bcm/ipfix.h> 13 14 /* 15 * Function: 16 * bcm_ipfix_config_t_init 17 * Description: 18 * Initialize an IPFIX config structure 19 * Parameters: 20 * config pointer to IPFIX config structure 21 * Return: none 22 */ 23 void 24 bcm_ipfix_config_t_init(bcm_ipfix_config_t *config) 25 { 26 if (NULL != config) { 27 sal_memset(config, 0, sizeof(bcm_ipfix_config_t)); 28 } 29 return; 30 } 31 32 /* 33 * Function: 34 * bcm_ipfix_rate_t_init 35 * Description: 36 * Initialize an IPFIX rate structure 37 * Parameters: 38 * rate pointer to IPFIX rate structure 39 * Return: none 40 */ 41 void 42 bcm_ipfix_rate_t_init(bcm_ipfix_rate_t *rate) 43 { 44 if (NULL != rate) { 45 sal_memset(rate, 0, sizeof(bcm_ipfix_rate_t)); 46 } 47 return; 48 } 49 50 /* 51 * Function: 52 * bcm_ipfix_mirror_config_t_init 53 * Description: 54 * Initialize an IPFIX mirror config structure 55 * Parameters: 56 * config pointer to IPFIX mirror config structure 57 * Return: none 58 */ 59 void 60 bcm_ipfix_mirror_config_t_init(bcm_ipfix_mirror_config_t *config) 61 { 62 if (NULL != config) { 63 sal_memset(config, 0, sizeof(bcm_ipfix_mirror_config_t)); 64 } 65 return; 66 }