I have a pcap file and I'm using a utility for manipulating its packets. This utility accepts Berkeley Packet Filter (BPF) filters to filter which packets to manipulate.
I'd like to manipulate only IPv6 packets with a certain dest or source address, for example: 2001:4f8:3:d::61 or 2607:f2c0:f00f:b001::face:b00c.
What is the right BPF filter to write here?
Have you tried
ip6 net <your_ipv6_network_prefix>
? https://www.tcpdump.org/manpages/pcap-filter.7.html