diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2018-12-19 19:13:08 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2018-12-20 06:21:28 +0300 |
commit | 6f6f7f2efb9432efe7d3b4f749022da2cfc39fb3 (patch) | |
tree | bb45d7278f274715e819eda54aaa03656fe1ebed /accel-pppd/radius | |
parent | 7951559fbc6d75e930ee50a0ed18da3912439e25 (diff) | |
download | accel-ppp-6f6f7f2efb9432efe7d3b4f749022da2cfc39fb3.tar.gz accel-ppp-6f6f7f2efb9432efe7d3b4f749022da2cfc39fb3.zip |
iputils: add 'src' and 'gw' parameters to iproute_del()
Rework iproute_del() to have the same parameters as iproute_add().
This will allow callers to specify more precisely the route they want
to delete.
Callers will later be converted to make use of these parameters to
ensure that the removed route precisely matches the one that was
originaly inserted.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r-- | accel-pppd/radius/radius.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index 062e3b72..abcb2e5d 100644 --- a/accel-pppd/radius/radius.c +++ b/accel-pppd/radius/radius.c @@ -628,7 +628,7 @@ static void ses_finishing(struct ap_session *ses) for (fr = rpd->fr; fr; fr = fr->next) { if (fr->gw) - iproute_del(0, fr->dst, 3, fr->mask, fr->prio); + iproute_del(0, 0, fr->dst, 0, 3, fr->mask, fr->prio); } if (rpd->acct_started || rpd->acct_req) |