From 42b8eaa35951e5381a7963d6bded7fa28b9b1713 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Thu, 16 Jan 2014 21:25:35 +0100 Subject: pppoe: handle IFW-SESSION TR-101 sub-tag This TR-101 sub-tag has no payload. Signed-off-by: Guillaume Nault --- accel-pppd/ctrl/pppoe/tr101.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/pppoe/tr101.c b/accel-pppd/ctrl/pppoe/tr101.c index ee3b78d..6fe29a8 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; } -- cgit v1.2.3