lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

I'm using LUA with wireshark and my problem is with LUA.
Here is a part of my code :

ctxId = Field.new("h248.ctx")

extract_com = Listener.new()

function extract_com.packet()

	print (ctxId())

	test = tostring(ctxId())
	print (test)
end

I don't understand why with th line: print (ctxId()), it prints every context Ids but when I put it as a string, I only get the first one.
How can I get the others?

Also with that:
	table = {}
	test = getmetatable (ctxId())
	table = test.__tostring(ctxId())
	print (table)

I only get the first one.
How can I have the others?

Thanks for your help.
Joseph

----------------------------------------------------------------------------------------------------

Ce message et tout document joint sont confidentiels et à l'intention exclusive des destinataires. S'ils vous ont été adressés par erreur, merci d'en informer immédiatement l'expéditeur et de les détruire. Toute copie, diffusion ou utilisation non autorisée est interdite. Tout message électronique est susceptible d'altération : Astellia décline toute responsabilité si le message ou les documents joints ont subi une quelconque modification.

This message and any attachment are confidential and intended solely to its addressees. If you are not the intended recipient please cancel it and inform immediately the sender. Any unauthorised copy or dissemination is prohibited. Electronic messages may be altered: Astellia shall not be liable for those circumstances.

----------------------------------------------------------------------------------------------------