Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Macros | Enumerations | Functions
openapi_routing_config.h File Reference
#include <stdio.h>
#include <stddef.h>
#include <sys/un.h>
#include "openapi_common.h"
#include "openapi_mpls.h"

Go to the source code of this file.

Macros

#define OPEN_DEFAULT_VRF_NAME   ""
 Default VRF name.
 
#define OPEN_VRF_MAX_NAME_LEN   64
 largest allowable VRF name
 
#define OPEN_VRF_MIN_NAME_LEN   0
 smallest allowable VRF name
 

Enumerations

enum  OPEN_INTF_IP_ADDR_TYPE_t { OPEN_IP_ADDR_TYPE_STATIC_PRIMARY = 0, OPEN_IP_ADDR_TYPE_STATIC_SECONDARY = 1, OPEN_IP_ADDR_TYPE_DHCP = 2 }
 Type of IP address. More...
 

Functions

open_error_t openapiArpEntryAdd (openapiClientHandle_t *client_handle, open_inet_addr_t ipAddr, open_buffdesc *mac_addr)
 Add an ARP entry. More...
 
open_error_t openapiArpEntryDel (openapiClientHandle_t *client_handle, open_inet_addr_t ipAddr)
 Delete an ARP entry. More...
 
open_error_t openapiArpEntryNextGet (openapiClientHandle_t *client_handle, uint32_t *intf, open_inet_addr_t *ipAddr, open_buffdesc *mac_addr)
 Get the next ARP entry. More...
 
open_error_t openapiIpHelperAddressAdd (openapiClientHandle_t *client_handle, open_inet_addr_t ipAddr, uint32_t udpPort)
 Adds IP Helper Address and UDP port number. More...
 
open_error_t openapiIpHelperAddressDel (openapiClientHandle_t *client_handle, open_inet_addr_t ipAddr, uint32_t udpPort)
 Deletes IP Helper Address and UDP port number. More...
 
open_error_t openapiIpHelperModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t ipHelperMode)
 Enables/Disables IP Helper mode. More...
 
open_error_t openapiIpICMPEchoReplyModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t echoReplyMode)
 Enables/Disables IP ICMP Echo Reply mode. More...
 
open_error_t openapiIpRedirectsModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t redirectsMode)
 Enables/Disables generation of IP Redirects messages. More...
 
open_error_t openapiIpRouteAdd (openapiClientHandle_t *client_handle, OPEN_AF_t af, open_inet_pfx_t *ipAddr, open_inet_addr_t *nextHop, uint32_t rtPref, uint32_t intf, OPEN_MPLS_LABELS_t *mpls)
 Add an IP Route for a given address family. More...
 
open_error_t openapiIpRouteDel (openapiClientHandle_t *client_handle, OPEN_AF_t af, open_inet_pfx_t *ipAddr, open_inet_addr_t *nextHop, uint32_t intf, OPEN_MPLS_LABELS_t *mpls)
 Delete an IP Route for a given address family. More...
 
open_error_t openapiRtrAdminModeSet (openapiClientHandle_t *client_handle, OPEN_AF_t af, OPEN_CONTROL_t routingMode)
 Enables/Disables IP Routing Admin mode. More...
 
open_error_t openapiRtrIntfIpAddrAdd (openapiClientHandle_t *client_handle, OPEN_AF_t af, uint32_t intf, OPEN_INTF_IP_ADDR_TYPE_t addrType, open_inet_pfx_t *ipAddr, OPEN_CONTROL_t extArg)
 Add an IP address on a given router interface for a given address family. More...
 
open_error_t openapiRtrIntfIpAddrDel (openapiClientHandle_t *client_handle, OPEN_AF_t af, uint32_t intf, OPEN_INTF_IP_ADDR_TYPE_t addrType, open_inet_pfx_t *ipAddr, OPEN_CONTROL_t extArg)
 Delete an IP address on a given router interface for a given address family. More...
 
open_error_t openapiRtrIntfIpDestUnreachableModeSet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t unreachableMode)
 Enables/Disables generation of IP Destination Unreachable messages on a Router interface. More...
 
open_error_t openapiRtrIntfIpHelperAddressAdd (openapiClientHandle_t *client_handle, uint32_t intf, open_inet_addr_t ipAddr, uint32_t udpPort)
 Adds IP Helper Address and UDP port number on an interface. More...
 
open_error_t openapiRtrIntfIpHelperAddressDel (openapiClientHandle_t *client_handle, uint32_t intf, open_inet_addr_t ipAddr, uint32_t udpPort)
 Deletes IP Helper Address and UDP port number on an interface. More...
 
open_error_t openapiRtrIntfIpHelperDiscardAdd (openapiClientHandle_t *client_handle, uint32_t intf, uint32_t udpPort)
 Adds IP Helper Discard entry in an interface. More...
 
open_error_t openapiRtrIntfIpHelperDiscardDel (openapiClientHandle_t *client_handle, uint32_t intf, uint32_t udpPort)
 Deletes IP Helper Discard entry in an interface. More...
 
open_error_t openapiRtrIntfIpNetDirBroadcastModeSet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t ipNetBroadcastMode)
 Enables/Disables forwarding of Network-directed broadcast on a Router Interface. More...
 
open_error_t openapiRtrIntfIpProxyArpModeSet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t ipProxyArpMode)
 Enables/Disables IP Proxy Arp mode on a Router Interface. More...
 
open_error_t openapiRtrIntfIpRedirectsModeSet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t redirectsMode)
 Enables/Disables generation of IP Redirects messages on a Router interface. More...
 
open_error_t openapiRtrIntfMTUSet (openapiClientHandle_t *client_handle, OPEN_AF_t af, uint32_t intf, uint32_t MTU)
 Configures Router Interface MTU. More...
 
open_error_t openapiRtrIntfRtrAdminModeSet (openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t routingMode)
 Enables/Disables IP Routing mode (both v4 and v6) on a Router interface. More...
 
open_error_t openapiRtrVlanIntfCreate (openapiClientHandle_t *client_handle, uint32_t vlanId)
 Create a VLAN Routing Interface. More...
 
open_error_t openapiRtrVlanIntfDelete (openapiClientHandle_t *client_handle, uint32_t vlanId)
 Delete a VLAN Routing Interface. More...
 
open_error_t openapiRtrVlanIntfIfNumGet (openapiClientHandle_t *client_handle, uint32_t vlanId, uint32_t *intf)
 Get the interface number for a VLAN Routing Interface. More...