aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/sgsn_vty.c
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-09-02 13:17:15 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-02 20:20:05 +0200
commit190acf6fd03f7f9a92b3e0044abf455b8a465c33 (patch)
tree57a4d24360da524887b1b60dab318cffe33b3897 /openbsc/src/gprs/sgsn_vty.c
parent96903c4b2d401f2c192f0c68ef251043bdf1967e (diff)
vty: Generalize ournode_exit() and ournode_end()
ournode_exit() duplicates most of bsc_vty_go_parent(). This patch fixes the inconsistencies of both functions within bsc_vty_go_parent() and replaces the implementation of ournode_exit() by a call to it. This makes 'exit' behave exactly like ^D in all openbsc nodes. ournode_end() has been changed to walk through the intermediate nodes until one of the top nodes is reached. This allows for cleanups to be done on the way. Note that in config mode if the tree is searched along the nodes toward the config node and a command is not found this way, a rollback is done by just replacing the vty's node and index member variable by the saved old values which might break the whole thing, when there has been a free() on the way.
Diffstat (limited to 'openbsc/src/gprs/sgsn_vty.c')
0 files changed, 0 insertions, 0 deletions