lua dissector ip address subnet

asked 2018-07-16 01:00:26 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hello All,

I want to run dissector only when Dest IP address within subnet.

192.168.10.1 within 192.168.10.0/24.

Can someone guide me if lua have any pre defined functions to check above ?

edit retag flag offensive close merge delete

Comments

How does 192.168.10.1 within 192.168.10.0/2 work? It is (by definition), so please reformulate your requirement.

Jaap gravatar imageJaap ( 2018-07-16 07:36:37 +0000 )edit

How can I write that in wireshark lua ?

Aj gravatar imageAj ( 2018-07-16 12:15:37 +0000 )edit