diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-07-26 23:20:30 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-07-29 17:13:35 +0200 |
commit | 0a1c6b5565e20167d1f1f33a5a8b597f420b18b0 (patch) | |
tree | 98c5da8f231fbd3dc2ce6502040e29c8333d9ffc /hicn-light/src/hicn/socket/api.h | |
parent | 05ca0aa8f612ee48fb66d4dbebe596b7f1e03181 (diff) |
[HICN-252] Add per-application policy framework to hicn-light forwarder
Change-Id: I0531cd7a7de179581295ae34766c81cd9cf3e172
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Co-authored-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/socket/api.h')
-rw-r--r-- | hicn-light/src/hicn/socket/api.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/hicn-light/src/hicn/socket/api.h b/hicn-light/src/hicn/socket/api.h index 3a1ae92b4..283065fc7 100644 --- a/hicn-light/src/hicn/socket/api.h +++ b/hicn-light/src/hicn/socket/api.h @@ -155,7 +155,14 @@ int hicn_set_conf(hicn_socket_helper_t *hicn, hicn_conf_t *hicn_conf); */ void hicn_free(hicn_socket_helper_t *hicn); -// FIXME doc +/** + * Returns the local address used to reach the remote address + * + * @param [in] remote_address + * @param [out] local address + * + * @return 0 in case of success, -1 otherwise. + */ int hicn_get_local_address(const ip_address_t *remote_address, ip_address_t *local_address); @@ -207,8 +214,6 @@ int hicn_listen(hicn_socket_helper_t *hicn, int fd, const char *prefix); * RFC-compliant presentation format. * @return 0 in case of success, -1 otherwise. * - * XXX adjacency does not perform any copy heresofar - * * @see hicn_socket */ int hicn_bind(hicn_socket_helper_t *hicn, int fd, |