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

proxy.c (1252B)


      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  * All Rights Reserved.$
      7  *
      8  * Proxy initializers
      9  */
     10 #if defined(INCLUDE_L3)
     11 
     12 #include <sal/core/libc.h>
     13  
     14 #include <bcm/proxy.h>
     15 
     16 /*
     17  * Function:
     18  *      bcm_proxy_server_t_init
     19  * Purpose:
     20  *      Initialize the proxy server struct
     21  * Parameters:
     22  *      proxy_server - Pointer to the struct to be init'ed
     23  */
     24 void
     25 bcm_proxy_server_t_init(bcm_proxy_server_t *proxy_server)
     26 {
     27     if (proxy_server != NULL) {
     28         sal_memset(proxy_server, 0, sizeof(*proxy_server));
     29         /* Default gport mask all*/
     30         proxy_server->server_gport_mask = BCM_PROXY_SERVER_GPORT_ALL_MASK;
     31     }
     32     return;
     33 }
     34 
     35 /*
     36  * Function:
     37  *      bcm_proxy_egress_t_init
     38  * Purpose:
     39  *      Initialize proxy egress object  struct.
     40  * Parameters:
     41  *      egr - pointer to the proxy egress object struct.
     42  * Returns:
     43  *      NONE
     44  */
     45 void
     46 bcm_proxy_egress_t_init(bcm_proxy_egress_t *proxy_egress)
     47 {
     48     if (NULL != proxy_egress) {
     49         sal_memset(proxy_egress, 0, sizeof (*proxy_egress));
     50     }
     51     return;
     52 }
     53 
     54 #else
     55 int _bcm_proxy_not_empty;
     56 #endif  /* INCLUDE_L3 */
     57