I´m using libjpcap to capture packets from the network and handle them in my application. Currently, we can use filters so that we capture only from a certain destination. For example, src host 10.159.2.3
will only capture traffic from that endpoint.
Recently we´ve added GRE packet support, but filters are not working as the user expected. In our case, the GRE packet´s payload is an IPv4 packet.
Is there a way to enter a filter that will filter packets based on the src and/or dst of the contained IPv4 packet ? I'm aware that Wireshark will handle the case, so I'm trying to include it here.