diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-11-17 23:05:11 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-11-17 23:05:11 +0300 |
commit | 74c00bfc521a6136d4ee0d776f8d1717014b2bfc (patch) | |
tree | 3961e354f67fdf37ceed303fa9d2ab4dec4a3df2 /accel-pppd/ctrl/ipoe/backup.c | |
parent | b498b81ebc4eee1f75ff1ef87d65d8f223c31ba6 (diff) | |
download | accel-ppp-xebd-74c00bfc521a6136d4ee0d776f8d1717014b2bfc.tar.gz accel-ppp-xebd-74c00bfc521a6136d4ee0d776f8d1717014b2bfc.zip |
ipoe: implemented dhcp option 58
Diffstat (limited to 'accel-pppd/ctrl/ipoe/backup.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/backup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/backup.c b/accel-pppd/ctrl/ipoe/backup.c index b272731..4e72855 100644 --- a/accel-pppd/ctrl/ipoe/backup.c +++ b/accel-pppd/ctrl/ipoe/backup.c @@ -27,6 +27,7 @@ #define IPOE_TAG_MASK 13 #define IPOE_TAG_RELAY_SERVER_ID 14 #define IPOE_TAG_LEASE_TIME 15 +#define IPOE_TAG_RENEW_TIME 16 #define IPOE_TAG_IFINDEX 100 @@ -75,6 +76,7 @@ static int session_save(struct ap_session *ses, struct backup_mod *m) add_tag(IPOE_TAG_FLAGS, &flags, 4); add_tag(IPOE_TAG_RELAY_SERVER_ID, &conn->relay_server_id, 4); add_tag(IPOE_TAG_LEASE_TIME, &conn->lease_time, 4); + add_tag(IPOE_TAG_RENEW_TIME, &conn->renew_time, 4); add_tag(IPOE_TAG_IFNAME, conn->serv->ifname, strlen(conn->serv->ifname) + 1); if (conn->client_id) @@ -195,6 +197,9 @@ static struct ap_session *ctrl_restore(struct backup_mod *m) case IPOE_TAG_LEASE_TIME: ses->lease_time = *(uint32_t *)t->data; break; + case IPOE_TAG_RENEW_TIME: + ses->renew_time = *(uint32_t *)t->data; + break; } } |