RDK-B
|
Functions | |
int | vlan_hal_addGroup (const char *groupName, const char *default_vlanID) |
int | vlan_hal_delGroup (const char *groupName) |
int | vlan_hal_addInterface (const char *groupName, const char *ifName, const char *vlanID) |
int | vlan_hal_delInterface (const char *groupName, const char *ifName, const char *vlanID) |
int | vlan_hal_printGroup (const char *groupName) |
int | vlan_hal_printAllGroup () |
int | vlan_hal_delete_all_Interfaces (const char *groupName) |
int | _is_this_group_available_in_linux_bridge (char *br_name) |
int | _is_this_interface_available_in_linux_bridge (char *if_name, char *vlanID) |
int | _is_this_interface_available_in_given_linux_bridge (char *if_name, char *br_name, char *vlanID) |
void | _get_shell_outputbuffer (char *cmd, char *out, int len) |
int | insert_VLAN_ConfigEntry (char *groupName, char *vlanID) |
int | delete_VLAN_ConfigEntry (char *groupName) |
int | get_vlanId_for_GroupName (const char *groupName, char *vlanID) |
int | print_all_vlanId_Configuration (void) |
int vlan_hal_addGroup | ( | const char * | groupName, |
const char * | default_vlanID | ||
) |
@description This HAL is used to creat an new vlan group, and assig default vlanID.
const | char *groupName - bridge name |
const | char *default_vlanID - default VLANID |
RETURN_OK | if successful (or) return RETURN_OK If group is already exist and has expected vlanID |
RETURN_ERR | if any error is detected |
int vlan_hal_delGroup | ( | const char * | groupName | ) |
@description This HAL is used to delete existing vlan group, and delete correspond interface association.
const | char *groupName - bridge name |
RETURN_OK | if successful (or) RETURN_OK If group is not exist |
RETURN_ERR | if any error is detected |
int vlan_hal_addInterface | ( | const char * | groupName, |
const char * | ifName, | ||
const char * | vlanID | ||
) |
@description This HAL is used to add interface to existing vlan group, and assign the vlanID.
const | char *groupName - bridge name |
const | char *ifName - interface name |
const | char *vlanID - VLANID |
RETURN_OK | if successful (or) RETURN_OK If interface is already in group, and has expected vlan ID |
RETURN_ERR | if group is not exist (or) if any error is detected |
int vlan_hal_delInterface | ( | const char * | groupName, |
const char * | ifName, | ||
const char * | vlanID | ||
) |
@description This HAL is used to deassociate existing interface from group.
const | char *groupName - bridge name |
const | char *ifName - interface name |
const | char *vlanID - VLANID |
RETURN_OK | if successful (or) RETURN_OK If interface is not exist |
RETURN_ERR | if any error is detected |
int vlan_hal_printGroup | ( | const char * | groupName | ) |
@description This HAL is used to dump the particular group setting, for debug purpose
const | char *groupName - bridge name |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int vlan_hal_printAllGroup | ( | ) |
@description This HAL is used dump all group setting, for debug purpose
None. |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int vlan_hal_delete_all_Interfaces | ( | const char * | groupName | ) |
@description This HAL is used to deassociate all existing interface from group.
const | char *groupName - bridge name |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int _is_this_group_available_in_linux_bridge | ( | char * | br_name | ) |
@description This HAL utility is used identify given bridge available in linux bridge.
const | char * br_name - bridge name |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int _is_this_interface_available_in_linux_bridge | ( | char * | if_name, |
char * | vlanID | ||
) |
@description This HAL utility is used identify given interface available in given bridge.
const | char * br_name - bridge name |
char | *vlanID - VLAND ID |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int _is_this_interface_available_in_given_linux_bridge | ( | char * | if_name, |
char * | br_name, | ||
char * | vlanID | ||
) |
@description This HAL utility is used identify given interface available in anyone of linux bridge.
char | * if_name - interface name |
const | char * br_name - bridge name |
char | *vlanID - VLAND ID |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
void _get_shell_outputbuffer | ( | char * | cmd, |
char * | out, | ||
int | len | ||
) |
@description This HAL utility is used get the buffer from shell output
char | * cmd - linux shell command |
char | * out - construct the linux system command and copy in this parameter |
int | len - length of the output string |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int insert_VLAN_ConfigEntry | ( | char * | groupName, |
char * | vlanID | ||
) |
@description This HAL utility is used store the VLAN ID, Group Name configuration.
char | *groupName - bridge name |
char | *vlanID - VLAND ID |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int delete_VLAN_ConfigEntry | ( | char * | groupName | ) |
@description This HAL utility is used delete the VLAN ID, Group Name configuration
char | *groupName - bridge name |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int get_vlanId_for_GroupName | ( | const char * | groupName, |
char * | vlanID | ||
) |
@description This HAL utility is used delete the VLAN ID, Group Name configuration from link
char | *groupName - bridge name |
char | char *vlanID - VLANID |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |
int print_all_vlanId_Configuration | ( | void | ) |
@description This HAL utility is used get the VLAN ID for corresponding Group Name from link
None. |
RETURN_OK | if successful |
RETURN_ERR | if any error is detected |