head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.184 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.182 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.180 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.178 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.176 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.174 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.172 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.170 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.168 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.166 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.164 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.162 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.160 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.158 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.156 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.154 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.152 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.150 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.148 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.146 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.144 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.142 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.140 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.136 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.116 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.138 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.134 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.132 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.130 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.128 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.126 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.124 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.122 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.120 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.118 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.114 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.112 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.110 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.108 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.106 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.104 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.102 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.100 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.98 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.96 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.94 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.92 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.90 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.88 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.86 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.84 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.82 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.80 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.78 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.76 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.74 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.72 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.70 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.68 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.66 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.64 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.62 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.60 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.58 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.56 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.54 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.52 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.50 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.48 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.46 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.44 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.42 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.40 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.38 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2; locks; strict; comment @# @; 1.2 date 2003.05.23.07.19.44; author seb; state Exp; branches; next 1.1; 1.1 date 2003.02.16.23.50.21; author seb; state Exp; branches; next ; desc @@ 1.2 log @Update to version 0.66. NOTE: The names of the default configuration files has changed. They now end in `.cfg' or `.sym'. Approved by MAINTAINER. Changes since last packaged version: * 4-3-2003 flow-tools-0.66 released * reapply flow-fanout linux patch, also infected flow-send * 4-3-2003 flow-tools-0.65 released * flow-send, flow-fanout: -s source IP address spoofing. * build: builddir != srcdir problems - noted by jos@@catnook.com * build: All default config files installed by default. * build: config files end in .cfg, symbol files end in .sym. Note this changes the names of the default configuration files. * ftlib: ftfil.c - random sample filter - reqested by Edward Balas * ftlib: ftstat.c - ip-destination-address-source-count missing count - noted by Christian Cinetto * build: example tags file installed by default. * ftlib: ftstat.c - broken ip-source-address/ip-destination-port - noted by Gerhard.Haindl@@t-systems.at * ftlib: ftstat.c - broken ip-destination-address/destination-as - noted by carsten.strahler@@lambdanet.net * remove bin scripts (mostly historical OSU stuff) * upgrade to automake 1.7.3 and autoconf 2.57 * docs: flow-report.sgml missing ip-source/destination-address/ip-protocol/ip-tos/ip-source/destination-port noted by shane.dawalt@@wright.edu * flow-fanout: will not compile under linux - patch from alex.shepard@@gettyimages.com * ftlib: ftstat.c - use FMT_SYM_LEN instead of hard coded 32 byte length. increase len to 64 bytes. * ftlib: fmt.c - fmt_uint*s() did not properly null terminate when symbol strlen >= max - noted by jed@@onenet.net * 2-23-2003 flow-tools-0.64 released * flow-fanout, flow-capture, flow-receive: add startup= to STAT: line * docs: flow-fanout - missing -f -F - noted by RAR@@syssrc.com * flow-split: consuming too many resources, noted by fin@@finseth.com * ftlib: ftstat.c - rec2: in summary-detail report missing time_real field - noted by shane.dawalt@@wright.edu * build: strouq() -> strtoull(). Check if strtoul() is really strtoull() - noted by shane.dawalt@@wright.edu * ftlib: ftstat.c - protect potential divide by 0 errors - noted by shane.dawalt@@wright.edu * flow-split: stag not initialized - patch from fin@@finseth.com * build: ftlib.h should not require ftconfig.h - noted by jan@@kneschke.de * build: lib/ftconfig.h does not belong in dist - noted by jos@@catnook.com * ftlib: ftlib.h - FT_SO_RCV_BUFSIZE default to 4MB * ftlib: suppport.c - bigsockbuf() - more agressive reduction on large buffers. Report size. * ftlib: ftmask.c - flow-mask: rn_deladdr(): failed. Missing masklen set - noted by nik.hinson@@assurance-dynamics.com * ftlib: ftfil.c - invert option to filter-definition req by mhyde@@escape.ca * ftlib: shadowed variable names - fumerola@@yahoo-inc.com * flow-cat: exit status 1 if no streams processed - req by mhunter@@ack.Berkeley.EDU * ftlib: ftstat.c - bucket_dump_1(): loop typo noted by nik.hinson@@assurance-dynamics.com * flow-capture: reload tags and filters with SIGHUP * flow-import: format4 wire format. * ftlib: ftstat.c - tag mask option should not require local tagging - noted by clay@@bloomcounty.org * flow-*: catch extra command line args - noted by rcarrara@@augustmail.com * ftlib: fttag.c - fix ToS tagging, add ANY tagging. @ text @$NetBSD$ --- src/flow-fanout.c.orig 2003-04-04 02:24:40.000000000 +0000 +++ src/flow-fanout.c @@@@ -287,8 +287,9 @@@@ int main(int argc, char **argv) } chdir ("/"); - umask(0022); - setsid(); + /* umask(0022); */ + if (setsid() == -1) + fterr_err(1, "setsid()"); for (n = 0; n < 16; ++n) /* XXX dynamically get NOFILE */ close (n); @ 1.1 log @Update to version 0.63. Lots of changes and new features, see below. Note: include files installed in $PREFIX/include/flow-tools, examples configuration files and scripts installed in $PREFIX/share/examples/flow-tools, configuration files are expected in $PKG_SYSCONFDIR/flow-tools. * 12-12-2002 flow-tools-0.63 released * ftlib: ftstat.c - More informative error message when invalid field - patch from wyu@@ateneo.edu * docs: flow-capture - hosts.allow requires flow-capture-client, not flow-capture - noted by stewart@@net.ohio-state.edu * flow-capture: TCP client port should be same as UDP netflow port - noted by stewart@@net.ohio-state.edu * ftlib: ftfil.c: moved primitive initialization code to parse_primitive_type() to avoid state loss when 'default' or 'mask' keyword used before a permit/deny. * ftlib: ftfil.c: tos, marked_tos, tcp_flags mask applied to flow not to a copy - noted by nik.hinson@@assurance-dynamics.com * flow-export -f4 wire format - requested by mikeh@@ncsa.uiuc.edu * docs: flow-print.sgml - document column headers. * flow-report / ftstat.c - added runtime variable binding and output path substitution support, ie run with -v ROUTER=NYCM and use output path '/report/@@ROUTER/report-out' * ftlib: ftvar.c - variable binding functions. * ftlib: ftstat.c - summary-detail report will produce core if no flows are processed - noted by rjd@@merit.edu * docs: not all targets included in distribution - noted by Jeje * ftlib: ftio.c byte order of output not always in synch with flags - noted by mikeh@@ncsa.uiuc.edu * docs: flow-filter port correction - mhunter@@ack.Berkeley.EDU * ftlib: ftstat.c names option works with IP addresses -- DNS lookups. req by nik.hinson@@assurance-dynamics.com * ftlib: ftstat.c: min_pps,max_pps,min_bps,max_bps calculations, reduce memory and CPU footprint if *ps calculations are not selected. req by nik.hinson@@assurance-dynamics.com * ftlib: ftstat.c: linear-interpolated-flows-octets-packets,first,last, duration,ip-source-address/source-tag,ip-source-address/destination-tag, ip-destination-address/source-tag,ip-destination-address/destination-tag, ip-source/destination-address/source/destination-tag, ip-source/destination-address/ip-protocol/ip-tos reports. req by nik.hinson@@assurance-dynamics.com * ftlib: ftstat.c: new fields, index,first,last req by nik.hinson@@assurance-dynamics.com * ftlib: ftstat.c: integrated mask eval req by nik.hinson@@assurance-dynamics.com * flow-mask: new - replace mask length based on prefix. req by nik.hinson@@assurance-dynamics.com * ftlib: fttag.c: tag on tcp-src-port, tcp-dst-port, tcp-port, udp-src-port, udp-dst-port, udp-port, tos. req by nik.hinson@@assurance-dynamics.com * ftlib: fttag.c: rework to use jump tables to support more match types w/o performance impact. * flow-stat: -f32 did not have symbol lookups enabled, noted by Michael Redinger in ascii output automatically parsed as -m option. * flow-export: fix -m, -m now allows ascii input, ie -m unix_secs,dpkts,doctets * ftlib: ftstat.c masked tag not restored if filter evaluated to DENY. * ftlib: ftstat.c bucket record count in header not correct. * ftlib: ftstat.c ip-address and ip-port to pick up flow-stat -f7 and -f11 style reports. noted by acidic@@apricot.fruit.org * flow-cat / flow-receive: Pay closer attention to FT_FIELD_CAP_START and FT_FIELD_CAP_END so a bogus capture period is not displayed on output from flow-receive > file. noted by ylee@@net2phone.com * flow-print: Missing leading 0's on msec formats, noted by ertoz@@cs.umn.edu * ftlib: ftfil.c: use consistent naming with flow-report * flow-fanout, flow-receive, flow-capture: handle interrupted recvmsg() syscall which happens on some linux MP configurations. * ftlib: ftfil.c - pps/bps not handled correctly - patch from jon@@pdx.edu * flow-print - format 24 from Christian.Bauer@@NEFonline.de * flow-import - Cisco NFC format from torppa@@polykoira.megabaud.fi * flow-capture - more informative err message on bind() failure - noted by stewart@@net.ohio-state.edu * docs: flow-capture.sgml - no -o option - noted by stewart@@net.ohio-state.edu * flow-search - remove hard coded path, noted by stewart@@net.ohio-state.edu * ftlib: ftdecode.c - ftpdu_verify() can segv on invalid packets < 4 bytes noted by Eric Stewart stewart@@net.ohio-state.edu * ftlib: ftfil.c - PERMIT/DENY reversed for many when default PERMIT -- noted by Gerhard.Haindl@@t-systems.at * ftlib: ftstat.c - tag mask before filter - noted by wyu@@ateneo.edu * 8-27-2002 flow-tools-0.61 released * ftlib: strtoull.c - missing ULLONG_MAX - noted by papaleonardos.3@@osu.edu * build: --with-mysql allows path, ie --with-mysql=/usr/local * ftlib: ftstat.c - don't require FT_XFIELD_SRC_MASK / FT_XFIELD_DST_MASK - dynamically add the requirement when FT_STAT_OPT_PREFIX_* is set - noted by mw@@uk.yahoo-inc.com * ftlib: ftio.c - more informative warning when trying to process non flow-tools files. * ftlib: ftfile.c - more informative warning when ignoring files. * ftlib: fttag.c - parser requires 'type' for a match and 'term' in a definition. * ftlib: ftdecode.c - allow padded Cat 6K packets. * flow-receive, flow-capture: no longer need ftio_set_xip() - noted by mw@@uk.yahoo-inc.com * flow-tag, ftstat: allow retagging - noted by clay@@opus.bloomcounty.org * flow-cat: cleanup error message * flow-export: len = 0, mysql typo * ftlib: ftstat.c missed a few , - noted by nik.hinson@@assurance-dynamics.com * 8-15-2002 flow-tools-0.60 released * flow-capture,flow-receive,flow-fanout: add filter option. * flow-export: MySQL support based on patch from wyu@@ateneo.edu * ftlib: ftfil.c pps and bps filter. * build: scripts in bin directory get installed * build/ftlib: added BSD strtoull.c for DEC portability - noted by shane.dawalt@@wright.edu * flow-report: future replacement for flow-stat * ftlib: added ftstat.c - stats and report library * ftlib: FT_RECGET_* macros * docs: updated documentation. * configs: updated asn.txt and asn symbol file * ftlib: fmt.c - fmt_ipv4prefix() was not processing 0/0 correctly. * ftlib: ftfil.c - fix memory leak with ftd->name and ftfil->name * ftlib: ftfil.c - delay primitive resolution until file is parsed -- a filter-definition can precede a filter-primitive * ftlib: ftfil.c - time only primitive implemented. Req by wyu@@ateneo.edu @ text @d3 1 a3 1 --- src/flow-fanout.c.orig Wed Oct 23 18:08:52 2002 d5 1 a5 1 @@@@ -252,8 +252,9 @@@@ int main(int argc, char **argv) @