openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

l2gre.c (1081B)


      1 /*
      2  * 
      3  *
      4  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5  * 
      6  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      7  */
      8 /*
      9  * L2GRE initializers
     10  */
     11 
     12 #if defined(INCLUDE_L3)
     13 
     14 #include <sal/core/libc.h>
     15 
     16 #include <bcm/l2gre.h>
     17 
     18 /* 
     19  * Function:
     20  *      bcm_l2gre_port_t_init
     21  * Purpose:
     22  *      Initialize L2GRE  port struct
     23  * Parameters: 
     24  *      l2gre_port - Pointer to the struct to be init'ed
     25  */
     26 void
     27 bcm_l2gre_port_t_init(bcm_l2gre_port_t *l2gre_port)
     28 {   
     29     if (l2gre_port != NULL) {
     30         sal_memset(l2gre_port, 0, sizeof(*l2gre_port));
     31     }
     32     return;
     33 }
     34 
     35 /* 
     36  * Function:
     37  *      bcm_l2gre_vpn_config_t_init
     38  * Purpose:
     39  *      Initialize L2GRE  vpn config struct
     40  * Parameters: 
     41  *      l2gre_vpn - Pointer to the struct to be init'ed
     42  */
     43 void
     44 bcm_l2gre_vpn_config_t_init(bcm_l2gre_vpn_config_t *l2gre_vpn)
     45 {   
     46     if (l2gre_vpn != NULL) {
     47         sal_memset(l2gre_vpn, 0, sizeof(*l2gre_vpn));
     48     }
     49     return;
     50 }
     51 
     52 #else
     53 int _bcm_l2gre_not_empty;
     54 #endif  /* INCLUDE_L3 */
     55