summaryrefslogtreecommitdiffstats
path: root/lib/vty.h
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2017-07-11 20:41:44 +0200
committerLou Berger <lberger@labn.net>2017-07-11 20:41:44 +0200
commitc75af349d7a055ce0b2fcaf9bfd67e5cef43082c (patch)
tree23ed9348e5975f389c2e718a54938f3e8d44fdee /lib/vty.h
parentvty: add some defines for backwards compatibility (diff)
downloadfrr-c75af349d7a055ce0b2fcaf9bfd67e5cef43082c.tar.xz
frr-c75af349d7a055ce0b2fcaf9bfd67e5cef43082c.zip
vty: add some more defines for backwards compatibility
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to '')
-rw-r--r--lib/vty.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vty.h b/lib/vty.h
index 61d6504ed..b4a55180d 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -186,6 +186,10 @@ struct vty_arg
#define VTY_NEWLINE VTYNL
#define VTY_GET_INTEGER(desc,v,str) {(v)=strtoul ((str), NULL, 10);}
#define VTY_GET_INTEGER_RANGE(desc,v,str,min,max) {(v)=strtoul ((str), NULL, 10);}
+#define VTY_GET_ULONG(desc,v,str) {(v)=strtoul ((str), NULL, 10);}
+#define VTY_GET_ULL(desc,v,str) {(v)=strtoull ((str), NULL, 10);}
+#define VTY_GET_IPV4_ADDRESS(desc,v,str) inet_aton ((str), &(v))
+#define VTY_GET_IPV4_PREFIX(desc,v,str) str2prefix_ipv4 ((str), &(v))
/* Default time out value */
#define VTY_TIMEOUT_DEFAULT 600