diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2014-01-16 21:25:35 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-01-17 15:35:27 +0400 |
commit | 42b8eaa35951e5381a7963d6bded7fa28b9b1713 (patch) | |
tree | 444f79a919b7611ac762879cddace471f444c7b3 /accel-pppd | |
parent | fb63e5d509681449e4b2428bc8c023d01895dd9d (diff) | |
download | accel-ppp-42b8eaa35951e5381a7963d6bded7fa28b9b1713.tar.gz accel-ppp-42b8eaa35951e5381a7963d6bded7fa28b9b1713.zip |
pppoe: handle IFW-SESSION TR-101 sub-tag
This TR-101 sub-tag has no payload.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/ctrl/pppoe/tr101.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/pppoe/tr101.c b/accel-pppd/ctrl/pppoe/tr101.c index ee3b78d3..6fe29a8a 100644 --- a/accel-pppd/ctrl/pppoe/tr101.c +++ b/accel-pppd/ctrl/pppoe/tr101.c @@ -28,6 +28,7 @@ #define OPT_MAX_INTER_DELAY_DOWN 0x8D #define OPT_ACTUAL_INTER_DELAY_DOWN 0x8E #define ACCESS_LOOP_ENCAP 0x90 +#define IFW_SESSION 0xFE static int tr101_send_request(struct pppoe_tag *tr101, struct rad_packet_t *pack, int type) { @@ -159,6 +160,12 @@ static int tr101_send_request(struct pppoe_tag *tr101, struct rad_packet_t *pack if (rad_packet_add_octets(pack, "ADSL-Forum", "Access-Loop-Encapsulation", (uint8_t *)str, 3)) return -1; break; + case IFW_SESSION: + if (len != 0) + goto inval; + if (rad_packet_add_octets(pack, "ADSL-Forum", "IWF-Session", NULL, 0)) + return -1; + break; } ptr += len; } |