I am working on LUA script on top of proxy parsers to extract ports from url's among other things. I have an issue working with integers, while strings are extracted properly. Not to post full script here are the main parts, which work fine in LUA IDE, but have issues with integers in SA:
While other string based extractions are working in SA fine in same parser. So how do you work with integers in LUA-NWDB setup? Why is it treating number as integer and how to convert from LUA number/string to NWDB UInt16?
I can of course use string based metakeys instead for port extraction, but it would be nice to unify LUA extraction with existing meta model and to put ip.dstport to ip.dstport not to ip.dstport.string or something.
Maybe I can convert string to ip.dstport via some table map or index magic?