diff options
| author | Amol Lad <amol.lad@4rf.com> | 2020-12-17 13:38:06 +0530 | 
|---|---|---|
| committer | Reuben Dowle <reuben.dowle@4rf.com> | 2021-04-06 09:23:42 +1200 | 
| commit | 9084e209611496f98c4960928fbecd51095ebfd5 (patch) | |
| tree | 2f98d1e21c230a7f2871fcfbd174a5fe6926a593 /nhrpd/nhrp_vty.c | |
| parent | 9f7f6d3c6bfd86b40fb8a4abfd7eb35650399300 (diff) | |
nhrpd: Introduce new - nflog mutlicast-nflog-group (1-65535) - command
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
Diffstat (limited to 'nhrpd/nhrp_vty.c')
| -rw-r--r-- | nhrpd/nhrp_vty.c | 30 | 
1 files changed, 30 insertions, 0 deletions
diff --git a/nhrpd/nhrp_vty.c b/nhrpd/nhrp_vty.c index c16a816a36..48365bafb3 100644 --- a/nhrpd/nhrp_vty.c +++ b/nhrpd/nhrp_vty.c @@ -187,6 +187,9 @@ static int nhrp_config_write(struct vty *vty)  	if (netlink_nflog_group) {  		vty_out(vty, "nhrp nflog-group %d\n", netlink_nflog_group);  	} +	if (netlink_mcast_nflog_group) +		vty_out(vty, "nhrp multicast-nflog-group %d\n", +			netlink_mcast_nflog_group);  	return 0;  } @@ -257,6 +260,31 @@ DEFUN(no_nhrp_nflog_group, no_nhrp_nflog_group_cmd,  	return CMD_SUCCESS;  } +DEFUN(nhrp_multicast_nflog_group, nhrp_multicast_nflog_group_cmd, +	"nhrp multicast-nflog-group (1-65535)", +	NHRP_STR +	"Specify NFLOG group number for Multicast Packets\n" +	"NFLOG group number\n") +{ +	uint32_t nfgroup; + +	nfgroup = strtoul(argv[2]->arg, NULL, 10); +	netlink_mcast_set_nflog_group(nfgroup); + +	return CMD_SUCCESS; +} + +DEFUN(no_nhrp_multicast_nflog_group, no_nhrp_multicast_nflog_group_cmd, +	"no nhrp multicast-nflog-group [(1-65535)]", +	NO_STR +	NHRP_STR +	"Specify NFLOG group number\n" +	"NFLOG group number\n") +{ +	netlink_mcast_set_nflog_group(0); +	return CMD_SUCCESS; +} +  DEFUN(tunnel_protection, tunnel_protection_cmd,  	"tunnel protection vici profile PROFILE [fallback-profile FALLBACK]",  	"NHRP/GRE integration\n" @@ -1234,6 +1262,8 @@ void nhrp_config_init(void)  	install_element(CONFIG_NODE, &no_nhrp_event_socket_cmd);  	install_element(CONFIG_NODE, &nhrp_nflog_group_cmd);  	install_element(CONFIG_NODE, &no_nhrp_nflog_group_cmd); +	install_element(CONFIG_NODE, &nhrp_multicast_nflog_group_cmd); +	install_element(CONFIG_NODE, &no_nhrp_multicast_nflog_group_cmd);  	/* interface specific commands */  	install_node(&nhrp_interface_node);  | 
