From eb323e056e747d71867cf965434811c1de925de2 Mon Sep 17 00:00:00 2001 From: Luca Muscariello Date: Sat, 23 Mar 2019 14:13:53 +0100 Subject: [HICN-141] Definition of a C API for hicn-light Change-Id: Id861f0abe58b1e3c9ba8cc76701da0f9c6801748 Signed-off-by: Luca Muscariello Signed-off-by: Angelo Mantellini --- hicn-light/src/socket/ops.h | 54 --------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 hicn-light/src/socket/ops.h (limited to 'hicn-light/src/socket/ops.h') 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 -#include - -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 */ -- cgit 1.2.3-korg