[pf4freebsd] Re: [patch] NOINET6 ; port numbers

Max Laier max at love2party.net
Wed Sep 15 20:54:13 PDT 2004


Hello Michael,

Thursday, October 9, 2003, 3:31:48 PM, you wrote:
MOB> It's me again, asking for an IPv6-free port.
MOB> When I build current port (1.66) and define NOINET6,
MOB> the build fails inside pftcpdump.

MOB> This simple patch seems to fix the build issue. )

Looks good to me. I have forwarded it to the Mike Frantzen @OpenBSD who
is responsible for the original code. Thanks!

MOB> P.S. pftcpdump doesn't show tcp/udp ports. It prints colons after
MOB> destination,
MOB> but no number after it. It prints nothing after source address.

MOB> gw# pftcpdump -i pflog0
MOB> pftcpdump: WARNING: pflog0: no IPv4 address assigned
MOB> pftcpdump: listening on pflog0
MOB> 20:30:20.670224 213.183.101.200 > 213.183.101.207: [|udp]
MOB> 20:30:32.168202 200-171-18-234.speedyterra.com.br > 1.tric.tomsk.gov.ru:
MOB> [|tcp] (DF) [tos 0x20]

Hum ... I get the portnumbers correctly. Note that the print-udp.c is an
unmodified copy from 5.1R and hence it should work as the normal tcpdump
you have from your default installation. Output of pftcpdump -in pflog0
would look like:

"16:37:04.203063 80.144.56.177.36068 > 80.131.152.57.4662: ..."

Note that the port number is separated by another dot not a colon as you
expected. Can you please check if the normal tcpdump (on a normal
interface) prints portnumbers?

MOB> Am I missing something?

Yes, the portnumbers ... obviously ;) I'll investigate.

-- 
Best regards,
 Max                            mailto:max at love2party.net





More information about the freebsd-pf mailing list