diff options
| author | Quentin Young <qlyoung@nvidia.com> | 2020-11-29 13:21:14 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-01 18:37:14 -0500 |
| commit | 00d9e83a3ff388f53cbe252632ff94dc4dcc1fbd (patch) | |
| tree | 09ccb4a0323b3f3affee967a1f0b2583c281444c /lib/frrlua.c | |
| parent | 479d37cce04147d50c3b8a2dcd2b4583b9e9232a (diff) | |
lib: encode plen when passing prefixes to scripts
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrlua.c')
| -rw-r--r-- | lib/frrlua.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c index 4d576829c5..eeac98ccd8 100644 --- a/lib/frrlua.c +++ b/lib/frrlua.c @@ -78,7 +78,9 @@ int frrlua_newtable_prefix(lua_State *L, const struct prefix *prefix) lua_newtable(L); lua_pushstring(L, prefix2str(prefix, buffer, 100)); - lua_setfield(L, -2, "route"); + lua_setfield(L, -2, "network"); + lua_pushinteger(L, prefix->prefixlen); + lua_setfield(L, -2, "length"); lua_pushinteger(L, prefix->family); lua_setfield(L, -2, "family"); |
