Commit Graph

158 Commits

Author SHA1 Message Date
degroote 2d48ac808c Import pfsync support from OpenBSD 4.2
Pfsync interface exposes change in the pf(4) over a pseudo-interface, and can
be used to synchronise different pf.

This work was part of my 2009 GSoC

No objection on tech-net@
2009-09-14 10:36:48 +00:00
lukem d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
apb f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
christos 0c134a3f67 Fix -D option, from Jukka Salmi 2008-01-07 16:10:57 +00:00
drochner baf5b50880 adjust for tcpdump-3.9.7 2007-07-24 12:01:00 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
mrg bf869c6019 apply -Wno-pointer-sign to print-802_11.c as well. 2006-05-12 02:00:46 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
mrg c6d4b90983 use -fno-strict-aliasing with GCC4. 2006-05-11 08:41:07 +00:00
explorer ece068eb66 It's been quite some time since tcpdump compile-time flags were
changed.  For one, "tcpdump -D" works with this set, as well as
"tcpdump -U" and at least one undocumented flag for pcap debugging.
2005-09-19 21:18:30 +00:00
christos 192c2eccf6 Add -lcrypt where -lcrypto is specified. 2005-03-09 03:11:22 +00:00
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
dyoung 195c6d8723 Compile with -DDHAVE_PCAP_LIB_VERSION so that tcpdump will print
the libpcap version for us, instead of 'unknown'.  Thank you for
the problem report, Geoff Wing.
2004-09-30 06:40:19 +00:00
dyoung 79eff8033d Add radiotap support, which was not in release 3.8.3. 2004-09-28 00:01:02 +00:00
dyoung 88f1d7df8c Resolve conflicts in tcpdump-3.8.3 import. 2004-09-27 23:04:24 +00:00
itojun e090b691c1 pflog if support for tcpdump. Peter Postma 2004-06-29 04:46:35 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem 8233be784c support MAKEVERBOSE 2003-10-19 06:12:07 +00:00
jdolecek 1a1dbfb0b3 enable SMB support 2003-03-28 11:06:32 +00:00
itojun c025861aba correct LBL_ALIGN behavior, sync with tcpdump.org.
enable LBL_ALIGN codepath to use byte-by-byte fetch in extract.h.
should correct PR 18688/18398.
2002-10-18 23:13:57 +00:00
lukem 17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
itojun 83d7d548f9 sync with 3.7.1 (2002/5/31) 2002-05-31 09:45:44 +00:00
itojun 771eefe1da no need to have tcpdump.8 in CLEANFILES 2002-02-18 09:45:11 +00:00
itojun d52aa152c7 sync with 3.7.1 2002-02-18 09:37:05 +00:00
itojun 074a5eb23b remove LBL_ALIGN. the code leaks memory severely, and makes packet dump
incorrect.
2001-11-15 07:39:25 +00:00
itojun 9525a1af56 define LBL_ALIGN, to avoid unaligned access on align-picky arch.
suggested by Manuel Bouyer
2001-10-22 09:24:27 +00:00
itojun 230b44a44a switch to use src/dist/tcpdump. source code has been checked and the new
tree organization should give the same (or more) decoding functionalities.
2001-06-25 19:41:19 +00:00
itojun 993a4807cb copyright clarification. sync with tcpdump.org.
based on communiation with the author, Jeffrey Mogul <mogul@pa.dec.com>.
by Jakob Schlyter <jakob@openbsd.org>
2001-06-15 02:07:06 +00:00
itojun 8d42ab239c remove extra \n even more. sync with tcpdump.org 2001-05-27 04:57:19 +00:00
itojun 46636f1249 remove too many \n for icmp6 too big 2001-05-26 12:31:56 +00:00
assar 0eaf453fc3 handle badly formattted access RPC
should fix PR bin/12765
2001-05-15 05:59:13 +00:00
itojun 30901383d9 correct ip6 option header chasing. sync with tcpdump.org. 2001-05-09 02:50:02 +00:00
tron 90eb7ba34c Add support for decoding PPPoE packages on an ethernet interface. 2001-05-06 07:57:08 +00:00
martin fa10c3107d Make tcpdump work with the current pppoe code.
Will be revisited when a generic PPP sheme is implemented.
2001-04-29 10:27:03 +00:00
martin bdbf64075a Add basic support for PPPoE interfaces. 2001-04-14 12:31:34 +00:00
kim 47ba06c69f Fix man page section for networks(5). 2001-04-09 02:21:13 +00:00
wiz 14dbdf5518 Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
wiz a519e87244 This gets installed as tcpdump.8, so make it's section 8 (was 1). 2001-04-02 18:34:23 +00:00
itojun f57618a4b7 sync cisco hdlc packet printer with tcpdump.org. 2001-03-01 15:13:31 +00:00
itojun aa13ada450 print multiple question section. improve TSIG printing.
sync with tcpdump.org.
2001-02-21 05:59:25 +00:00
joda 7478bd5e34 convert parameters to host byte order before printing them 2001-02-20 19:18:32 +00:00
enami 8eaad363dc s/preffered/preferred/ in message. 2001-02-19 09:53:50 +00:00
itojun ca89dc0998 minimize diffs to tcpdump.org tree, even if cosmetic.
changes include:
- do not chase header if ip/ip6 datagram is framgented, and it is not the
  first fragment
- u_short -> u_int16_t
- buffer boundary checks, including sprintf -> snprintf
- cleanup truncated packet cases
- pull tcpdump.org enhancements/corrections for RIP, IPv6 options, ICMPv6,
  OSPFv3, IPv4 options, BGP

there are a lot of local/conflicting changes.  we'd gradually decrease
# of diffs by synchronizing both ends, and then move to src/dist/tcpdump
and reachover makefile.
2001-01-28 10:05:05 +00:00
itojun 3915684b18 remove extra space after typename. sync with tcpdump.org 2001-01-28 07:56:56 +00:00
itojun b3d0e180ed print A6, DNAME and bit string label correctly.
sync with tcpdump.org.
2001-01-28 07:51:33 +00:00
kleink f46c3b8662 Teach tcpdump(8) to dump VRRP. 2001-01-19 09:10:13 +00:00
enami f93a8a97b8 Parse nfs file handle better on NetBSD. On little endian machine,
it was completely broken.  On big endian machine, it was detected as SUNOS4
and thus 32bit dev_t isn't handled properly.

XXX: The auto detect code should be integrated more cleverly if possible.
XXX: In addition, it is better if there is a way to specify server os type.
2001-01-19 01:28:50 +00:00
itojun 6931d9c234 do not decode non-first IPv6 fragment. sync with tcpdump.org code 2001-01-08 16:42:29 +00:00
lukem 2537f730fa always use %lld for INT64_FORMAT (rather than %ld on __alpha__ and __sparc_v9__
and %qd on everything else), and always cast the vars to (long long).
2001-01-05 03:21:53 +00:00