summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--radsecproxy.c6
-rw-r--r--radsecproxy.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 83c3dd4..30cc0f1 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1906,8 +1906,8 @@ void radsrv(struct request *rq) {
goto exit;
}
- if (options.rpf && !strcmp(rq->from->conf->name, to->conf->name)) {
- debug(DBG_INFO, "radsrv: RPF failed, not forwarding request from client %s to server %s, discarding",
+ if (options.loopprevention && !strcmp(rq->from->conf->name, to->conf->name)) {
+ debug(DBG_INFO, "radsrv: Loop prevented, not forwarding request from client %s to server %s, discarding",
rq->from->conf->name, to->conf->name);
goto exit;
}
@@ -3126,7 +3126,7 @@ void getmainconfig(const char *configfile) {
"SourceTCP", CONF_STR, &options.sourcetcp,
"LogLevel", CONF_STR, &loglevel,
"LogDestination", CONF_STR, &options.logdestination,
- "RPFCheck", CONF_BLN, &options.rpf,
+ "LoopPrevention", CONF_BLN, &options.loopprevention,
"Client", CONF_CBK, confclient_cb,
"Server", CONF_CBK, confserver_cb,
"Realm", CONF_CBK, confrealm_cb,
diff --git a/radsecproxy.h b/radsecproxy.h
index fdf9f36..476011c 100644
--- a/radsecproxy.h
+++ b/radsecproxy.h
@@ -47,7 +47,7 @@ struct options {
char *sourcetcp;
char *logdestination;
uint8_t loglevel;
- uint8_t rpf;
+ uint8_t loopprevention;
};
/* requests that our client will send */