summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/lua.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-08-03 14:31:52 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-08-03 14:31:52 +0400
commit95586a13a28c93e60f8da6b728b0e7b57cdff5f1 (patch)
treeaf7e8c580068974b5b60d564b6fb45b7efef6ba0 /accel-pppd/ctrl/ipoe/lua.c
parentff80a772e3116afa4513397db2aa51962ff32994 (diff)
downloadaccel-ppp-xebd-95586a13a28c93e60f8da6b728b0e7b57cdff5f1.tar.gz
accel-ppp-xebd-95586a13a28c93e60f8da6b728b0e7b57cdff5f1.zip
ipoe: implemented dhcp relay
Diffstat (limited to 'accel-pppd/ctrl/ipoe/lua.c')
-rw-r--r--accel-pppd/ctrl/ipoe/lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/lua.c b/accel-pppd/ctrl/ipoe/lua.c
index 0b24635..dbc87e2 100644
--- a/accel-pppd/ctrl/ipoe/lua.c
+++ b/accel-pppd/ctrl/ipoe/lua.c
@@ -146,7 +146,7 @@ static int packet4_agent_circuit_id(lua_State *L)
return 0;
if (ses->agent_circuit_id)
- lua_pushlstring(L, (char *)ses->agent_circuit_id->data, ses->agent_circuit_id->len);
+ lua_pushlstring(L, (char *)(ses->agent_circuit_id + 1), *ses->agent_circuit_id);
else
lua_pushnil(L);
@@ -161,7 +161,7 @@ static int packet4_agent_remote_id(lua_State *L)
return 0;
if (ses->agent_remote_id)
- lua_pushlstring(L, (char *)ses->agent_remote_id->data, ses->agent_remote_id->len);
+ lua_pushlstring(L, (char *)(ses->agent_remote_id + 1), *ses->agent_remote_id);
else
lua_pushnil(L);