RDK-B
BRIDGE UTIL OEM APIs

Description

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...
 

Function Documentation

◆ updateBridgeInfo()

int updateBridgeInfo ( bridgeDetails bridgeInfo,
char *  ifNameToBeUpdated,
int  Opr,
int  type 
)

Provides generic changes which needs to be configured after creating/updating/deleting bridge.

Parameters
bridgeDetails*bridgeInfo - Pointer to Bridge information structure.
char*ifNameToBeUpdated - Interface to be deleted and updated, applicable only during sync.
intOpr - Information about operations whether the request creating/updating/deleting bridge.
inttype - Interface type, in case of sync delete value is set to unknown/other.
Returns
The status of the operation.
Return values
0on success or a negative error code.

◆ checkIfExists()

int checkIfExists ( char *  iface_name)

Check if interface is created.

Parameters
char*iface_name - Interface name.
Returns
The status of the operation.
Return values
0on success or a negative error code.

◆ removeIfaceFromList()

void removeIfaceFromList ( char *  str,
const char *  sub 
)

Remove interface from the list of interfaces.

Parameters
char*str - Interface which needs to be removed from list.
constchar *sub - List of interfaces name.
Returns
The status of the operation.
Return values
void

◆ checkIfExistsInBridge()

int checkIfExistsInBridge ( char *  iface_name,
char *  bridge_name 
)

Check if interface is attached to bridge.

Parameters
char*iface_name - Interface name.
char*bridge_name - Bridge name.
Returns
The status of the operation.
Return values
0on success or a negative error code.

◆ HandlePreConfigVendor()

int HandlePreConfigVendor ( bridgeDetails bridgeInfo,
int  Config 
)

Provides OEM/SOC specific changes which needs to be configured before creating/updating/deleting bridge.

Parameters
bridgeDetails*bridgeInfo - Pointer to Bridge info structure.
intInstanceNumber - Instance number for configuration.
Returns
The status of the operation.
Return values
0on success or a negative error code.

◆ HandlePostConfigVendor()

int HandlePostConfigVendor ( bridgeDetails bridgeInfo,
int  Config 
)

Provides OEM/SOC specific changes which needs to be configured after creating/updating/deleting bridge.

Parameters
bridgeDetails*bridgeInfo - Pointer to Bridge info structure.
intInstanceNumber - Instance number for configuration.
Returns
The status of the operation.
Return values
0on success or a negative error code.

◆ getVendorIfaces()

char* getVendorIfaces ( )

Provides vendor interface information for creating/updating/deleting bridge.

Parameters
<None>
Returns
The status of the operation.
Return values
vendorinterface or NULL.