proxy.h (1381B)
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-2020 Broadcom Inc. All rights reserved. 7 * 8 * DO NOT EDIT THIS FILE! 9 * This file is auto-generated. 10 * Edits to this file will be lost when it is regenerated. 11 */ 12 13 #ifndef __BCMX_PROXY_H__ 14 #define __BCMX_PROXY_H__ 15 16 #if defined(INCLUDE_L3) 17 18 #include <bcm/types.h> 19 #include <bcmx/bcmx.h> 20 #include <bcm/proxy.h> 21 22 /* 23 * Configure a proxy client for the given port. The server port must be 24 * valid. 25 */ 26 extern int bcmx_proxy_client_set( 27 bcmx_lport_t client_port, 28 bcm_proxy_proto_type_t proto_type, 29 bcmx_lport_t server_lport, 30 int enable); 31 32 /* 33 * This API enables various kinds of lookups on XGS3 device on behalf of 34 * remote legacy or XGS3 devices. 35 */ 36 extern int bcmx_proxy_server_set( 37 bcmx_lport_t server_lport, 38 bcm_proxy_mode_t mode, 39 int enable); 40 41 /* 42 * Get the lookup status (enabled/disabled) of XGS3 Proxy server device, 43 * given the Server mode. 44 */ 45 extern int bcmx_proxy_server_get( 46 bcmx_lport_t server_lport, 47 bcm_proxy_mode_t mode, 48 int *enable); 49 50 /* Initialize the Proxy subsystem. */ 51 extern int bcmx_proxy_init(void); 52 53 /* Detach the Proxy subsystem. */ 54 extern int bcmx_proxy_cleanup(void); 55 56 #endif /* defined(INCLUDE_L3) */ 57 58 #endif /* __BCMX_PROXY_H__ */