![]()  | 
  
    RDK-B
    
   | 
 
For Bridge Util Component: Bridge Utils OEM Layer. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <stdbool.h>#include <time.h>#include <pthread.h>#include "OvsAgentApi.h"
Go to the source code of this file.
Data Structures | |
| struct | bridgeDetails | 
Macros | |
| #define | BRIDGE_UTIL_LOG_FNAME "/rdklogs/logs/bridgeUtils.log" | 
| #define | GRE_HANDLER_SCRIPT "/etc/utopia/service.d/service_multinet/handle_gre.sh" | 
| #define | TOTAL_IFLIST_SIZE 1024 | 
| #define | BRIDGE_NAME_SIZE 64 | 
| #define | IFACE_NAME_SIZE 64 | 
| #define | IFLIST_SIZE 256 | 
| #define | MAX_LOG_BUFF_SIZE 1024 | 
| #define | TIMESTAMP 64 | 
| #define | INTERFACE_EXIST 0 | 
| #define | INTERFACE_NOT_EXIST -1 | 
| #define | bridge_util_log(fmt ...) | 
Typedefs | |
| typedef struct bridgeDetails | bridgeDetails | 
Enumerations | |
| enum | Config {  PRIVATE_LAN = 1, HOME_SECURITY = 2, HOTSPOT_2G = 3, HOTSPOT_5G = 4, LOST_N_FOUND = 6, HOTSPOT_SECURE_2G = 7, HOTSPOT_SECURE_5G = 8, MOCA_ISOLATION = 9, MESH_BACKHAUL = 10, ETH_BACKHAUL = 11, MESH = 12, MESH_WIFI_BACKHAUL_2G = 13, MESH_WIFI_BACKHAUL_5G = 14 }  | 
| List of Configurations for BridgeUtils API's.  More... | |
| enum | INTERFACE_TYPE {  IF_BRIDGE_BRIDGEUTIL = 1, IF_VLAN_BRIDGEUTIL = 2, IF_GRE_BRIDGEUTIL = 3, IF_MOCA_BRIDGEUTIL = 4, IF_WIFI_BRIDGEUTIL = 5, IF_ETH_BRIDGEUTIL = 6, IF_OTHER_BRIDGEUTIL }  | 
| List of Interface types for BridgeUtils API's.  More... | |
| enum | BridgeOpr { DELETE_BRIDGE = 0, CREATE_BRIDGE = 1 } | 
| BridgeUtils Operations for BridgeUtils API's.  More... | |
Functions | |
| int | updateBridgeInfo (bridgeDetails *bridgeInfo, char *ifNameToBeUpdated, int Opr, int type) | 
| Provides generic changes which needs to be configured after creating/updating/deleting bridge.  More... | |
| int | checkIfExists (char *iface_name) | 
| Check if interface is created.  More... | |
| void | removeIfaceFromList (char *str, const char *sub) | 
| Remove interface from the list of interfaces.  More... | |
| int | checkIfExistsInBridge (char *iface_name, char *bridge_name) | 
| Check if interface is attached to bridge.  More... | |
| int | HandlePreConfigVendor (bridgeDetails *bridgeInfo, int Config) | 
| Provides OEM/SOC specific changes which needs to be configured before creating/updating/deleting bridge.  More... | |
| int | HandlePostConfigVendor (bridgeDetails *bridgeInfo, int Config) | 
| Provides OEM/SOC specific changes which needs to be configured after creating/updating/deleting bridge.  More... | |
| char * | getVendorIfaces () | 
| Provides vendor interface information for creating/updating/deleting bridge.  More... | |
Variables | |
| int | DeviceMode | 
| int | MocaIsolation_Val | 
| int | need_wifi_gw_refresh | 
| int | need_switch_gw_refresh | 
| int | syncMembers | 
| int | BridgeOprInPropgress | 
| FILE * | logFp | 
| char | log_buff [1024] | 
| char | log_msg_wtime [1024+64] | 
| char | primaryBridgeName [64] | 
| int | PORT2ENABLE | 
| int | ethWanEnabled | 
| char | ethWanIfaceName [64] | 
| struct tm * | timeinfo | 
| time_t | utc_time | 
For Bridge Util Component: Bridge Utils OEM Layer.
Definition in file bridge_util_hal.h.