diff options
author | Luca Muscariello <lumuscar+fdio@cisco.com> | 2019-03-23 14:13:53 +0100 |
---|---|---|
committer | Angelo Mantellini <manangel@cisco.com> | 2019-03-24 14:11:17 +0100 |
commit | eb323e056e747d71867cf965434811c1de925de2 (patch) | |
tree | 23a6096823d795efe448559cf0409a18ab47932d /hicn-light/src/socket/ops.h | |
parent | 43562f9f02d35e5d540ab4028a0326c0c7cd4898 (diff) |
[HICN-141] Definition of a C API for hicn-light
Change-Id: Id861f0abe58b1e3c9ba8cc76701da0f9c6801748
Signed-off-by: Luca Muscariello <lumuscar+fdio@cisco.com>
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'hicn-light/src/socket/ops.h')
-rw-r--r-- | hicn-light/src/socket/ops.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/hicn-light/src/socket/ops.h b/hicn-light/src/socket/ops.h deleted file mode 100644 index 249caf87a..000000000 --- a/hicn-light/src/socket/ops.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef HICN_SOCKET_OPS_H -#define HICN_SOCKET_OPS_H - -#include <hicn/hicn.h> -#include <stdint.h> - -typedef struct { - char *arch; - int (*tun_create)(char *name); - int (*get_tun_name)(const char *prefix, const char *identifier, - char *tun_name); - int (*enable_v6_forwarding)(char *interface_name); - int (*enable_v4_forwarding)(); - int (*enable_ndp_proxy)(); - - uint32_t (*get_ifid)(const char *ifname); - int (*get_output_ifid)(const char *ip_address, uint8_t address_family, - uint32_t *interface_id); - int (*get_ip_addr)(uint32_t interface_id, uint8_t address_family, - ip_address_t *ip_address); - int (*set_ip_addr)(uint32_t interface_id, ip_address_t *ip_address); - int (*up_if)(uint32_t interface_id); - int (*add_in_route_table)(const ip_address_t *prefix, - const uint32_t interface_id, - const uint8_t table_id); - int (*add_in_route_table_s)(const char *prefix, const uint32_t interface_id, - const uint8_t table_id); - int (*add_in_route_s)(const char *prefix, const uint32_t interface_id); - int (*add_out_route)(const char *gateway, const uint8_t address_family, - const uint8_t table_id, int default_route); - int (*del_out_route)(const char *gateway, const uint8_t address_family, - const uint8_t table_id); - int (*del_lo_route)(const ip_address_t *ip_address); - int (*add_rule)(const char *interface_name, const uint8_t address_family, - const uint8_t table_id); - int (*del_rule)(const char *interface_name, const uint8_t address_family, - const uint8_t table_id); - int (*add_neigh_proxy)(const ip_address_t *ip_address, - const uint32_t interface_id); - int (*add_prio_rule)(const ip_address_t *ip_address, - const uint8_t address_family, const uint32_t priority, - const uint8_t table_id); - int (*add_lo_prio_rule)(const ip_address_t *ip_address, - const uint8_t address_family, - const uint32_t priority); - int (*del_prio_rule)(const ip_address_t *ip_address, - const uint8_t address_family, const uint32_t priority, - const uint8_t table_id); - int (*del_lo_prio_rule)(const ip_address_t *ip_address, - const uint8_t address_family, - const uint32_t priority); -} hicn_socket_ops_t; - -#endif /* HICN_SOCKET_OPS_H */ |