Date: Thu, 16 Sep 2004 03:54:08 -0000 From: "Michael O. Boev" <mike@tric.tomsk.gov.ru> To: <pf4freebsd@freelists.org> Subject: [pf4freebsd] [patch] NOINET6 ; port numbers Message-ID: <GFEGLCJPLEIINPCCACNGAEGACAAA.mike@tric.tomsk.gov.ru>
next in thread | raw e-mail | index | archive | help
Hello!
It's me again, asking for an IPv6-free port.
When I build current port (1.66) and define NOINET6,
the build fails inside pftcpdump.
This simple patch seems to fix the build issue. )
--- freebsd_tcpdump/print-tcp.c.orig Thu Oct 9 20:11:05 2003
+++ freebsd_tcpdump/print-tcp.c Thu Oct 9 20:11:35 2003
@@ -406,7 +406,11 @@
}
/* OS Fingerprint */
+#ifndef INET6
+ if (oflag && (flags & (TH_SYN|TH_ACK)) == TH_SYN) {
+#else
if (oflag && ip6 == NULL && (flags & (TH_SYN|TH_ACK)) == TH_SYN) {
+#endif
struct pf_osfp_enlist *head = NULL;
struct pf_osfp_entry *fp;
unsigned long left;
P.S. pftcpdump doesn't show tcp/udp ports. It prints colons after
destination,
but no number after it. It prints nothing after source address.
gw# pftcpdump -i pflog0
pftcpdump: WARNING: pflog0: no IPv4 address assigned
pftcpdump: listening on pflog0
20:30:20.670224 213.183.101.200 > 213.183.101.207: [|udp]
20:30:32.168202 200-171-18-234.speedyterra.com.br > 1.tric.tomsk.gov.ru:
[|tcp] (DF) [tos 0x20]
Am I missing something?
--
Best wishes,
[mike@tric.tomsk.gov.ru].
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?GFEGLCJPLEIINPCCACNGAEGACAAA.mike>
