Commit graph

31 commits

Author SHA1 Message Date
Edwin Groothuis
747b5dd95d Update to 1.45
v1.45

        o fixed bug where setting the snaplen smaller than the minimum
          necessary to read the full headres would cause garbage to be
          fed into the pattern matcher

        o fixed unreported bug in IPv6/TCP packet length calculation

        o relocated the privilege-dropping routine to be invoked right
          before entering the packet processing loop, to prevent
          interference with necessary permissions to read or write
          dumpfiles/etc.

        o fixed integer overflow with the snaplen that resulted from
          an implicit signed/unsigned conversion

        o minor change to compensate for some broken compiler
          optimizers

        o fixed double-free race condition during ngrep termination

        o reworked packet length calculation in the main processing
          loop, improving performance and readability

        o simplified regex build logic in configure and Makefile

        o updated Win32 version to use config.h for preprocessor
          definitions instead of the Visual Studio project files,
          making manual tweaking and config of ngrep for Win32
          consistent with *NIX and more obvious

        o changed third-party Makefiles to properly clean up after
          themselves

        o added support for radiotap (IEEE802_11_RADIO)

        o changed ``-s 0'' invocation to mimic the equivalent of tcpdump
2006-12-07 10:43:58 +00:00
Edwin Groothuis
b9c0956487 [patch] net/ngrep segfaults at startup on amd64
# ngrep
	Segmentation fault: 11 (core dumped)
	[ etc :-) ]

PR:		ports/95612
Submitted by:	Vasil Dimov <vd@FreeBSD.org>
2006-05-03 03:00:21 +00:00
Marcus Alves Grando
281dd575ad - Fix build using OPTIONS PORTS_PCAP. libpcap.so.2 are not installed by default, use libpcap.a.
PR:		94217
Notified by:	Chris St Denis <chris___ctgameinfo.com>
Approved by:	maintainer timeout, 38 days
2006-04-15 20:09:18 +00:00
Edwin Groothuis
7075019551 Add SHA256 checksums to the distinfo files. 2005-11-08 21:45:49 +00:00
Edwin Groothuis
c96abf74df Update port: net/ngrep to 1.44
- Update to 1.44
	- Use OPTIONS
	- Add IPv6 support

PR:		ports/85965
Submitted by:	Marcus Alves Grando <marcus@corp.grupos.com.br>
2005-09-11 08:53:19 +00:00
Edwin Groothuis
7737418647 Make net/ngrep work with an installed net/libpcap and WITH_PORTS_PCAP=1.
Submitted by:	Jeremie Le Hen <jeremie@le-hen.org>, Florent Thoumie <flz@xbsd.org>
2005-07-25 01:30:38 +00:00
Edwin Groothuis
25c1717a9b Upgrade to version 1.43
v1.43

        o healed the win32 code fork: ngrep now builds from the same
          source tree for all platforms including Windows

        o re-wrote the privilege revocation logic after problems were
          reported with the SPC version, and removed non-root
          drop_privs capability altogether

        o fix off-by-one bug which caused ngrep to exit 1 packet early
          when ``-A'' as invoked

        o Fixed problematic configtest for old broken-redhat-glibc UDP
          header

        o ngrep now sets a pcap filter "ip" by default, if one is not
          specified

        o header offset fix to 802.11 processing

        o support IGMP and Raw (unknown IP protocol) type packets

        o support for latest versions of libpcap (0.8.3) and winpcap
          (3.1 beta 4)

        o updated configure to autoconf 2.59, and config.guess and
          config.sub to latest versions

        o updated PCRE from 3.4 to 5.0

        o and various minor changes and updates to improve ngrep
2005-02-24 06:28:20 +00:00
Edwin Groothuis
f3983bc2b1 When running ngrep as non-root, the program tried to drop the
priveleges too. This is now disabled via a configure option.
2004-04-17 23:02:28 +00:00
Edwin Groothuis
e13ceabf4d swap net/bpf.h and pcap.h since it gives strange results when having the
net/libpcap installed.
2004-04-09 03:11:19 +00:00
Edwin Groothuis
8de93e29fc fix portdocs while we're at it. (sorry should have been done earlier) 2004-03-29 04:02:20 +00:00
Edwin Groothuis
601690307a Upgrade of net/ngrep to version 1.42
Changes for v1.42
        o rewrote the entire configure.in/config.h.in to autoconf 2.57
          to be more consistent with normal autoconf'd programs.
          corrects bugs around packaging impediments and typos.

        o improved privilege dropping code and added more options to
          configure to govern its behaviour

        o added flag to turn off privilege revocation logic

        o added multiline match as default and ability to enforce
          previous default single-line match (bugfix + feature)

        o added ability to read bpf filter expression from file

        o added ability to force the column width to a certain size

        o added two new output modes: ``byline'', whose output
          respects embedded carriage returns (useful for http dumps),
          and ``none'', which prints out each dump as a single line no
          matter what.

        o added ability to specify alternate nonprintable character
          (default is ``.'').

        o made ``-q'' effects more consistent and usable for scenarios
          where ``-I'' and/or ``-O'' are being employed

        o documentation updated
