summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnas Bacius <ignas@noia.network>2020-04-06 16:31:27 +0300
committerNeale Ranns <nranns@cisco.com>2020-04-07 10:43:00 +0000
commit483a3d819abf13a95b5ded65c3efa360e9b4fdf0 (patch)
tree9cf6e1701c29b10fa82e57e2a19c864e51c5fd94
parentec9cb966875e1782a1d3c39be7488a56e7dc785a (diff)
sr: fix byte-order in steering API
Type: fix Change-Id: Ib25e5324e4ba360cd91b92abc78c994f86148148 Signed-off-by: Ignas Bacius <ignas@noia.network>
-rw-r--r--src/vnet/srv6/sr_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/srv6/sr_api.c b/src/vnet/srv6/sr_api.c
index 43206271291..9bb1a16f18a 100644
--- a/src/vnet/srv6/sr_api.c
+++ b/src/vnet/srv6/sr_api.c
@@ -224,7 +224,7 @@ static void vl_api_sr_steering_add_del_t_handler
ntohl (mp->sr_policy_index),
ntohl (mp->table_id),
&prefix_addr,
- ntohl (mp->prefix.len),
+ mp->prefix.len,
ntohl (mp->sw_if_index), mp->traffic_type);
BAD_SW_IF_INDEX_LABEL;
@@ -364,7 +364,7 @@ static void send_sr_steering_pol_details
rmp->fib_table = htonl (t->classify.l3.fib_table);
ip_address_encode (&t->classify.l3.prefix, IP46_TYPE_ANY,
&rmp->prefix.address);
- rmp->prefix.len = htonl (t->classify.l3.mask_width);
+ rmp->prefix.len = t->classify.l3.mask_width;
rmp->sw_if_index = htonl (t->classify.l2.sw_if_index);