hello. I want to write a filter to capture all IPv6 packets that match the net prefix with a subnet id. With ipv4 is simple: net 192.168.5 but with ipv6 this not works for me: net fec0:abcd:1234:: How can i capture the packets that match with network prefix? Thanks and sorry for my poor english asked 22 Jun '12, 01:17 jorpoz |
One Answer:
For IPv6 you must specify the mask length, as there is no implicit definition as with IPv4. See man page of pcap-filter
So, the filter would be something like: Regards answered 22 Jun '12, 02:04 Kurt Knochner ♦ edited 22 Jun '12, 02:05 |
ok, i thought that i've tried that option, but it is obviously i didn't. It works. Thanks.