I'm trying to rule out some issues and needing to capture all ICMP messages except echo/echo reply. However the issue I'm struggling to find a way around is I only want these involving a particular host.
The filter I've been trying is tcpdump icmp and 'icmp[0] != 8 and icmp[0] != 0' and host x.x.x.x However that is only giving what is the x.x.x.x or y.y.y.y hosts. Example of what I get but wanting to only have for z.z.z.z portion
18:06:07.823692 IP x.x.x.x > y.y.y.y: ICMP host z.z.z.z unreachable, length 48
Does anyone have any ideas on how to accomplish this?