summaryrefslogtreecommitdiffstats
path: root/extras/vom
diff options
context:
space:
mode:
Diffstat (limited to 'extras/vom')
-rw-r--r--extras/vom/vom/api_types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/vom/vom/api_types.cpp b/extras/vom/vom/api_types.cpp
index 721034fc810..5a46571ddea 100644
--- a/extras/vom/vom/api_types.cpp
+++ b/extras/vom/vom/api_types.cpp
@@ -192,7 +192,7 @@ from_api(const vapi_type_mac_address& v)
route::prefix_t
from_api(const vapi_type_prefix& v)
{
- return route::prefix_t(from_api(v.address), v.address_length);
+ return route::prefix_t(from_api(v.address), v.len);
}
vapi_type_prefix
@@ -200,7 +200,7 @@ to_api(const route::prefix_t& p)
{
vapi_type_prefix v;
to_api(p.address(), v.address);
- v.address_length = p.mask_width();
+ v.len = p.mask_width();
return v;
}