diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-11-21 00:38:09 +0100 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-11-21 00:51:06 +0100 |
commit | ae6f3b8e1f55fc4bb7807c293850d3cb46cab1fd (patch) | |
tree | fcc8cc1f42a21e8d6da3051ccfcb161c90cd02c8 /hicn-light/src/hicn/core/connection.c | |
parent | 275b80b81746cdf5fc9b8299e7441c9d0d8718de (diff) |
[HICN-379] Add face priority support in face manager
Change-Id: Iae19e016aae833b4bc95ff6d91d51b188f398e25
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/core/connection.c')
-rw-r--r-- | hicn-light/src/hicn/core/connection.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hicn-light/src/hicn/core/connection.c b/hicn-light/src/hicn/core/connection.c index 8ec38f75f..c1d143f70 100644 --- a/hicn-light/src/hicn/core/connection.c +++ b/hicn-light/src/hicn/core/connection.c @@ -337,7 +337,7 @@ uint32_t connection_GetPriority(const Connection *conn) { parcAssertNotNull(conn, "Parameter conn must be non-null"); if (!conn->ops) - return CONNECTION_STATE_UNDEFINED; + return 0; return ioOperations_GetPriority(conn->ops); } @@ -346,8 +346,6 @@ void connection_SetPriority(Connection *conn, uint32_t priority) parcAssertNotNull(conn, "Parameter conn must be non-null"); if (!conn->ops) return; - if ((priority != CONNECTION_STATE_UP) && (priority != CONNECTION_STATE_DOWN)) - return; ioOperations_SetPriority(conn->ops, priority); } #endif /* WITH_POLICY */ |