tcpdump mailing list archives
IP range implementation given an IP address and subnet mask
From: Andrej van der Zee <andrejvanderzee () gmail com>
Date: Sun, 16 Oct 2011 10:51:41 +0200
Hi, I would like to implement an IP address range filter similar to the BPF capture filter that takes an IP address and subnet mask (like in "net 192.168.0.0 and mask 255.255.255.0"). What would be the best way to calculate this in C? Or in which file can I find the BPF implementation of this expression? Cheers, Andrej - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- IP range implementation given an IP address and subnet mask Andrej van der Zee (Nov 27)
- Re: IP range implementation given an IP address and subnet mask Andrej van der Zee (Nov 27)
