Functions | |
| ocs_hal_rtn_e | ocs_hal_portal_set_mac (ocs_hal_t *hal, uint8_t *mac_address, portal_cb_t portal_cb, void *ul_arg) |
| Set the MAC address on the portal. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_set_mtu (ocs_hal_t *hal, uint8_t is_jumbo, portal_cb_t portal_cb, void *ul_arg) |
| Enable Jumbo frame support on the portal. More... | |
| ocs_hal_portal_t | ocs_hal_portal_get_default (ocs_hal_t *hal) |
| Return the default portal. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_create (ocs_hal_t *hal, unsigned int vlan_tag, portal_cb_t portal_cb, void *ul_arg) |
| Create a new VLAN interface handle. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_delete (ocs_hal_t *hal, ocs_hal_portal_t portal, portal_cb_t portal_cb, void *ul_arg) |
| Delete a VLAN interface handle. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_set_route_table (ocs_hal_t *hal, ocs_hal_ip_address_subnet_t *hal_ipsub, ocs_hal_ip_address_t *hal_gateway, int32_t add, portal_cb_t portal_cb, void *ul_arg) |
| Add/Remove an entry to routing table. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_get_route_table (ocs_hal_t *hal, portal_cb_t portal_cb, void *ul_arg) |
| Read routing table. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_ip_add (ocs_hal_t *hal, ocs_hal_portal_t portal, ocs_hal_ip_address_subnet_t *ipaddr, portal_cb_t portal_cb, void *ul_arg) |
| Add an IP address to an interface. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_ip_remove (ocs_hal_t *hal, ocs_hal_portal_t portal, ocs_hal_ip_address_subnet_t *ipaddr, portal_cb_t portal_cb, void *ul_arg) |
| Removes an IP address from an interface. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_ip_get (ocs_hal_t *hal, ocs_hal_portal_t portal, ocs_hal_ip_type_e ip_type, portal_cb_t portal_cb, void *ul_arg) |
| Retrieves the IP addresses on an interface. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_gateway_get (ocs_hal_t *hal, ocs_hal_ip_type_e ip_type, portal_cb_t portal_cb, void *ul_arg) |
| Retrieves the default gateway on an interface. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_gateway_add (ocs_hal_t *hal, ocs_hal_ip_address_t *gateway, portal_cb_t portal_cb, void *ul_arg) |
| adds the default gateway on an interface. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_gateway_remove (ocs_hal_t *hal, ocs_hal_ip_address_t *gateway, portal_cb_t portal_cb, void *ul_arg) |
| removes a default gateway on an interface. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_listen_start (ocs_hal_t *hal, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port, portal_cb_t portal_cb, void *ul_arg) |
| Starts listening on a TCP port. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_listen_stop (ocs_hal_t *hal, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port, portal_cb_t portal_cb, void *ul_arg) |
| Stops listening on a TCP port. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_isns_discover (ocs_hal_t *hal, ocs_hal_portal_t portal, portal_cb_t portal_cb, void *ul_arg) |
| Discovers iSNS servers via DHCP. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_isns_send_packet (ocs_hal_t *hal, ocs_hal_ip_address_t *isns_server, uint32_t tcp_port, void *packet, uint32_t pkt_len, portal_cb_t portal_cb, void *ul_arg) |
| Sends an iSNS packet to the requested server. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_esi_listen_start (ocs_hal_t *hal, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port, portal_cb_t portal_cb, void *ul_arg) |
| Starts listening for iSNS ESI messages on a TCP port. More... | |
| ocs_hal_rtn_e | ocs_hal_portal_esi_listen_stop (ocs_hal_t *hal, ocs_hal_ip_address_t *ipaddr, uint32_t tcp_port, portal_cb_t portal_cb, void *ul_arg) |
| Stops listening on an iSNS ESI TCP port. More... | |
| ocs_hal_rtn_e ocs_hal_portal_create | ( | ocs_hal_t * | hal, |
| unsigned int | vlan_tag, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Create a new VLAN interface handle.
| hal | Hardware context. |
| vlan_tag | The vlan and priority. |
| portal_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_delete | ( | ocs_hal_t * | hal, |
| ocs_hal_portal_t | portal, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Delete a VLAN interface handle.
| hal | Hardware context. |
| portal | Portal handle to remove. |
| portal_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_esi_listen_start | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Starts listening for iSNS ESI messages on a TCP port.
| hal | Hardware context. |
| ipaddr | IP address start listening. |
| tcp_port | TCP port number. |
| portal_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_esi_listen_stop | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Stops listening on an iSNS ESI TCP port.
| hal | Hardware context. |
| ipaddr | IP address to stop listening to. |
| tcp_port | TCP port number. |
| portal_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_gateway_add | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_address_t * | gateway, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
adds the default gateway on an interface.
| hal | Hardware context. |
| gateway | the IP gateway to add |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_gateway_get | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_type_e | ip_type, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Retrieves the default gateway on an interface.
| hal | Hardware context. |
| ip_type | the type of IP interface to retrieve |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_gateway_remove | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_address_t * | gateway, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
removes a default gateway on an interface.
| hal | Hardware context. |
| gateway | the IP gateway to remove |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_portal_t ocs_hal_portal_get_default | ( | ocs_hal_t * | hal | ) |
| ocs_hal_rtn_e ocs_hal_portal_get_route_table | ( | ocs_hal_t * | hal, |
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
| ocs_hal_rtn_e ocs_hal_portal_ip_add | ( | ocs_hal_t * | hal, |
| ocs_hal_portal_t | portal, | ||
| ocs_hal_ip_address_subnet_t * | ipaddr, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Add an IP address to an interface.
| hal | Hardware context. |
| portal | the portal handle |
| ipaddr | the IP address to add |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_ip_get | ( | ocs_hal_t * | hal, |
| ocs_hal_portal_t | portal, | ||
| ocs_hal_ip_type_e | ip_type, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Retrieves the IP addresses on an interface.
| hal | Hardware context. |
| portal | the portal handle |
| ip_type | the type of IP addresses to retrieve |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_ip_remove | ( | ocs_hal_t * | hal, |
| ocs_hal_portal_t | portal, | ||
| ocs_hal_ip_address_subnet_t * | ipaddr, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Removes an IP address from an interface.
| hal | Hardware context. |
| portal | the portal handle |
| ipaddr | the IP address to remove |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_isns_discover | ( | ocs_hal_t * | hal, |
| ocs_hal_portal_t | portal, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Discovers iSNS servers via DHCP.
| hal | Hardware context. |
| portal | the portal handle |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_isns_send_packet | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_address_t * | isns_server, | ||
| uint32_t | tcp_port, | ||
| void * | packet, | ||
| uint32_t | pkt_len, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Sends an iSNS packet to the requested server.
| hal | Hardware context. |
| isns_server | the IP of the iSNS server |
| tcp_port | The TCP port number |
| packet | virtual memory of the packet to send |
| pkt_len | the length of the packet in bytes |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_listen_start | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Starts listening on a TCP port.
| hal | Hardware context. |
| ipaddr | the IP address start listening |
| tcp_port | The TCP port number |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_listen_stop | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_address_t * | ipaddr, | ||
| uint32_t | tcp_port, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Stops listening on a TCP port.
| hal | Hardware context. |
| ipaddr | the IP address stop listening |
| tcp_port | The TCP port number |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_set_mac | ( | ocs_hal_t * | hal, |
| uint8_t * | mac_address, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Set the MAC address on the portal.
| hal | Hardware context. |
| mac_address | MAC address to set. |
| portal_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_set_mtu | ( | ocs_hal_t * | hal, |
| uint8_t | is_jumbo, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Enable Jumbo frame support on the portal.
| hal | Hardware context. |
| is_jumbo | If TRUE, then jumbo frames are enabled, otherwise the standard Ethernet frame size is set. |
| portal_cb | Pointer to the function to call when the operation completes. |
| ul_arg | Pointer to the argument to pass back to portal_cb(). |
| ocs_hal_rtn_e ocs_hal_portal_set_route_table | ( | ocs_hal_t * | hal, |
| ocs_hal_ip_address_subnet_t * | hal_ipsub, | ||
| ocs_hal_ip_address_t * | hal_gateway, | ||
| int32_t | add, | ||
| portal_cb_t | portal_cb, | ||
| void * | ul_arg | ||
| ) |
Add/Remove an entry to routing table.
| hal | Hardware context. |
| ipsub | the IP address and subnet mask to add/remove |
| gateway | the gateway address to add/remove |
| add | a non-zero to add, otherwise to remove |
| portal_cb | pointer to the function to call when the operation completes |
| ul_arg | pointer to the argument to pass back to portal_cb(). |