summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-09-30 08:20:31 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-09-30 08:20:45 +0300
commitae9537903c496dc50693c59b7b0751aee38ed012 (patch)
treeb1eddd7d5178eac802cb4018a0d75bd899133457 /vtysh
parent55bccfd7198195aef8f968691b53ec867cbe3989 (diff)
downloadquagga-old-nhrp.tar.bz2
quagga-old-nhrp.tar.xz
add nhrpd skeletonold-nhrp
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/Makefile.am2
-rw-r--r--vtysh/vtysh.c1
-rw-r--r--vtysh/vtysh.h5
3 files changed, 5 insertions, 3 deletions
diff --git a/vtysh/Makefile.am b/vtysh/Makefile.am
index 5c325ec2..92feb27e 100644
--- a/vtysh/Makefile.am
+++ b/vtysh/Makefile.am
@@ -24,7 +24,7 @@ EXTRA_DIST = extract.pl
vtysh_cmd_FILES = $(top_srcdir)/bgpd/*.c $(top_srcdir)/isisd/*.c \
$(top_srcdir)/ospfd/*.c $(top_srcdir)/ospf6d/*.c \
$(top_srcdir)/ripd/*.c $(top_srcdir)/ripngd/*.c \
- $(top_srcdir)/babeld/*.c \
+ $(top_srcdir)/babeld/*.c $(top_srcdir)/nhrpd/*.c \
$(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \
$(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \
$(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 89b9b257..6c98a611 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -59,6 +59,7 @@ struct vtysh_client
{ .fd = -1, .name = "bgpd", .flag = VTYSH_BGPD, .path = BGP_VTYSH_PATH},
{ .fd = -1, .name = "isisd", .flag = VTYSH_ISISD, .path = ISIS_VTYSH_PATH},
{ .fd = -1, .name = "babeld", .flag = VTYSH_BABELD, .path = BABEL_VTYSH_PATH},
+ { .fd = -1, .name = "nhrpd", .flag = VTYSH_NHRPD, .path = NHRP_VTYSH_PATH},
};
diff --git a/vtysh/vtysh.h b/vtysh/vtysh.h
index 3cc7bafe..bf120c51 100644
--- a/vtysh/vtysh.h
+++ b/vtysh/vtysh.h
@@ -29,8 +29,9 @@
#define VTYSH_OSPF6D 0x10
#define VTYSH_BGPD 0x20
#define VTYSH_ISISD 0x40
-#define VTYSH_BABELD 0x80
-#define VTYSH_ALL VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_BGPD|VTYSH_ISISD|VTYSH_BABELD
+#define VTYSH_BABELD 0x80
+#define VTYSH_NHRPD 0x100
+#define VTYSH_ALL VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_BGPD|VTYSH_ISISD|VTYSH_BABELD|VTYSH_NHRPD
#define VTYSH_RMAP VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_BGPD|VTYSH_BABELD
#define VTYSH_INTERFACE VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_ISISD|VTYSH_BABELD