rib: limit route prefix length in rib/register command
refs #4262
Change-Id: I567934419f6872cb0f5a823400f53014b9c6e85e
diff --git a/daemon/table/name-tree.hpp b/daemon/table/name-tree.hpp
index 04e504e..805be56 100644
--- a/daemon/table/name-tree.hpp
+++ b/daemon/table/name-tree.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2017, Regents of the University of California,
+ * Copyright (c) 2014-2018, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -50,7 +50,7 @@
* This constant is currently advisory. It is enforced in NameTree::lookup only if
* \p enforceMaxDepth is set to true. This will become mandatory later.
*/
- static size_t
+ static constexpr size_t
getMaxDepth()
{
return 32;