2004-03-29 04:01:13 +00:00
Trevor Johnson
e1177f5c54 Add size data.
Approved by:	maintainers
2004-03-18 02:27:55 +00:00
Edwin Groothuis
650e73eb31 Fix problems which where there during running of the program:
- checked on 4.8
    - checked on 5.2.1 with standard libpcap
    - checked on 5.2.1 with net/libpcap

Commands checked:
    - ngrep -d fxp1
    - ngrep -d fxp1 port 80
    - ngrep -d fxp1 GET port 80
2004-02-28 11:21:56 +00:00
Edwin Groothuis
860ab884d1 move the check for the necessarity for the additional patches
regarding the changes in libpcap to 501110 and higher versions of
the FreeBSD operating system

Submitted by:	Emanuel Haupt <emanuel.haupt@cablecom.ch>
2003-11-18 09:15:25 +00:00
Edwin Groothuis
1c525aed4c Unbreak build on -stable while keep it buildable on -current.
Noticed by: quite a lot of people.
2003-11-11 22:58:01 +00:00
Edwin Groothuis
460ab28cb3 Fix build on -current, thanks to a patch from walt <wa1ter@myrealbox.com>
Use PORTDOCS fully.
2003-11-08 23:59:58 +00:00
Akinori MUSHA
4c2e4f1862 De-pkg-comment. 2003-02-21 13:28:59 +00:00
Pete Fritchman
a61e0475cb Pass maintainership to Edwin Groothuis <edwin@mavetju.org> from ports@
Submitted by:	Edwin Groothuis <edwin@mavetju.org> on -ports
2002-03-01 23:45:55 +00:00
David E. O'Brien
9ec90453f2 Update to version 1.40.1.
PR:		33428
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
2002-02-28 04:39:15 +00:00
David E. O'Brien
04b79ace72 Update to 1.40.
- update mastersite
- install more docs, use DOCSDIR
- properly support NOPORTDOCS in pkg-plist
- sync pkg-descr with current features
- update ngrep.c (the t->tm_mon+1 change has been integrated in 1.40)
- remove patch-Makefile.in (no longer necessary)

PR:		29588
Submitted by:	Pete Fritchman <petef@databits.net>
2001-08-22 18:06:44 +00:00
David E. O'Brien
35577fddec "Fix a small nit that corrects an oversight in one of our newer features..."
Submitted by:	Dan Frasnelli <dfrasnel@corewar.com> (ngrep developer)
2000-08-27 00:35:58 +00:00
David E. O'Brien
256ba7de4e Remove useless GNU make'ism. 2000-08-13 16:33:54 +00:00
David E. O'Brien
5240ab0753 Update to version 1.38.
Reported by:	Chris D. Faulhaber <jedgar@fxp.org>
2000-08-09 09:23:43 +00:00
Kris Kennaway
484c4000af Remove directory on deinstall
Noticed by:	bento
2000-07-03 03:03:52 +00:00
Akinori MUSHA
52190dc850 Portlint COMMENT's.
Everybody should read the Handbook again!

PR:		ports/18008
Submitted by:	tkato@prontomail.ne.jp
2000-04-14 18:16:14 +00:00
Chris Piazza
93a61d6874 Update with the new PORTNAME/PORTVERSION variables 2000-04-09 18:14:07 +00:00
David E. O'Brien
e05c25a8bf Restore useless version required comments. 2000-03-22 00:28:26 +00:00
David E. O'Brien
da36feaffe Remove the "version required" line. 2000-03-20 02:37:50 +00:00
David E. O'Brien
b5d1cecde4 Style nits in the ports I maintain. 2000-02-13 03:25:05 +00:00
David E. O'Brien
ea0bdc3c86 GNU configure is setting up PCAP_RESTART to use yyrestart. yyrestart in the
pcap library requires a FILE * argument, ngrep is called it with none.

Submitted by:	Barry Lustig <barry@lustig.com>
2000-01-31 21:13:55 +00:00
David E. O'Brien
c61b442096 ngrep strives to provide most of GNU grep's common features, applying
them to the network layer.  ngrep somewhat replaces tcpdump.

{DESCR,COMMENT} Obtained from:	NetBSD
[after I started making this port, I realized NetBSD had a port if it]
2000-01-02 10:22:41 +00:00