xtables-addons: Fix Lua packet script implementation
authorLuka Perkov <luka@openwrt.org>
Tue, 10 May 2016 22:36:35 +0000 (22:36 +0000)
committerLuka Perkov <luka@openwrt.org>
Tue, 10 May 2016 22:36:35 +0000 (22:36 +0000)
commit22fb4f60f31e4ee482eb556d35612f90ec60e816
tree0cb5e1681a70af322f029b7a22cac9a655f597a2
parentc1bf157e09d4bc9ebe0f9846ccaa8aea16e1cec2
xtables-addons: Fix Lua packet script implementation

lua_packet_segment parameter start has type char pointer; in function lua_tg
it's assigned an uint16 value generating compiler warnings obviously indicating
posssible seg fault problems. Fix the issue by using the correct skb functions
so the parameter points to the position inside the sk_buff

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Stijn Cleynhens <stijn.cleynhens@gmail.com>
SVN-Revision: 49331
package/network/utils/xtables-addons/patches/201-fix-lua-packetscript.patch