X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/890bffb510b300b8ed55357c6d9e99f1c6de22e9..4b119fa4bf3455ce5eb17e9bccfd2eb1baac7f12:/sessionctl.c?ds=sidebyside diff --git a/sessionctl.c b/sessionctl.c index 635d202..a8c11bd 100644 --- a/sessionctl.c +++ b/sessionctl.c @@ -1,12 +1,13 @@ #include +#include +#include + #include "l2tpns.h" #include "plugin.h" #include "control.h" /* session control */ -char const *cvs_id = "$Id: sessionctl.c,v 1.4 2005-10-11 09:04:53 bodea Exp $"; - int plugin_api_version = PLUGIN_API_VERSION; static struct pluginfuncs *f = 0; @@ -58,7 +59,7 @@ int plugin_control(struct param_control *data) reason = "Requested by administrator."; if (data->argv[0][0] == 'd') - f->sessionshutdown(session, reason, 3, 0); + f->sessionshutdown(session, reason, CDN_ADMIN_DISC, TERM_ADMIN_RESET); else f->sessionkill(session, reason);