vlan_cmd(3)
vlan_cmd -
As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.
This page could not be fully tidied (no-header); it is shown as printed.
VLAN_CMD VLAN_CMD NAME vlan_cmd - DEFINITION A generic VLAN command interface. A VLAN command string is passed in. The command string is expected to be a valid, capitalized, two character VLAN command with additional parameter characters as required by the command. The string must be NULL terminated. Since the VLAN communication protocol requires commands to be terminated with a carriage return character instead of a NULL, this function sends a carriage return to the VLAN controller in place of the NULL character. A pointer to the VLAN response string is returned. If no values are to be returned, a string consisting of a single carriage return and the NULL character is returned. Of a return value is expected, it is returned as a NULL terminated string with the carriage return stripped off. If a VLAN error occurs (eg. command syntax), the error response string is returned (with the CR stripped). vlan_errno is not set since no host side error has occurred. C SPECIFICATION char *vlan_cmd( VLAN_DEV *vlanptr,char *cmd) PARAMETERS Name Type I/O Description vlanptr VLAN_DEV * I pointer to vlan device cmd char * I VLAN command character stringi (NULL terminated). VALUE RETURNED If a non-VLAN error occurs, NULL is returned and vlan_errno is set. Otherwise a pointer to the VLAN response string is returned. If a VLAN error has occurred, this will be indicated by the response string. The response string returned, if any, should be copied to a user buffer before the next VLAN command is issued since the response will be overwritten by the new command's response.