+ else if (*p == 27)
+ {
+ // Session-Timeout
+ uint32_t to = ntohl(*(uint32_t *)(p + 2));
+
+ LOG(3, s, session[s].tunnel, " Radius reply contains Session-Timeout = %u\n", to);
+ if (to > 0)
+ {
+ session[s].session_timeout = to;
+ }
+ }
+ else if (*p == 28)
+ {
+ // Idle-Timeout
+ uint32_t to = ntohl(*(uint32_t *)(p + 2));
+
+ LOG(3, s, session[s].tunnel, " Radius reply contains Idle-Timeout = %u\n", to);
+ if (to > 0)
+ {
+ session[s].idle_timeout = to;
+ }
+ }