#!/usr/sbin/dtrace -s fbt::nd6_ns_input:entry { ip = (struct ip6_hdr *)args[0]->m_data; nd = (struct nd_neighbor_solicit *)args[0]->m_data + args[1]; printf("%s: NS from %s to %s, target %s", stringof(args[0]->m_pkthdr.rcvif->if_xname), inet_ntoa6(&ip->ip6_src), inet_ntoa6(&ip->ip6_dst), inet_ntoa6(&nd->nd_ns_target)); } fbt::nd6_na_output_fib:entry { printf("%s: NA to %s, target %s", stringof(args[0]->if_xname), inet_ntoa6(args[1]), inet_ntoa6(args[2])); }