diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-10-23 09:58:42 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-10-23 15:50:37 +0200 |
commit | b8eca5937fc110e85d426cefba4feff00a20a04a (patch) | |
tree | a3790d6b90696bab055719e4223a576597ac7396 /ctrl/libhicnctrl/includes | |
parent | b689543d557b05e8365733874d38b61421ad3d59 (diff) |
[HICN-350] Minor cleanup in control API
Change-Id: I5c3705aa439a1cf6bdca915f82c0c014771cc542
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'ctrl/libhicnctrl/includes')
-rw-r--r-- | ctrl/libhicnctrl/includes/hicn/ctrl/api.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ctrl/libhicnctrl/includes/hicn/ctrl/api.h b/ctrl/libhicnctrl/includes/hicn/ctrl/api.h index 07c98514d..c1db751fb 100644 --- a/ctrl/libhicnctrl/includes/hicn/ctrl/api.h +++ b/ctrl/libhicnctrl/includes/hicn/ctrl/api.h @@ -380,9 +380,9 @@ int hc_sock_reset(hc_sock_t * s); #define NULLTERM 1 #endif -#define NAME_LEN 16 /* NULL-terminated right ? */ +#define SYMBOLIC_NAME_LEN 16 /* NULL-terminated right ? */ #define INTERFACE_LEN 16 -#define MAXSZ_HC_NAME_ NAME_LEN +#define MAXSZ_HC_NAME_ SYMBOLIC_NAME_LEN #define MAXSZ_HC_NAME MAXSZ_HC_NAME_ + NULLTERM #define MAXSZ_HC_ID_ 10 /* Number of digits for MAX_INT */ @@ -445,7 +445,7 @@ typedef int (*HC_PARSE)(const u8 *, u8 *); // FIXME the listener should not require any port for hICN... typedef struct { - char name[NAME_LEN]; /* K.w */ // XXX clarify what used for + char name[SYMBOLIC_NAME_LEN]; /* K.w */ // XXX clarify what used for char interface_name[INTERFACE_LEN]; /* Kr. */ u32 id; hc_connection_type_t type; /* .rw */ @@ -485,7 +485,7 @@ int hc_listener_snprintf(char * s, size_t size, hc_listener_t * listener); */ typedef struct { u32 id; /* Kr. */ - char name[NAME_LEN]; /* K.w */ + char name[SYMBOLIC_NAME_LEN]; /* K.w */ char interface_name[INTERFACE_LEN]; /* Kr. */ hc_connection_type_t type; /* .rw */ int family; /* .rw */ @@ -547,7 +547,7 @@ int hc_connection_snprintf(char * s, size_t size, const hc_connection_t * connec typedef struct { u8 id; - char name[NAME_LEN]; + char name[SYMBOLIC_NAME_LEN]; face_t face; // or embed ? //face_id_t parent; /* Pointer from connection to listener */ } hc_face_t; |