Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cli: fix nft -i command crashes when try to input multi line command | Guruswamy Basavaiah | 2014-06-10 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When try to input multiline command in "nft -i", it crashes. Issue is, function cli_append_multiline() return null in case of multiline command. But in the calling function cli_complete(), cli_exit is getting called, which in turn calls rl_callback_handler_remove() and the handler is getting removed. [root@localhost ~]# nft -i nft> add table filter nft> list table \ readline: readline_callback_read_char() called with no handler! Aborted (core dumped) [root@localhost ~]# After this patch, it shows: nft> list table \ .... filter table ip filter { } nft> The ".... " prompt is used to indicate a multiline command, similar to what Python does. Signed-off-by: Guruswamy Basavaiah <guru2018@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | cli: reset terminal when CTRL+d is pressed | Eric Leblond | 2013-06-08 | 1 | -1/+4 |
| | | | | | The terminal was not correctly resetted when CTRL+d was pressed. The result was that reset has to be called from shell after exit. | ||||
* | cli: add quit command | Eric Leblond | 2013-06-08 | 1 | -0/+5 |
| | |||||
* | cli: complete basic functionality of the interactive mode | Pablo Neira Ayuso | 2013-05-19 | 1 | -5/+7 |
| | | | | | | | | | | This patch adds missing code to get basic interactive mode operative via `nft -i', including parsing, evaluation, command execution via netlink and error reporting. Autocomplete is not yet implemented. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | Initial commitv0.01-alpha1 | Patrick McHardy | 2009-03-18 | 1 | -0/+175 |