diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-12 16:59:05 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-12 16:59:05 +0400 |
commit | d0fa7ad6fb1d0ace4c292c7084ff1752ef5c45b7 (patch) | |
tree | 14a76f956b2b6f968bd10e7933769b01c5ce88b8 /accel-pppd/radius/req.c | |
parent | 48e3ff7f660efdf56b2dd53955de7e790f51e336 (diff) | |
download | accel-ppp-xebd-d0fa7ad6fb1d0ace4c292c7084ff1752ef5c45b7.tar.gz accel-ppp-xebd-d0fa7ad6fb1d0ace4c292c7084ff1752ef5c45b7.zip |
radius: add support for Nas-Port-Id attribute (interface name)
Diffstat (limited to 'accel-pppd/radius/req.c')
-rw-r--r-- | accel-pppd/radius/req.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c index 2b789ad..818252e 100644 --- a/accel-pppd/radius/req.c +++ b/accel-pppd/radius/req.c @@ -81,6 +81,9 @@ static struct rad_req_t *__rad_req_alloc(struct radius_pd_t *rpd, int code, cons if (rad_packet_add_int(req->pack, NULL, "NAS-Port", rpd->ses->unit_idx)) goto out_err; + if (rad_packet_add_str(req->pack, NULL, "NAS-Port-Id", rpd->ses->ifname)) + goto out_err; + if (req->rpd->ses->ctrl->type == CTRL_TYPE_IPOE) { if (rad_packet_add_val(req->pack, NULL, "NAS-Port-Type", "Ethernet")) goto out_err; |