START sys/net/pflog 2024-07-26T00:48:27Z ==== busy-rdomains ==== # Check if rdomains are busy. ==== ifconfig ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' *** Error 1 in target 'stamp-stop' (ignored) rm -f stamp-bpf* # Destroy interfaces. /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 169.254.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.2 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::2 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.3 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::3 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.4 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::4 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.5 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::5 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.6 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::6 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::11 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::12 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.14 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::14 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.21 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::21 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.22 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::22 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.23 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::23 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 169.254.0.24 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 fc00::24 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet 127.0.0.1 delete ifconfig: SIOCDIFADDR: Can't assign requested address *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 inet6 ::1 delete /sbin/ifconfig pflog11 destroy ifconfig: pflog11: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig pflog12 destroy ifconfig: pflog12: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig pflog13 destroy ifconfig: pflog13: SIOCIFDESTROY: Device not configured *** Error 1 in target 'unconfig' (ignored) /sbin/ifconfig lo11 destroy rm -f stamp-ifconfig # Create and configure pflog and loopback interfaces. /sbin/ifconfig pflog11 create /sbin/ifconfig pflog12 create /sbin/ifconfig pflog13 create /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 127.0.0.1/8 /sbin/ifconfig lo11 inet6 ::1/128 /sbin/ifconfig lo11 inet 169.254.0.1/32 alias /sbin/ifconfig lo11 inet6 fc00::1/128 /sbin/ifconfig lo11 inet 169.254.0.2/32 alias /sbin/ifconfig lo11 inet6 fc00::2/128 /sbin/ifconfig lo11 inet 169.254.0.3/32 alias /sbin/ifconfig lo11 inet6 fc00::3/128 /sbin/ifconfig lo11 inet 169.254.0.4/32 alias /sbin/ifconfig lo11 inet6 fc00::4/128 /sbin/ifconfig lo11 inet 169.254.0.5/32 alias /sbin/ifconfig lo11 inet6 fc00::5/128 /sbin/ifconfig lo11 inet 169.254.0.6/32 alias /sbin/ifconfig lo11 inet6 fc00::6/128 /sbin/ifconfig lo11 inet 169.254.0.11/32 alias /sbin/ifconfig lo11 inet6 fc00::11/128 /sbin/ifconfig lo11 inet 169.254.0.12/32 alias /sbin/ifconfig lo11 inet6 fc00::12/128 /sbin/ifconfig lo11 inet 169.254.0.14/32 alias /sbin/ifconfig lo11 inet6 fc00::14/128 /sbin/ifconfig lo11 inet 169.254.0.21/32 alias /sbin/ifconfig lo11 inet6 fc00::21/128 /sbin/ifconfig lo11 inet 169.254.0.22/32 alias /sbin/ifconfig lo11 inet6 fc00::22/128 /sbin/ifconfig lo11 inet 169.254.0.23/32 alias /sbin/ifconfig lo11 inet6 fc00::23/128 /sbin/ifconfig lo11 inet 169.254.0.24/32 alias /sbin/ifconfig lo11 inet6 fc00::24/128 # Wait until IPv6 addresses are no longer tentative. for i in `jot 50`; do if ! { /sbin/ifconfig pair11; /sbin/ifconfig pair12; /sbin/ifconfig lo13; } | fgrep -q tentative; then break; fi; sleep .1; done pair11: no such interface pair12: no such interface lo13: no such interface ! { /sbin/ifconfig pair11; /sbin/ifconfig pair12; /sbin/ifconfig lo13; } | fgrep tentative pair11: no such interface pair12: no such interface lo13: no such interface ==== pfctl ==== # Create python include file containing the addresses. rm -f addr.py addr.py.tmp echo 'N="11"' >>addr.py.tmp echo 'LO="lo11"' >>addr.py.tmp echo 'N1="11"' >>addr.py.tmp echo 'PFLOG_N1="pflog11"' >>addr.py.tmp echo 'N2="12"' >>addr.py.tmp echo 'PFLOG_N2="pflog12"' >>addr.py.tmp echo 'N3="13"' >>addr.py.tmp echo 'PFLOG_N3="pflog13"' >>addr.py.tmp mv addr.py.tmp addr.py # Load the pf rules into the kernel. cat addr.py /usr/src/regress/sys/net/pflog/pf.conf | /sbin/pfctl -n -f - cat addr.py /usr/src/regress/sys/net/pflog/pf.conf | /sbin/pfctl -a regress -f - ==== run-ping-1 ==== rm -f pflog11.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog11' || true /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog11 >pflog11.tcpdump & rm -f stamp-stop rm -f pflog12.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog12' || true tcpdump: listening on pflog11, link-type PFLOG /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog12 >pflog12.tcpdump & rm -f stamp-stop rm -f pflog13.tcpdump pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog13' || true tcpdump: listening on pflog12, link-type PFLOG /usr/sbin/tcpdump -l -e -vvv -s 2048 -ni pflog13 >pflog13.tcpdump & rm -f stamp-stop sleep 2 # XXX tcpdump: listening on pflog13, link-type PFLOG /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.1 PING 169.254.0.1 (169.254.0.1): 56 data bytes 64 bytes from 169.254.0.1: icmp_seq=0 ttl=255 time=0.052 ms --- 169.254.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.052/0.052/0.052/0.000 ms ==== run-ping6-1 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::1 PING fc00::1 (fc00::1): 56 data bytes 64 bytes from fc00::1: icmp_seq=0 hlim=64 time=0.051 ms --- fc00::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.051/0.051/0.051/0.000 ms ==== run-udp-1 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.1 discard & ==== run-udp6-1 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::1 discard & ==== run-ping-2 ==== /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.2 PING 169.254.0.2 (169.254.0.2): 56 data bytes 64 bytes from 169.254.0.2: icmp_seq=0 ttl=255 time=0.040 ms --- 169.254.0.2 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.040/0.040/0.040/0.000 ms ==== run-ping6-2 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::2 PING fc00::2 (fc00::2): 56 data bytes 64 bytes from fc00::2: icmp_seq=0 hlim=64 time=0.048 ms --- fc00::2 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.048/0.048/0.048/0.000 ms ==== run-udp-2 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.2 discard & ==== run-udp6-2 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::2 discard & ==== run-ping-3 ==== /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.3 PING 169.254.0.3 (169.254.0.3): 56 data bytes 64 bytes from 169.254.0.3: icmp_seq=0 ttl=255 time=0.038 ms --- 169.254.0.3 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.038/0.038/0.038/0.000 ms ==== run-ping6-3 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::3 PING fc00::3 (fc00::3): 56 data bytes 64 bytes from fc00::3: icmp_seq=0 hlim=64 time=0.049 ms --- fc00::3 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.049/0.049/0.049/0.000 ms ==== run-udp-3 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.3 discard & ==== run-udp6-3 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::3 discard & ==== run-ping-4 ==== /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.4 PING 169.254.0.4 (169.254.0.4): 56 data bytes 64 bytes from 169.254.0.4: icmp_seq=0 ttl=255 time=0.038 ms --- 169.254.0.4 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.038/0.038/0.038/0.000 ms ==== run-ping6-4 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::4 PING fc00::4 (fc00::4): 56 data bytes 64 bytes from fc00::4: icmp_seq=0 hlim=64 time=0.046 ms --- fc00::4 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.046/0.046/0.046/0.000 ms ==== run-udp-4 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.4 discard & ==== run-udp6-4 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::4 discard & ==== run-ping-5 ==== /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.5 PING 169.254.0.5 (169.254.0.5): 56 data bytes 64 bytes from 169.254.0.5: icmp_seq=0 ttl=255 time=0.037 ms --- 169.254.0.5 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.037/0.037/0.037/0.000 ms ==== run-ping6-5 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::5 PING fc00::5 (fc00::5): 56 data bytes 64 bytes from fc00::5: icmp_seq=0 hlim=64 time=0.048 ms --- fc00::5 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.048/0.048/0.048/0.000 ms ==== run-udp-5 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.5 discard & ==== run-udp6-5 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::5 discard & ==== run-ping-6 ==== /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.6 PING 169.254.0.6 (169.254.0.6): 56 data bytes 64 bytes from 169.254.0.6: icmp_seq=0 ttl=255 time=0.038 ms --- 169.254.0.6 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.038/0.038/0.038/0.000 ms ==== run-ping6-6 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::6 PING fc00::6 (fc00::6): 56 data bytes 64 bytes from fc00::6: icmp_seq=0 hlim=64 time=0.046 ms --- fc00::6 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.046/0.046/0.046/0.000 ms ==== run-udp-6 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.6 discard & ==== run-udp6-6 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::6 discard & ==== run-ping-11 ==== /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.11 PING 169.254.0.11 (169.254.0.11): 56 data bytes 64 bytes from 169.254.0.11: icmp_seq=0 ttl=255 time=0.041 ms --- 169.254.0.11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.041/0.041/0.041/0.000 ms ==== run-ping6-11 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::11 PING fc00::11 (fc00::11): 56 data bytes 64 bytes from fc00::11: icmp_seq=0 hlim=64 time=0.051 ms --- fc00::11 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.051/0.051/0.051/0.000 ms ==== run-udp-11 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.11 discard & ==== run-udp6-11 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::11 discard & ==== run-ping-12 ==== /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.12 PING 169.254.0.12 (169.254.0.12): 56 data bytes 64 bytes from 169.254.0.12: icmp_seq=0 ttl=255 time=0.046 ms --- 169.254.0.12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.046/0.046/0.046/0.000 ms ==== run-ping6-12 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::12 PING fc00::12 (fc00::12): 56 data bytes 64 bytes from fc00::12: icmp_seq=0 hlim=64 time=0.049 ms --- fc00::12 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.049/0.049/0.049/0.000 ms ==== run-udp-12 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.12 discard & ==== run-udp6-12 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::12 discard & ==== run-ping-14 ==== /sbin/ping -n -w 1 -c 1 -V 11 169.254.0.14 PING 169.254.0.14 (169.254.0.14): 56 data bytes 64 bytes from 169.254.0.14: icmp_seq=0 ttl=63 time=0.057 ms --- 169.254.0.14 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.057/0.057/0.057/0.000 ms ==== run-ping6-14 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 fc00::14 PING fc00::14 (fc00::14): 56 data bytes 64 bytes from fc00::14: icmp_seq=0 hlim=63 time=0.058 ms --- fc00::14 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.058/0.058/0.058/0.000 ms ==== run-udp-14 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 169.254.0.14 discard & ==== run-udp6-14 ==== # ignore errors, just send packet fast echo foo | nc -u -w 1 -V 11 fc00::14 discard & ==== run-ping6-0 ==== /sbin/ping6 -n -w 1 -c 1 -V 11 ::1 PING ::1 (::1): 56 data bytes 64 bytes from ::1: icmp_seq=0 hlim=64 time=0.047 ms --- ::1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.047/0.047/0.047/0.000 ms ==== run-udp6-0 ==== echo foo | nc -u -w 1 -V 11 ::1 discard ==== run-bpf-11 ==== sleep 2 # XXX pkill -f '^/usr/sbin/tcpdump -l -e -vvv -s 2048 -ni' 0 packets received by filter 0 packets dropped by kernel 88 packets received by filter 0 packets dropped by kernel 80 packets received by filter 0 packets dropped by kernel rm -f stamp-bpf* # show full logs cat pflog11.tcpdump 02:48:31.620565 rule 5.regress.3/(match) [uid 0, pid 78496] pass out on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo request (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 62271, len 84, bad ip cksum dc3b! -> 746a) 02:48:31.620577 rule 5.regress.3/(match) [uid 0, pid 78496] pass in on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo request (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 62271, len 84, bad ip cksum 0! -> 746a) 02:48:31.620586 rule 5.regress.3/(match) [uid 0, pid 78496] pass out on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo reply (id:6ce6 seq:0) [bad icmp cksum 0! -> 15b0] (ttl 255, id 51882, len 84, bad ip cksum 0! -> 9cff) 02:48:31.620590 rule 5.regress.3/(match) [uid 0, pid 78496] pass in on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo reply (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 51882, len 84, bad ip cksum 0! -> 9cff) 02:48:31.658741 rule 5.regress.11/(match) [uid 0, pid 78496] pass out on lo11: fc00::1 > fc00::1: icmp6: echo request (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.658750 rule 5.regress.11/(match) [uid 0, pid 78496] pass in on lo11: fc00::1 > fc00::1: icmp6: echo request (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.658761 rule 5.regress.11/(match) [uid 0, pid 78496] pass out on lo11: fc00::1 > fc00::1: icmp6: echo reply (id:b18d seq:0) [bad icmp6 cksum 0! -> ac82] (len 64, hlim 64) 02:48:31.658765 rule 5.regress.11/(match) [uid 0, pid 78496] pass in on lo11: fc00::1 > fc00::1: icmp6: echo reply (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.698696 rule 5.regress.3/(match) [uid 0, pid 78496] pass out on lo11: 169.254.0.1.38176 > 169.254.0.1.9: [bad udp cksum 4c4b! -> 3441] udp 4 (ttl 64, id 14002, len 32, bad ip cksum c! -> f01c) 02:48:31.698705 rule 5.regress.3/(match) [uid 0, pid 78496] pass in on lo11: 169.254.0.1.38176 > 169.254.0.1.9: [bad udp cksum 1c54! -> 3441] udp 4 (ttl 64, id 14002, len 32, bad ip cksum 0! -> f01c) ==== run-bpf-12 ==== # show full logs cat pflog12.tcpdump 02:48:31.620563 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo request (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 62271, len 84, bad ip cksum dc3b! -> 746a) 02:48:31.620576 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo request (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 62271, len 84, bad ip cksum 0! -> 746a) 02:48:31.620586 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo reply (id:6ce6 seq:0) [bad icmp cksum 0! -> 15b0] (ttl 255, id 51882, len 84, bad ip cksum 0! -> 9cff) 02:48:31.620589 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo reply (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 51882, len 84, bad ip cksum 0! -> 9cff) 02:48:31.658739 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::1 > fc00::1: icmp6: echo request (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.658748 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::1 > fc00::1: icmp6: echo request (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.658760 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::1 > fc00::1: icmp6: echo reply (id:b18d seq:0) [bad icmp6 cksum 0! -> ac82] (len 64, hlim 64) 02:48:31.658764 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::1 > fc00::1: icmp6: echo reply (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.698695 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.1.38176 > 169.254.0.1.9: [bad udp cksum 4c4b! -> 3441] udp 4 (ttl 64, id 14002, len 32, bad ip cksum c! -> f01c) 02:48:31.698704 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.1.38176 > 169.254.0.1.9: [bad udp cksum 1c54! -> 3441] udp 4 (ttl 64, id 14002, len 32, bad ip cksum 0! -> f01c) 02:48:31.698715 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.1 > 169.254.0.1: icmp: 169.254.0.1 udp port 9 unreachable [bad icmp cksum 0! -> 3c8] for 169.254.0.1.38176 > 169.254.0.1.9: udp 4 (ttl 64, id 14002, len 32, bad ip cksum 0! -> f01c) (ttl 255, id 48585, len 56, bad ip cksum eebc! -> a9fc) 02:48:31.698719 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.1 > 169.254.0.1: icmp: 169.254.0.1 udp port 9 unreachable [icmp cksum ok] for 169.254.0.1.38176 > 169.254.0.1.9: udp 4 (ttl 64, id 14002, len 32, bad ip cksum 0! -> f01c) (ttl 255, id 48585, len 56, bad ip cksum 0! -> a9fc) 02:48:31.736306 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::1.17762 > fc00::1.9: [invalid udp cksum 0] udp 4 [flowlabel 0x9d583] (len 12, hlim 64) 02:48:31.736316 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::1.17762 > fc00::1.9: [bad udp cksum 20f8! -> edec] udp 4 [flowlabel 0x9d583] (len 12, hlim 64) 02:48:31.736328 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::1 > fc00::1: icmp6: fc00::1 udp port 9 unreachable [bad icmp6 cksum 0! -> b492] (len 60, hlim 64) 02:48:31.736332 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::1 > fc00::1: icmp6: fc00::1 udp port 9 unreachable [icmp6 cksum ok] (len 60, hlim 64) 02:48:31.770401 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.2 > 169.254.0.2: icmp: echo request (id:783f seq:0) [icmp cksum ok] (ttl 255, id 44885, len 84, bad ip cksum 0! -> b852) 02:48:31.770413 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.2 > 169.254.0.2: icmp: echo request (id:783f seq:0) [icmp cksum ok] (ttl 255, id 44885, len 84, bad ip cksum 0! -> b852) 02:48:31.807796 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::2 > fc00::2: icmp6: echo request (id:d46e seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.807807 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::2 > fc00::2: icmp6: echo request (id:d46e seq:0) [icmp6 cksum ok] (len 64, hlim 64) ==== run-bpf-13 ==== # show full logs cat pflog13.tcpdump ==== run-bpf-nothing ==== # rule with pflog13 is never used ! grep . pflog13.tcpdump ==== run-bpf-everything ==== # rule with pflog12 matches on every packet grep 'regress\.1/.* > 169.254.0.1:' pflog12.tcpdump 02:48:31.620563 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo request (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 62271, len 84, bad ip cksum dc3b! -> 746a) 02:48:31.620576 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo request (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 62271, len 84, bad ip cksum 0! -> 746a) 02:48:31.620586 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo reply (id:6ce6 seq:0) [bad icmp cksum 0! -> 15b0] (ttl 255, id 51882, len 84, bad ip cksum 0! -> 9cff) 02:48:31.620589 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo reply (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 51882, len 84, bad ip cksum 0! -> 9cff) 02:48:31.698715 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.1 > 169.254.0.1: icmp: 169.254.0.1 udp port 9 unreachable [bad icmp cksum 0! -> 3c8] for 169.254.0.1.38176 > 169.254.0.1.9: udp 4 (ttl 64, id 14002, len 32, bad ip cksum 0! -> f01c) (ttl 255, id 48585, len 56, bad ip cksum eebc! -> a9fc) 02:48:31.698719 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.1 > 169.254.0.1: icmp: 169.254.0.1 udp port 9 unreachable [icmp cksum ok] for 169.254.0.1.38176 > 169.254.0.1.9: udp 4 (ttl 64, id 14002, len 32, bad ip cksum 0! -> f01c) (ttl 255, id 48585, len 56, bad ip cksum 0! -> a9fc) grep 'regress\.1/.* > 169.254.0.2:' pflog12.tcpdump 02:48:31.770401 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: 169.254.0.2 > 169.254.0.2: icmp: echo request (id:783f seq:0) [icmp cksum ok] (ttl 255, id 44885, len 84, bad ip cksum 0! -> b852) 02:48:31.770413 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: 169.254.0.2 > 169.254.0.2: icmp: echo request (id:783f seq:0) [icmp cksum ok] (ttl 255, id 44885, len 84, bad ip cksum 0! -> b852) grep 'regress\.1/.* > 169.254.0.3:' pflog12.tcpdump *** Error 1 in . (Makefile:205 'run-bpf-everything') FAILED ==== run-bpf-everything6 ==== # rule with pflog12 matches on every packet grep 'regress\.1/.* > fc00::1:' pflog12.tcpdump 02:48:31.658739 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::1 > fc00::1: icmp6: echo request (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.658748 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::1 > fc00::1: icmp6: echo request (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.658760 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::1 > fc00::1: icmp6: echo reply (id:b18d seq:0) [bad icmp6 cksum 0! -> ac82] (len 64, hlim 64) 02:48:31.658764 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::1 > fc00::1: icmp6: echo reply (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.736328 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::1 > fc00::1: icmp6: fc00::1 udp port 9 unreachable [bad icmp6 cksum 0! -> b492] (len 60, hlim 64) 02:48:31.736332 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::1 > fc00::1: icmp6: fc00::1 udp port 9 unreachable [icmp6 cksum ok] (len 60, hlim 64) grep 'regress\.1/.* > fc00::2:' pflog12.tcpdump 02:48:31.807796 rule 5.regress.1/(match) [uid 0, pid 78496] match out on lo11: fc00::2 > fc00::2: icmp6: echo request (id:d46e seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.807807 rule 5.regress.1/(match) [uid 0, pid 78496] match in on lo11: fc00::2 > fc00::2: icmp6: echo request (id:d46e seq:0) [icmp6 cksum ok] (len 64, hlim 64) grep 'regress\.1/.* > fc00::3:' pflog12.tcpdump *** Error 1 in . (Makefile:212 'run-bpf-everything6') FAILED ==== run-bpf-all ==== # reply without keep state grep 'regress\.3/.* 169.254.0.1 > 169.254.0.1: icmp: echo request' pflog11.tcpdump 02:48:31.620565 rule 5.regress.3/(match) [uid 0, pid 78496] pass out on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo request (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 62271, len 84, bad ip cksum dc3b! -> 746a) 02:48:31.620577 rule 5.regress.3/(match) [uid 0, pid 78496] pass in on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo request (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 62271, len 84, bad ip cksum 0! -> 746a) grep 'regress\.3/.* 169.254.0.1 > 169.254.0.1: icmp: echo reply' pflog11.tcpdump 02:48:31.620586 rule 5.regress.3/(match) [uid 0, pid 78496] pass out on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo reply (id:6ce6 seq:0) [bad icmp cksum 0! -> 15b0] (ttl 255, id 51882, len 84, bad ip cksum 0! -> 9cff) 02:48:31.620590 rule 5.regress.3/(match) [uid 0, pid 78496] pass in on lo11: 169.254.0.1 > 169.254.0.1: icmp: echo reply (id:6ce6 seq:0) [icmp cksum ok] (ttl 255, id 51882, len 84, bad ip cksum 0! -> 9cff) # no reply with keep state and without all grep 'regress\.4/.* 169.254.0.2 > 169.254.0.2: icmp: echo request' pflog11.tcpdump *** Error 1 in . (Makefile:224 'run-bpf-all') FAILED ==== run-bpf-all6 ==== # reply without keep state grep 'regress\.11/.* fc00::1 > fc00::1: icmp6: echo request' pflog11.tcpdump 02:48:31.658741 rule 5.regress.11/(match) [uid 0, pid 78496] pass out on lo11: fc00::1 > fc00::1: icmp6: echo request (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) 02:48:31.658750 rule 5.regress.11/(match) [uid 0, pid 78496] pass in on lo11: fc00::1 > fc00::1: icmp6: echo request (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) grep 'regress\.11/.* fc00::1 > fc00::1: icmp6: echo reply' pflog11.tcpdump 02:48:31.658761 rule 5.regress.11/(match) [uid 0, pid 78496] pass out on lo11: fc00::1 > fc00::1: icmp6: echo reply (id:b18d seq:0) [bad icmp6 cksum 0! -> ac82] (len 64, hlim 64) 02:48:31.658765 rule 5.regress.11/(match) [uid 0, pid 78496] pass in on lo11: fc00::1 > fc00::1: icmp6: echo reply (id:b18d seq:0) [icmp6 cksum ok] (len 64, hlim 64) # no reply with keep state and without all grep 'regress\.12/.* fc00::2 > fc00::2: icmp6: echo request' pflog11.tcpdump *** Error 1 in . (Makefile:243 'run-bpf-all6') FAILED ==== run-bpf-user ==== # out rule creates log entry with uid grep 'regress\.6/.* pass out on lo11: \[uid 0, pid [0-9]*\] 169.254.0.4\.[0-9]* > 169.254.0.4\.9: .* udp [0-9]' pflog11.tcpdump *** Error 1 in . (Makefile:258 'run-bpf-user') FAILED ==== run-bpf-user6 ==== # out rule creates log entry with uid grep 'regress\.14/.* pass out on lo11: \[uid 0, pid [0-9]*\] fc00::4\.[0-9]* > fc00::4\.9:.* udp [0-9]' pflog11.tcpdump *** Error 1 in . (Makefile:276 'run-bpf-user6') FAILED ==== run-bpf-matches ==== # XXX The log matches keyword seems to be totally broken. # pf_log_matches() is never called. Investigate later. DISABLED ==== run-bpf-rdr ==== # loopback input logs redirected packet grep 'regress\.2/.* pass in .*:.* 169.254.0.11 > 169.254.0.21: icmp: echo request' pflog11.tcpdump *** Error 1 in . (Makefile:303 'run-bpf-rdr') FAILED ==== run-bpf-rdr6 ==== # loopback input logs redirected packet grep 'regress\.10/.* pass in .*:.* fc00::11 > fc00::21: icmp6: echo request' pflog11.tcpdump *** Error 1 in . (Makefile:312 'run-bpf-rdr6') FAILED ==== run-bpf-nat ==== # loopback input logs redirected packet grep 'regress\.2/.* pass in .*:.* 169.254.0.22 > 169.254.0.12: icmp: echo request' pflog11.tcpdump *** Error 1 in . (Makefile:321 'run-bpf-nat') FAILED ==== run-bpf-nat6 ==== # loopback input logs redirected packet grep 'regress\.10/.* pass in .*:.* fc00::22 > fc00::12: icmp6: echo request' pflog11.tcpdump *** Error 1 in . (Makefile:330 'run-bpf-nat6') FAILED ==== run-bpf-af ==== # pf in rule logs original IPv4 packet grep 'regress\.22/.* pass in .*:.* 169.254.0.14 > 169.254.0.14: icmp: echo request' pflog11.tcpdump *** Error 1 in . (Makefile:339 'run-bpf-af') FAILED ==== run-bpf-af6 ==== # pf in rule logs original IPv6 packet grep 'regress\.23/.* pass in .*:.* fc00::14 > fc00::14: icmp6: echo request' pflog11.tcpdump *** Error 1 in . (Makefile:345 'run-bpf-af6') FAILED ==== run-bpf-rewrite ==== # rdr-to address has been rewritten grep '\[rewritten: src 169.254.0.11:[0-9]*, dst 169.254.0.21:[0-9]*\] 169.254.0.11 > 169.254.0.11' pflog11.tcpdump *** Error 1 in . (Makefile:351 'run-bpf-rewrite') FAILED ==== run-bpf-rewrite6 ==== # rdr-to address has been rewritten grep '\[rewritten: src fc00::11:[0-9]*, dst fc00::21:[0-9]*\] fc00::11 > fc00::11' pflog11.tcpdump *** Error 1 in . (Makefile:363 'run-bpf-rewrite6') FAILED ==== unconfig ==== # Destroy interfaces. /sbin/ifconfig lo11 rdomain 11 /sbin/ifconfig lo11 inet 169.254.0.1 delete /sbin/ifconfig lo11 inet6 fc00::1 delete /sbin/ifconfig lo11 inet 169.254.0.2 delete /sbin/ifconfig lo11 inet6 fc00::2 delete /sbin/ifconfig lo11 inet 169.254.0.3 delete /sbin/ifconfig lo11 inet6 fc00::3 delete /sbin/ifconfig lo11 inet 169.254.0.4 delete /sbin/ifconfig lo11 inet6 fc00::4 delete /sbin/ifconfig lo11 inet 169.254.0.5 delete /sbin/ifconfig lo11 inet6 fc00::5 delete /sbin/ifconfig lo11 inet 169.254.0.6 delete /sbin/ifconfig lo11 inet6 fc00::6 delete /sbin/ifconfig lo11 inet 169.254.0.11 delete /sbin/ifconfig lo11 inet6 fc00::11 delete /sbin/ifconfig lo11 inet 169.254.0.12 delete /sbin/ifconfig lo11 inet6 fc00::12 delete /sbin/ifconfig lo11 inet 169.254.0.14 delete /sbin/ifconfig lo11 inet6 fc00::14 delete /sbin/ifconfig lo11 inet 169.254.0.21 delete /sbin/ifconfig lo11 inet6 fc00::21 delete /sbin/ifconfig lo11 inet 169.254.0.22 delete /sbin/ifconfig lo11 inet6 fc00::22 delete /sbin/ifconfig lo11 inet 169.254.0.23 delete /sbin/ifconfig lo11 inet6 fc00::23 delete /sbin/ifconfig lo11 inet 169.254.0.24 delete /sbin/ifconfig lo11 inet6 fc00::24 delete /sbin/ifconfig lo11 inet 127.0.0.1 delete /sbin/ifconfig lo11 inet6 ::1 delete /sbin/ifconfig pflog11 destroy /sbin/ifconfig pflog12 destroy /sbin/ifconfig pflog13 destroy /sbin/ifconfig lo11 destroy rm -f stamp-ifconfig FAIL sys/net/pflog *** Error 1 in . (Makefile:205 'run-bpf-everything'), *** Error 1 in . (Makefile:212 'run-bpf-everything6'), *** Error 1 in . (Makefile:224 'run-bpf-all'), *** Error 1 in . (Makefile:243 'run-bpf-all6'), *** Error 1 in . (Makefile:258 'run-bpf-user'), *** Error 1 in . (Makefile:276 'run-bpf-user6'), *** Error 1 in . (Makefile:303 'run-bpf-rdr'), *** Error 1 in . (Makefile:312 'run-bpf-rdr6'), *** Error 1 in . (Makefile:321 'run-bpf-nat'), *** Error 1 in . (Makefile:330 'run-bpf-nat6'), *** Error 1 in . (Makefile:339 'run-bpf-af'), *** Error 1 in . (Makefile:345 'run-bpf-af6'), *** Error 1 in . (Makefile:351 'run-bpf-rewrite'), *** Error 1 in . (Makefile:363 'run-bpf-rewrite6')