head	1.53;
access;
symbols
	perseant-exfatfs-base-20250801:1.53
	perseant-exfatfs-base-20240630:1.53
	perseant-exfatfs:1.53.0.20
	perseant-exfatfs-base:1.53
	cjep_sun2x:1.53.0.18
	cjep_sun2x-base:1.53
	cjep_staticlib_x-base1:1.53
	cjep_staticlib_x:1.53.0.16
	cjep_staticlib_x-base:1.53
	phil-wifi-20200421:1.53
	phil-wifi-20200411:1.53
	phil-wifi-20200406:1.53
	pgoyette-compat-merge-20190127:1.53
	pgoyette-compat-20190127:1.53
	pgoyette-compat-20190118:1.53
	pgoyette-compat-1226:1.53
	pgoyette-compat-1126:1.53
	pgoyette-compat-1020:1.53
	pgoyette-compat-0930:1.53
	pgoyette-compat-0906:1.53
	pgoyette-compat-0728:1.53
	pgoyette-compat-0625:1.53
	pgoyette-compat-0521:1.53
	pgoyette-compat-0502:1.53
	pgoyette-compat-0422:1.53
	pgoyette-compat-0415:1.53
	pgoyette-compat-0407:1.53
	pgoyette-compat-0330:1.53
	pgoyette-compat-0322:1.53
	pgoyette-compat-0315:1.53
	pgoyette-compat:1.53.0.14
	pgoyette-compat-base:1.53
	perseant-stdc-iso10646:1.53.0.12
	perseant-stdc-iso10646-base:1.53
	prg-localcount2-base3:1.53
	prg-localcount2-base2:1.53
	prg-localcount2-base1:1.53
	prg-localcount2:1.53.0.10
	prg-localcount2-base:1.53
	pgoyette-localcount-20170426:1.53
	bouyer-socketcan-base1:1.53
	pgoyette-localcount-20170320:1.53
	bouyer-socketcan:1.53.0.8
	bouyer-socketcan-base:1.53
	pgoyette-localcount-20170107:1.53
	pgoyette-localcount-20161104:1.53
	localcount-20160914:1.53
	pgoyette-localcount-20160806:1.53
	pgoyette-localcount-20160726:1.53
	pgoyette-localcount:1.53.0.6
	pgoyette-localcount-base:1.53
	netbsd-5-2-3-RELEASE:1.48
	netbsd-5-1-5-RELEASE:1.48
	netbsd-6-0-6-RELEASE:1.52
	netbsd-6-1-5-RELEASE:1.52.4.1
	yamt-pagecache-base9:1.53
	yamt-pagecache-tag8:1.52.2.1
	netbsd-6-1-4-RELEASE:1.52.4.1
	netbsd-6-0-5-RELEASE:1.52
	tls-earlyentropy:1.53.0.2
	tls-earlyentropy-base:1.53
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.53
	riastradh-drm2-base3:1.53
	netbsd-6-1-3-RELEASE:1.52.4.1
	netbsd-6-0-4-RELEASE:1.52
	netbsd-5-2-2-RELEASE:1.48
	netbsd-5-1-4-RELEASE:1.48
	netbsd-6-1-2-RELEASE:1.52.4.1
	netbsd-6-0-3-RELEASE:1.52
	netbsd-5-2-1-RELEASE:1.48
	netbsd-5-1-3-RELEASE:1.48
	netbsd-6-1-1-RELEASE:1.52.4.1
	netbsd-6-1:1.52.4.1.0.2
	netbsd-6-0-2-RELEASE:1.52
	netbsd-6-1-RELEASE:1.52.4.1
	netbsd-6-1-RC4:1.52.4.1
	netbsd-6-1-RC3:1.52.4.1
	agc-symver:1.53.0.4
	agc-symver-base:1.53
	netbsd-6-1-RC2:1.52.4.1
	tls-maxphys-base:1.53
	netbsd-6-1-RC1:1.52.4.1
	yamt-pagecache-base8:1.53
	netbsd-5-2:1.48.0.14
	netbsd-6-0-1-RELEASE:1.52
	yamt-pagecache-base7:1.53
	netbsd-5-2-RELEASE:1.48
	netbsd-5-2-RC1:1.48
	matt-nb6-plus-nbase:1.52
	yamt-pagecache-base6:1.53
	netbsd-6-0:1.52.0.8
	netbsd-6-0-RELEASE:1.52
	netbsd-6-0-RC2:1.52
	matt-nb6-plus:1.52.0.6
	matt-nb6-plus-base:1.52
	netbsd-6-0-RC1:1.52
	yamt-pagecache-base5:1.53
	yamt-pagecache-base4:1.53
	netbsd-6:1.52.0.4
	netbsd-6-base:1.52
	netbsd-5-1-2-RELEASE:1.48
	netbsd-5-1-1-RELEASE:1.48
	yamt-pagecache-base3:1.52
	yamt-pagecache-base2:1.52
	yamt-pagecache:1.52.0.2
	yamt-pagecache-base:1.52
	cherry-xenmp:1.51.0.4
	cherry-xenmp-base:1.51
	bouyer-quota2-nbase:1.51
	bouyer-quota2:1.51.0.2
	bouyer-quota2-base:1.51
	matt-mips64-premerge-20101231:1.51
	matt-nb5-mips64-premerge-20101231:1.48
	matt-nb5-pq3:1.48.0.12
	matt-nb5-pq3-base:1.48
	netbsd-5-1:1.48.0.10
	netbsd-5-1-RELEASE:1.48
	netbsd-5-1-RC4:1.48
	matt-nb5-mips64-k15:1.48
	netbsd-5-1-RC3:1.48
	netbsd-5-1-RC2:1.48
	netbsd-5-1-RC1:1.48
	netbsd-5-0-2-RELEASE:1.48
	matt-nb5-mips64-premerge-20091211:1.48
	matt-premerge-20091211:1.50
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.48
	matt-nb4-mips64-k7-u2a-k9b:1.48
	matt-nb5-mips64-u1-k1-k5:1.48
	matt-nb5-mips64:1.48.0.8
	netbsd-5-0-1-RELEASE:1.48
	jym-xensuspend-nbase:1.49
	netbsd-5-0:1.48.0.6
	netbsd-5-0-RELEASE:1.48
	netbsd-5-0-RC4:1.48
	netbsd-5-0-RC3:1.48
	netbsd-5-0-RC2:1.48
	jym-xensuspend:1.48.0.4
	jym-xensuspend-base:1.49
	netbsd-5-0-RC1:1.48
	netbsd-5:1.48.0.2
	netbsd-5-base:1.48
	matt-mips64-base2:1.47
	matt-mips64:1.45.0.8
	netbsd-4-0-1-RELEASE:1.43
	wrstuden-revivesa-base-3:1.47
	wrstuden-revivesa-base-2:1.47
	wrstuden-fixsa-newbase:1.43
	wrstuden-revivesa-base-1:1.46
	yamt-pf42-base4:1.46
	yamt-pf42-base3:1.46
	hpcarm-cleanup-nbase:1.46
	yamt-pf42-baseX:1.46
	yamt-pf42-base2:1.46
	wrstuden-revivesa:1.46.0.6
	wrstuden-revivesa-base:1.46
	yamt-pf42:1.46.0.4
	yamt-pf42-base:1.46
	keiichi-mipv6-nbase:1.46
	keiichi-mipv6:1.46.0.2
	keiichi-mipv6-base:1.46
	matt-armv6-nbase:1.46
	matt-armv6-prevmlocking:1.45
	wrstuden-fixsa-base-1:1.43
	netbsd-4-0:1.43.0.8
	netbsd-4-0-RELEASE:1.43
	cube-autoconf:1.45.0.6
	cube-autoconf-base:1.45
	netbsd-4-0-RC5:1.43
	netbsd-4-0-RC4:1.43
	netbsd-4-0-RC3:1.43
	netbsd-4-0-RC2:1.43
	netbsd-4-0-RC1:1.43
	matt-armv6:1.45.0.4
	matt-armv6-base:1.46
	matt-mips64-base:1.45
	hpcarm-cleanup:1.45.0.2
	hpcarm-cleanup-base:1.46
	netbsd-3-1-1-RELEASE:1.39
	netbsd-3-0-3-RELEASE:1.39
	wrstuden-fixsa:1.43.0.6
	wrstuden-fixsa-base:1.43
	abandoned-netbsd-4-base:1.43
	abandoned-netbsd-4:1.43.0.2
	netbsd-3-1:1.39.0.6
	netbsd-3-1-RELEASE:1.39
	netbsd-3-0-2-RELEASE:1.39
	netbsd-3-1-RC4:1.39
	netbsd-3-1-RC3:1.39
	netbsd-3-1-RC2:1.39
	netbsd-3-1-RC1:1.39
	netbsd-4:1.43.0.4
	netbsd-4-base:1.43
	netbsd-3-0-1-RELEASE:1.39
	netbsd-3-0:1.39.0.4
	netbsd-3-0-RELEASE:1.39
	netbsd-3-0-RC6:1.39
	netbsd-3-0-RC5:1.39
	netbsd-3-0-RC4:1.39
	netbsd-3-0-RC3:1.39
	netbsd-3-0-RC2:1.39
	netbsd-3-0-RC1:1.39
	netbsd-2-0-3-RELEASE:1.33
	netbsd-2-1:1.33.0.6
	netbsd-2-1-RELEASE:1.33
	netbsd-2-1-RC6:1.33
	netbsd-2-1-RC5:1.33
	netbsd-2-1-RC4:1.33
	netbsd-2-1-RC3:1.33
	netbsd-2-1-RC2:1.33
	netbsd-2-1-RC1:1.33
	netbsd-2-0-2-RELEASE:1.33
	netbsd-3:1.39.0.2
	netbsd-3-base:1.39
	netbsd-2-0-1-RELEASE:1.33
	netbsd-2:1.33.0.4
	netbsd-2-base:1.33
	netbsd-2-0-RELEASE:1.33
	netbsd-2-0-RC5:1.33
	netbsd-2-0-RC4:1.33
	netbsd-2-0-RC3:1.33
	netbsd-2-0-RC2:1.33
	netbsd-2-0-RC1:1.33
	netbsd-2-0:1.33.0.2
	netbsd-2-0-base:1.33
	netbsd-1-6-PATCH002-RELEASE:1.27.2.1
	netbsd-1-6-PATCH002:1.27.2.1
	netbsd-1-6-PATCH002-RC4:1.27.2.1
	netbsd-1-6-PATCH002-RC3:1.27.2.1
	netbsd-1-6-PATCH002-RC2:1.27.2.1
	netbsd-1-6-PATCH002-RC1:1.27.2.1
	netbsd-1-6-PATCH001:1.27.2.1
	netbsd-1-6-PATCH001-RELEASE:1.27.2.1
	netbsd-1-6-PATCH001-RC3:1.27.2.1
	netbsd-1-6-PATCH001-RC2:1.27.2.1
	netbsd-1-6-PATCH001-RC1:1.27.2.1
	fvdl_fs64_base:1.30
	netbsd-1-6-RELEASE:1.27
	netbsd-1-6-RC3:1.27
	netbsd-1-6-RC2:1.27
	netbsd-1-6-RC1:1.27
	netbsd-1-6:1.27.0.2
	netbsd-1-6-base:1.27
	netbsd-1-5-PATCH003:1.19
	netbsd-1-5-PATCH002:1.19
	netbsd-1-5-PATCH001:1.19
	netbsd-1-5-RELEASE:1.19
	netbsd-1-5-BETA2:1.19
	netbsd-1-5-BETA:1.19
	netbsd-1-4-PATCH003:1.14.2.1
	netbsd-1-5-ALPHA2:1.19
	netbsd-1-5:1.19.0.4
	netbsd-1-5-base:1.19
	minoura-xpg4dl-base:1.19
	minoura-xpg4dl:1.19.0.2
	netbsd-1-4-PATCH002:1.14.2.1
	wrstuden-devbsize-19991221:1.18
	wrstuden-devbsize:1.15.0.2
	wrstuden-devbsize-base:1.18
	comdex-fall-1999:1.17.0.2
	comdex-fall-1999-base:1.17
	netbsd-1-4-PATCH001:1.14
	netbsd-1-4-RELEASE:1.14
	netbsd-1-4:1.14.0.2
	netbsd-1-4-base:1.14
	netbsd-1-3-PATCH003:1.9.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.9.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.9.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.9.2.1
	netbsd-1-3-PATCH002:1.9.2.1
	netbsd-1-3-PATCH001:1.9.2.1
	netbsd-1-3-RELEASE:1.9.2.1
	netbsd-1-3-BETA:1.9.2.1
	netbsd-1-3:1.9.0.2
	netbsd-1-3-base:1.9
	tcpdump-3_4a5:1.1.1.1
	LBL:1.1.1
	is-newarp:1.6.0.4
	is-newarp-base:1.6
	netbsd-1-2-PATCH001:1.6
	netbsd-1-2-RELEASE:1.6
	netbsd-1-2-BETA:1.6
	netbsd-1-2:1.6.0.6
	netbsd-1-2-base:1.6
	netbsd-1-1-PATCH001:1.6
	netbsd-1-1-RELEASE:1.6
	netbsd-1-1:1.6.0.2
	netbsd-1-1-base:1.6
	netbsd-1-0-PATCH06:1.3
	netbsd-1-0-PATCH05:1.3
	netbsd-1-0-PATCH04:1.3
	netbsd-1-0-PATCH03:1.3
	netbsd-1-0-PATCH02:1.3
	netbsd-1-0-PATCH1:1.3
	netbsd-1-0-PATCH0:1.3
	netbsd-1-0-RELEASE:1.3
	netbsd-1-0:1.3.0.2
	netbsd-1-0-base:1.3;
locks; strict;
comment	@# @;


1.53
date	2012.04.01.00.29.20;	author dholland;	state dead;
branches;
next	1.52;

1.52
date	2011.06.20.07.44.04;	author mrg;	state Exp;
branches
	1.52.2.1
	1.52.4.1;
next	1.51;

1.51
date	2010.12.17.09.54.28;	author jruoho;	state Exp;
branches
	1.51.4.1;
next	1.50;

1.50
date	2009.09.14.10.36.51;	author degroote;	state Exp;
branches;
next	1.49;

1.49
date	2009.04.22.15.23.09;	author lukem;	state Exp;
branches;
next	1.48;

1.48
date	2008.10.25.22.27.39;	author apb;	state Exp;
branches
	1.48.4.1;
next	1.47;

1.47
date	2008.08.29.00.02.26;	author gmcgarry;	state Exp;
branches;
next	1.46;

1.46
date	2008.01.07.16.10.57;	author christos;	state Exp;
branches
	1.46.6.1;
next	1.45;

1.45
date	2007.07.24.12.01.00;	author drochner;	state Exp;
branches
	1.45.4.1
	1.45.8.1;
next	1.44;

1.44
date	2007.05.28.12.06.42;	author tls;	state Exp;
branches;
next	1.43;

1.43
date	2006.05.12.02.00.46;	author mrg;	state Exp;
branches;
next	1.42;

1.42
date	2006.05.11.23.16.31;	author mrg;	state Exp;
branches;
next	1.41;

1.41
date	2006.05.11.08.41.07;	author mrg;	state Exp;
branches;
next	1.40;

1.40
date	2005.09.19.21.18.30;	author explorer;	state Exp;
branches;
next	1.39;

1.39
date	2005.03.09.03.11.23;	author christos;	state Exp;
branches;
next	1.38;

1.38
date	2005.01.10.02.58.59;	author lukem;	state Exp;
branches;
next	1.37;

1.37
date	2004.09.30.06.40.19;	author dyoung;	state Exp;
branches;
next	1.36;

1.36
date	2004.09.28.00.01.02;	author dyoung;	state Exp;
branches;
next	1.35;

1.35
date	2004.09.27.23.04.50;	author dyoung;	state Exp;
branches;
next	1.34;

1.34
date	2004.06.29.04.46.35;	author itojun;	state Exp;
branches;
next	1.33;

1.33
date	2003.10.21.10.01.22;	author lukem;	state Exp;
branches;
next	1.32;

1.32
date	2003.10.19.06.12.07;	author lukem;	state Exp;
branches;
next	1.31;

1.31
date	2003.03.28.11.06.32;	author jdolecek;	state Exp;
branches;
next	1.30;

1.30
date	2002.10.18.23.13.58;	author itojun;	state Exp;
branches;
next	1.29;

1.29
date	2002.09.18.03.54.38;	author lukem;	state Exp;
branches;
next	1.28;

1.28
date	2002.05.31.09.45.47;	author itojun;	state Exp;
branches;
next	1.27;

1.27
date	2002.02.18.09.45.11;	author itojun;	state Exp;
branches
	1.27.2.1;
next	1.26;

1.26
date	2002.02.18.09.37.11;	author itojun;	state Exp;
branches;
next	1.25;

1.25
date	2001.11.15.07.39.25;	author itojun;	state Exp;
branches;
next	1.24;

1.24
date	2001.10.22.09.24.27;	author itojun;	state Exp;
branches;
next	1.23;

1.23
date	2001.06.25.19.41.19;	author itojun;	state Exp;
branches;
next	1.22;

1.22
date	2001.04.14.12.31.34;	author martin;	state Exp;
branches;
next	1.21;

1.21
date	2001.03.01.15.13.31;	author itojun;	state Exp;
branches;
next	1.20;

1.20
date	2001.01.19.09.10.13;	author kleink;	state Exp;
branches;
next	1.19;

1.19
date	2000.04.24.13.01.23;	author itojun;	state Exp;
branches;
next	1.18;

1.18
date	99.12.10.05.45.07;	author itojun;	state Exp;
branches;
next	1.17;

1.17
date	99.10.05.20.37.21;	author is;	state Exp;
branches;
next	1.16;

1.16
date	99.09.30.14.49.12;	author sjg;	state Exp;
branches;
next	1.15;

1.15
date	99.07.02.11.31.28;	author itojun;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	99.03.23.00.02.24;	author bad;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	98.09.25.19.10.25;	author hwr;	state Exp;
branches;
next	1.12;

1.12
date	98.07.25.11.30.43;	author explorer;	state Exp;
branches;
next	1.11;

1.11
date	98.02.01.13.46.53;	author christos;	state Exp;
branches;
next	1.10;

1.10
date	97.10.25.06.58.49;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	97.10.18.06.43.03;	author lukem;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	97.10.03.19.54.09;	author christos;	state Exp;
branches;
next	1.7;

1.7
date	97.03.24.22.03.04;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	95.03.07.23.18.39;	author mycroft;	state Exp;
branches;
next	1.5;

1.5
date	95.03.06.19.09.45;	author mycroft;	state dead;
branches;
next	1.4;

1.4
date	94.12.22.11.43.55;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	94.02.22.04.08.21;	author cgd;	state Exp;
branches;
next	1.2;

1.2
date	93.12.05.01.01.38;	author deraadt;	state Exp;
branches;
next	1.1;

1.1
date	93.11.14.21.19.50;	author deraadt;	state Exp;
branches
	1.1.1.1;
next	;

1.52.2.1
date	2012.04.17.00.09.54;	author yamt;	state dead;
branches;
next	;

1.52.4.1
date	2012.10.17.20.59.08;	author riz;	state dead;
branches;
next	;

1.51.4.1
date	2011.06.23.14.20.50;	author cherry;	state Exp;
branches;
next	;

1.48.4.1
date	2009.05.13.19.20.42;	author jym;	state Exp;
branches;
next	;

1.46.6.1
date	2008.09.18.04.30.15;	author wrstuden;	state Exp;
branches;
next	;

1.45.4.1
date	2008.01.09.02.02.33;	author matt;	state Exp;
branches;
next	;

1.45.8.1
date	2007.07.24.12.01.00;	author drochner;	state dead;
branches;
next	1.45.8.2;

1.45.8.2
date	2007.07.24.12.01.01;	author drochner;	state Exp;
branches;
next	;

1.27.2.1
date	2002.12.07.22.47.34;	author he;	state Exp;
branches;
next	;

1.15.2.1
date	99.12.27.18.38.12;	author wrstuden;	state Exp;
branches;
next	;

1.14.2.1
date	99.10.11.05.38.49;	author cgd;	state Exp;
branches;
next	;

1.9.2.1
date	97.11.08.15.12.49;	author lukem;	state Exp;
branches;
next	;

1.1.1.1
date	97.10.03.17.25.30;	author christos;	state Exp;
branches;
next	;


desc
@@


1.53
log
@The movers came, a long time ago. Closes PR 44860.
@
text
@#	$NetBSD: Makefile,v 1.52 2011/06/20 07:44:04 mrg Exp $	

WARNS?=	1	# XXX: out of date third-party program 

.include <bsd.own.mk>

USE_FORT?= yes	# network client

SRCDIR=	${NETBSDSRCDIR}/dist/tcpdump
.PATH:	${SRCDIR}

PROG=	tcpdump
MAN=	tcpdump.8 

SRCS=	addrtoname.c cpack.c gmpls.c gmt2local.c machdep.c oui.c parsenfsfh.c \
		pf_print_state.c \
	print-802_11.c print-ah.c print-aodv.c print-ap1394.c print-arcnet.c \
	print-arp.c \
	print-ascii.c print-atalk.c print-atm.c print-bfd.c print-bgp.c \
	print-bootp.c print-beep.c print-cdp.c print-chdlc.c \
	print-cip.c print-cnfp.c print-decnet.c print-domain.c \
	print-dvmrp.c print-egp.c print-enc.c print-esp.c print-ether.c \
	print-fddi.c print-fr.c print-gre.c print-hsrp.c print-icmp.c \
	print-igmp.c print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c \
	print-ipx.c print-isakmp.c print-isoclns.c print-krb.c \
	print-l2tp.c print-lane.c print-ldp.c print-llc.c print-lwres.c \
	print-msdp.c print-mobile.c print-mobility.c print-mpls.c print-nfs.c \
	print-ntp.c print-null.c print-ospf.c print-pflog.c print-pfsync.c \
	print-pim.c print-ppp.c print-pppoe.c print-pptp.c \
	print-radius.c print-raw.c print-rip.c print-rsvp.c print-rx.c \
	print-sctp.c print-sl.c print-sll.c print-smb.c print-snmp.c \
	print-stp.c print-sunatm.c print-sunrpc.c print-tcp.c \
	print-telnet.c print-tftp.c print-timed.c print-token.c \
	print-udp.c print-vjc.c print-vrrp.c print-wb.c print-zephyr.c \
	setsignal.c smbutil.c tcpdump.c util.c
SRCS+=	print-eigrp.c l2vpn.c print-slow.c print-eap.c nlpid.c print-dccp.c \
	print-pgm.c ipproto.c print-syslog.c print-sip.c print-lmp.c \
	print-lspping.c print-symantec.c print-juniper.c af.c print-olsr.c

SRCS+=	bpf_dump.c

SRCS+=	version.c

# disabled for now
#SRCS+=	print-smb.c smbutil.c

version.c: VERSION
	${_MKTARGET_CREATE}
	${TOOL_SED} -e 's/.*/char version[] = "&";/' ${.ALLSRC} > ${.TARGET}

LDADD+=	-lpcap -ll
DPADD+=	${LIBPCAP} ${LIBL}

CPPFLAGS+=	-I${.CURDIR} -I${SRCDIR} -I${NETBSDSRCDIR}/sys/dist/pf
CPPFLAGS+=  -I${NETBSDSRCDIR}/dist/pf/sbin/pfctl

AWKS= atime.awk packetdat.awk stime.awk send-ack.awk   

CPPFLAGS+= \
	-DHAVE___ATTRIBUTE__=1 -DHAVE_FCNTL_H=1 -DHAVE_RPC_RPCENT_H=1 \
	-DHAVE_NETINET_IF_ETHER_H=1 -DTIME_WITH_SYS_TIME=1 \
	-DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 -DHAVE_SOCKADDR_SA_LEN=1 \
	-DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 \
	-DHAVE_ADDRINFO=1 -DHAVE_SOCKADDR_STORAGE=1 -DHAVE_INADDRSZ=1 \
	-DHAVE_IN6ADDRSZ=1 -DHAVE_VFPRINTF=1 \
	-DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 \
	-DHAVE_STRDUP=1 -DHAVE_ETHER_NTOHOST=1 -DUSE_ETHER_NTOHOST=1 \
	-DHAVE_SETLINEBUF=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 \
	-DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1 \
	-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_H_ERRNO=1 -DHAVE_OPENSSL_EVP_H=1 \
	-DHAVE_PCAP_LIB_VERSION=1 -DHAVE_PCAP_SET_DATALINK=1 \
	-DHAVE_PCAP_LIST_DATALINKS=1 -DHAVE_PCAP_DATALINK_NAME_TO_VAL=1 \
	-DHAVE_PCAP_FINDALLDEVS=1 -DHAVE_PCAP_IF_T=1 -DHAVE_PCAP_DUMP_FLUSH=1 \
	-DHAVE_PCAP_DEBUG=1
CPPFLAGS+= -DHAVE_STRUCT_ETHER_ADDR
CPPFLAGS+=-DLBL_ALIGN=1
CPPFLAGS+=-DTCPDUMP_DO_SMB=1
CPPFLAGS+=-D_U_="__attribute__((unused))"

CPPFLAGS+=-DWITH_USER=\"_tcpdump\"
CPPFLAGS+=-DWITH_CHROOT=\"/var/chroot/tcpdump\"

.if (${USE_INET6} != "no")
SRCS+=	print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c \
	print-rt6.c print-ospf6.c print-dhcp6.c

CPPFLAGS+=-DINET6=1 -DHAVE_RES_USE_INET6=1 
.endif

.if (${MKCRYPTO} != "no")
CPPFLAGS+=-DHAVE_LIBCRYPTO=1 
LDADD+=	-lcrypto -lcrypt
DPADD+=	${LIBCRYPTO} ${LIBCRYPT}
.endif

.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS+=	-fno-strict-aliasing
.for f in print-802_11 print-esp print-fr print-radius print-telnet tcpdump util
COPTS.${f}.c+=  -Wno-pointer-sign
.endfor
.endif

CLEANFILES+=	version.c

.include <bsd.prog.mk>
@


1.52
log
@remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2010/12/17 09:54:28 jruoho Exp $	
@


1.52.4.1
log
@Pull up following revision(s) (requested by msaitoh in ticket #541):
	usr.sbin/tcpdump/Makefile: file removal
The movers came, a long time ago. Closes PR 44860.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.52 2011/06/20 07:44:04 mrg Exp $	
@


1.52.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.52 2011/06/20 07:44:04 mrg Exp $	
@


1.51
log
@Make tcpdump(8) to drop root privileges and chroot(2) by default.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.50 2009/09/14 10:36:51 degroote Exp $	
d96 1
a96 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.51.4.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.52 2011/06/20 07:44:04 mrg Exp $	
d96 1
a96 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
@


1.50
log
@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@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2009/04/22 15:23:09 lukem Exp $	
d80 3
@


1.49
log
@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)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 2008/10/25 22:27:39 apb Exp $	
d16 1
d28 1
a28 1
	print-ntp.c print-null.c print-ospf.c print-pflog.c \
d55 1
@


1.48
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.47 2008/08/29 00:02:26 gmcgarry Exp $	
@


1.48.4.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.49 2009/04/22 15:23:09 lukem Exp $	

WARNS?=	1	# XXX: out of date third-party program 
@


1.47
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2008/01/07 16:10:57 christos Exp $	
d46 1
a46 1
	sed -e 's/.*/char version[] = "&";/' ${.ALLSRC} > ${.TARGET}
@


1.46
log
@Fix -D option, from Jukka Salmi
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2007/07/24 12:01:00 drochner Exp $	
d89 1
a89 1
.if ${HAVE_GCC} == 4
@


1.46.6.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2008/01/07 16:10:57 christos Exp $	
d89 1
a89 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.45
log
@adjust for tcpdump-3.9.7
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 2007/05/28 12:06:42 tls Exp $	
d69 1
a69 1
	-DHAVE_PCAP_FINDALLDEVS=1 -DHAVE_PCAP_DUMP_FLUSH=1 \
@


1.45.8.1
log
@file Makefile was added on branch matt-mips64 on 2007-07-24 12:01:01 +0000
@
text
@d1 98
@


1.45.8.2
log
@adjust for tcpdump-3.9.7
@
text
@a0 98
#	$NetBSD: Makefile,v 1.45 2007/07/24 12:01:00 drochner Exp $	

.include <bsd.own.mk>

USE_FORT?= yes	# network client

SRCDIR=	${NETBSDSRCDIR}/dist/tcpdump
.PATH:	${SRCDIR}

PROG=	tcpdump
MAN=	tcpdump.8 

SRCS=	addrtoname.c cpack.c gmpls.c gmt2local.c machdep.c oui.c parsenfsfh.c \
	print-802_11.c print-ah.c print-aodv.c print-ap1394.c print-arcnet.c \
	print-arp.c \
	print-ascii.c print-atalk.c print-atm.c print-bfd.c print-bgp.c \
	print-bootp.c print-beep.c print-cdp.c print-chdlc.c \
	print-cip.c print-cnfp.c print-decnet.c print-domain.c \
	print-dvmrp.c print-egp.c print-enc.c print-esp.c print-ether.c \
	print-fddi.c print-fr.c print-gre.c print-hsrp.c print-icmp.c \
	print-igmp.c print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c \
	print-ipx.c print-isakmp.c print-isoclns.c print-krb.c \
	print-l2tp.c print-lane.c print-ldp.c print-llc.c print-lwres.c \
	print-msdp.c print-mobile.c print-mobility.c print-mpls.c print-nfs.c \
	print-ntp.c print-null.c print-ospf.c print-pflog.c \
	print-pim.c print-ppp.c print-pppoe.c print-pptp.c \
	print-radius.c print-raw.c print-rip.c print-rsvp.c print-rx.c \
	print-sctp.c print-sl.c print-sll.c print-smb.c print-snmp.c \
	print-stp.c print-sunatm.c print-sunrpc.c print-tcp.c \
	print-telnet.c print-tftp.c print-timed.c print-token.c \
	print-udp.c print-vjc.c print-vrrp.c print-wb.c print-zephyr.c \
	setsignal.c smbutil.c tcpdump.c util.c
SRCS+=	print-eigrp.c l2vpn.c print-slow.c print-eap.c nlpid.c print-dccp.c \
	print-pgm.c ipproto.c print-syslog.c print-sip.c print-lmp.c \
	print-lspping.c print-symantec.c print-juniper.c af.c print-olsr.c

SRCS+=	bpf_dump.c

SRCS+=	version.c

# disabled for now
#SRCS+=	print-smb.c smbutil.c

version.c: VERSION
	${_MKTARGET_CREATE}
	sed -e 's/.*/char version[] = "&";/' ${.ALLSRC} > ${.TARGET}

LDADD+=	-lpcap -ll
DPADD+=	${LIBPCAP} ${LIBL}

CPPFLAGS+=	-I${.CURDIR} -I${SRCDIR} -I${NETBSDSRCDIR}/sys/dist/pf

AWKS= atime.awk packetdat.awk stime.awk send-ack.awk   

CPPFLAGS+= \
	-DHAVE___ATTRIBUTE__=1 -DHAVE_FCNTL_H=1 -DHAVE_RPC_RPCENT_H=1 \
	-DHAVE_NETINET_IF_ETHER_H=1 -DTIME_WITH_SYS_TIME=1 \
	-DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 -DHAVE_SOCKADDR_SA_LEN=1 \
	-DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 \
	-DHAVE_ADDRINFO=1 -DHAVE_SOCKADDR_STORAGE=1 -DHAVE_INADDRSZ=1 \
	-DHAVE_IN6ADDRSZ=1 -DHAVE_VFPRINTF=1 \
	-DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 \
	-DHAVE_STRDUP=1 -DHAVE_ETHER_NTOHOST=1 -DUSE_ETHER_NTOHOST=1 \
	-DHAVE_SETLINEBUF=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 \
	-DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1 \
	-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_H_ERRNO=1 -DHAVE_OPENSSL_EVP_H=1 \
	-DHAVE_PCAP_LIB_VERSION=1 -DHAVE_PCAP_SET_DATALINK=1 \
	-DHAVE_PCAP_LIST_DATALINKS=1 -DHAVE_PCAP_DATALINK_NAME_TO_VAL=1 \
	-DHAVE_PCAP_FINDALLDEVS=1 -DHAVE_PCAP_DUMP_FLUSH=1 \
	-DHAVE_PCAP_DEBUG=1
CPPFLAGS+= -DHAVE_STRUCT_ETHER_ADDR
CPPFLAGS+=-DLBL_ALIGN=1
CPPFLAGS+=-DTCPDUMP_DO_SMB=1
CPPFLAGS+=-D_U_="__attribute__((unused))"

.if (${USE_INET6} != "no")
SRCS+=	print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c \
	print-rt6.c print-ospf6.c print-dhcp6.c

CPPFLAGS+=-DINET6=1 -DHAVE_RES_USE_INET6=1 
.endif

.if (${MKCRYPTO} != "no")
CPPFLAGS+=-DHAVE_LIBCRYPTO=1 
LDADD+=	-lcrypto -lcrypt
DPADD+=	${LIBCRYPTO} ${LIBCRYPT}
.endif

.if ${HAVE_GCC} == 4
COPTS+=	-fno-strict-aliasing
.for f in print-802_11 print-esp print-fr print-radius print-telnet tcpdump util
COPTS.${f}.c+=  -Wno-pointer-sign
.endfor
.endif

CLEANFILES+=	version.c

.include <bsd.prog.mk>
@


1.45.4.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$	
d69 1
a69 1
	-DHAVE_PCAP_FINDALLDEVS=1 -DHAVE_PCAP_IF_T=1 -DHAVE_PCAP_DUMP_FLUSH=1 \
@


1.44
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 2006/05/12 02:00:46 mrg Exp $	
d33 3
d71 1
@


1.43
log
@apply -Wno-pointer-sign to print-802_11.c as well.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2006/05/11 23:16:31 mrg Exp $	
d5 2
@


1.42
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2006/05/11 08:41:07 mrg Exp $	
d85 1
a85 1
.for f in print-esp print-fr print-radius print-telnet tcpdump util
@


1.41
log
@use -fno-strict-aliasing with GCC4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2005/09/19 21:18:30 explorer Exp $	
d85 3
@


1.40
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2005/03/09 03:11:23 christos Exp $	
d83 4
@


1.39
log
@Add -lcrypt where -lcrypto is specified.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2005/01/10 02:58:59 lukem Exp $	
d62 4
a65 1
	-DHAVE_PCAP_LIB_VERSION=1 -DHAVE_PCAP_SET_DATALINK=1
@


1.38
log
@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).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2004/09/30 06:40:19 dyoung Exp $	
d76 2
a77 2
LDADD+=	-lcrypto
DPADD+=	${LIBCRYPTO}
@


1.37
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2004/09/28 00:01:02 dyoung Exp $	
a31 3
SRCS+=	print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c \
	print-rt6.c print-ospf6.c print-dhcp6.c

d52 1
a52 1
	-DHAVE_NETINET_IF_ETHER_H=1 -DTIME_WITH_SYS_TIME=1 -DINET6=1 \
d56 1
a56 1
	-DHAVE_IN6ADDRSZ=1 -DHAVE_RES_USE_INET6=1 -DHAVE_VFPRINTF=1 \
d67 7
@


1.36
log
@Add radiotap support, which was not in release 3.8.3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2004/09/27 23:04:50 dyoung Exp $	
d65 1
a65 1
	-DHAVE_PCAP_SET_DATALINK=1
@


1.35
log
@Resolve conflicts in tcpdump-3.8.3 import.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2004/06/29 04:46:35 itojun Exp $	
d11 1
a11 1
SRCS=	addrtoname.c gmpls.c gmt2local.c machdep.c oui.c parsenfsfh.c \
@


1.34
log
@pflog if support for tcpdump.  Peter Postma
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2003/10/21 10:01:22 lukem Exp $	
d11 4
a14 3
SRCS=	addrtoname.c gmt2local.c machdep.c parsenfsfh.c \
	print-802_11.c print-ah.c print-arcnet.c print-arp.c \
	print-ascii.c print-atalk.c print-atm.c print-bgp.c \
d17 3
a19 3
	print-dvmrp.c print-egp.c print-esp.c print-ether.c \
	print-fddi.c print-gre.c print-hsrp.c print-icmp.c \
	print-igmp.c print-igrp.c print-ip.c print-ipcomp.c \
d21 2
a22 2
	print-l2tp.c print-lane.c print-lcp.c print-llc.c print-lwres.c \
	print-msdp.c print-mobile.c print-mpls.c print-nfs.c \
d25 1
a25 1
	print-radius.c print-raw.c print-rip.c print-rx.c \
d27 1
a27 1
	print-stp.c print-sunrpc.c print-tcp.c \
d64 2
a65 1
	-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_H_ERRNO=1
d68 1
@


1.33
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2003/10/19 06:12:07 lukem Exp $	
d48 1
a48 1
CPPFLAGS+=	-I${.CURDIR} -I${SRCDIR}
@


1.32
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2003/03/28 11:06:32 jdolecek Exp $	
d42 1
a42 2
	${_MKMSGCREATE}
	${_MKCMD}\
@


1.31
log
@enable SMB support
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2002/10/18 23:13:58 itojun Exp $	
d42 2
@


1.30
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2002/09/18 03:54:38 lukem Exp $	
d25 1
a25 1
	print-sctp.c print-sl.c print-sll.c print-snmp.c \
d29 1
a29 1
	setsignal.c tcpdump.c util.c
d64 1
a64 1
#CPPFLAGS+=-DTCPDUMP_DO_SMB=1
@


1.29
log
@use NETBSDSRCDIR as appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2002/05/31 09:45:47 itojun Exp $	
d63 1
@


1.28
log
@sync with 3.7.1 (2002/5/31)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2002/02/18 09:45:11 itojun Exp $	
d5 1
a5 1
SRCDIR=	${.CURDIR}/../../dist/tcpdump
@


1.27
log
@no need to have tcpdump.8 in CLEANFILES
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2002/02/18 09:37:11 itojun Exp $	
d22 4
a25 4
	print-ntp.c print-null.c print-ospf.c print-pim.c \
	print-ppp.c print-pppoe.c print-pptp.c print-radius.c \
	print-raw.c print-rip.c print-rx.c print-sctp.c \
	print-sl.c print-sll.c print-snmp.c \
@


1.27.2.1
log
@Pull up revision 1.30 (requested by itojun in ticket #933):
  Correct LBL_ALIGN behaviour, sync with tcpdump.org.
  Enable LBL_ALIGN codepath to use byte-by-byte fetch
  in extract.h.  Fixes PR#18688 and PR#18398.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2002/02/18 09:45:11 itojun Exp $	
a62 1
CPPFLAGS+=-DLBL_ALIGN=1
@


1.26
log
@sync with 3.7.1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2001/11/15 07:39:25 itojun Exp $	
d71 1
a71 1
CLEANFILES+=	tcpdump.8 version.c
@


1.25
log
@remove LBL_ALIGN.  the code leaks memory severely, and makes packet dump
incorrect.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2001/10/22 09:24:27 itojun Exp $	
d14 1
a14 1
	print-bootp.c print-bxxp.c print-cdp.c print-chdlc.c \
d17 10
a26 9
	print-fddi.c print-gre.c print-icmp.c print-igmp.c \
	print-igrp.c print-ip.c print-ipcomp.c print-ipx.c \
	print-isakmp.c print-isoclns.c print-krb.c print-l2tp.c \
	print-lane.c print-lcp.c print-llc.c print-lwres.c \
	print-mobile.c print-mpls.c print-nfs.c print-ntp.c print-null.c \
	print-ospf.c print-pim.c print-ppp.c print-pppoe.c \
	print-pptp.c print-radius.c print-raw.c print-rip.c \
	print-rx.c print-sctp.c print-sl.c print-sll.c \
	print-snmp.c print-stp.c print-sunrpc.c print-tcp.c \
d28 1
a28 1
	print-udp.c print-vjc.c print-vrrp.c print-wb.c \
d32 5
a36 1
	print-rt6.c print-ospf6.c print-dhcp6.c bpf_dump.c version.c
d51 13
a63 10
CPPFLAGS+=-DRETSIGTYPE=void -DTIME_WITH_SYS_TIME=1 -DINET6=1 \
	-DHAVE_ADDRINFO=1 -DHAVE_H_ERRNO=1 -DHAVE_IN6ADDRSZ=1 \
	-DHAVE_INADDRSZ=1 -DHAVE_RES_USE_INET6=1 -DHAVE_SOCKADDR_SA_LEN=1 \
	-DHAVE_SOCKADDR_STORAGE=1 -DRETSIGVAL= -DHAVE_ETHER_NTOHOST=1 \
	-DHAVE_FREEADDRINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 \
	-DHAVE_SETLINEBUF=1 -DHAVE_SIGACTION=1 -DHAVE_SNPRINTF=1 \
	-DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRLCAT=1 \
	-DHAVE_STRLCPY=1 -DHAVE_VFPRINTF=1 -DHAVE_VSNPRINTF=1 \
	-DHAVE_CAST_H=1 -DHAVE_FCNTL_H=1 -DHAVE_NETINET_IF_ETHER_H=1 \
	-DHAVE_RPC_RPCENT_H=1 -DHAVE___ATTRIBUTE__=1
@


1.24
log
@define LBL_ALIGN, to avoid unaligned access on align-picky arch.
suggested by Manuel Bouyer
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2001/06/25 19:41:19 itojun Exp $	
d55 1
a55 1
	-DHAVE_RPC_RPCENT_H=1 -DHAVE___ATTRIBUTE__=1 -DLBL_ALIGN=1
@


1.23
log
@switch to use src/dist/tcpdump.  source code has been checked and the new
tree organization should give the same (or more) decoding functionalities.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2001/04/14 12:31:34 martin Exp $	
d55 1
a55 1
	-DHAVE_RPC_RPCENT_H=1 -DHAVE___ATTRIBUTE__=1
@


1.22
log
@Add basic support for PPPoE interfaces.
@
text
@d1 6
a6 1
#	$NetBSD: Makefile,v 1.21 2001/03/01 15:13:31 itojun Exp $	
d11 27
a37 7
CPPFLAGS+=-DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1
CPPFLAGS+=-DTIME_WITH_SYS_TIME=1 -DHAVE_NET_SLIP_H=1 -DHAVE_VFPRINTF=1
CPPFLAGS+=-DHAVE_STRCASECMP=1 -DHAVE_ETHER_NTOA=1 -DHAVE_SETLINEBUF=1
CPPFLAGS+=-DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1
CPPFLAGS+=-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_FDDI -DHAVE_TOKEN -DLBL_ALIGN
CPPFLAGS+=-DHAVE_HDLC
CPPFLAGS+=-DINET6 -DHAVE_LIBZ -DHAVE_ZLIB_H -DHAVE_SOCKADDR_STORAGE
d42 1
a42 15
SRCS=	util.c tcpdump.c setsignal.c savestr.c print-wb.c print-udp.c \
print-tftp.c print-tcp.c print-sunrpc.c print-snmp.c print-sl.c print-rip.c \
print-raw.c print-ppp.c print-pim.c print-ospf.c print-null.c print-ntp.c \
print-nfs.c print-netbios.c print-llc.c print-krb.c print-isoclns.c print-ipx.c \
print-ip.c print-igrp.c print-icmp.c print-gre.c print-fddi.c print-ether.c \
print-egp.c print-dvmrp.c print-domain.c print-decnet.c print-bootp.c print-atm.c \
print-chdlc.c print-token.c print-pppoe.c \
print-atalk.c print-arp.c parsenfsfh.c machdep.c gmt2local.c bpf_dump.c \
addrtoname.c print-mobile.c print-arcnet.c
SRCS+=	print-ah.c print-esp.c print-frag6.c print-icmp6.c print-ip6.c \
	print-ip6opts.c print-ipcomp.c print-isakmp.c print-ospf6.c \
	print-ripng.c print-rt6.c print-dhcp6.c print-bgp.c
SRCS+= version.c
SRCS+= print-ascii.c print-telnet.c
SRCS+= print-vrrp.c
d45 19
@


1.21
log
@sync cisco hdlc packet printer with tcpdump.org.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2001/01/19 09:10:13 kleink Exp $	
d23 1
a23 1
print-chdlc.c print-token.c \
@


1.20
log
@Teach tcpdump(8) to dump VRRP.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2000/04/24 13:01:23 itojun Exp $	
d23 1
a23 1
print-hdlc.c print-token.c \
@


1.19
log
@- domain: avoid infinite loop in DNS packet printing.
- isakmp: print CERT and SIG payload.  fix IPsec-AH algorithm type.
- rt6: avoid duplicated IPv6 src/dst.
sync with tcpdump.org.
XXX we need to think about future synchronization with tcpdump.org...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1999/12/10 05:45:07 itojun Exp $	
d31 1
@


1.18
log
@sync with recent KAME.
- more length overflow check for ip6 related parsing
- protocol decode fixes
- add dhcp6 parser

XXX how should we maintain usr.sbin/tcpdump for years to come?
relationship with www.tcpdump.org codebase?
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1999/10/05 20:37:21 is Exp $	
d12 1
a12 1
CPPFLAGS+=-DINET6 -DHAVE_LIBZ -DHAVE_ZLIB_H
@


1.17
log
@First part of ARCnet support.
Matching for anything won't work (as we need to teach the stuff about
variable length link level headers), but printing is fine.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1999/09/30 14:49:12 sjg Exp $	
d28 1
a28 1
	print-ripng.c print-rt6.c
@


1.16
log
@Add printing of TELNET options (with -v) and hex/ascii (-X).
Thanks to Alan Barrett for the simpler hexdump code and testing.
Tested on -current and 1.4.1.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1999/07/02 11:31:28 itojun Exp $	
d25 1
a25 1
addrtoname.c print-mobile.c
@


1.15
log
@Pv6, IPsec, ospf6, ripng, dhcp and other protocols support.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1999/03/23 00:02:24 bad Exp $	
d30 1
@


1.15.2.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1999/12/10 05:45:07 itojun Exp $	
d25 1
a25 1
addrtoname.c print-mobile.c print-arcnet.c
d28 1
a28 1
	print-ripng.c print-rt6.c print-dhcp6.c print-bgp.c
a29 1
SRCS+= print-ascii.c print-telnet.c
@


1.14
log
@Make this understand Token-Ring.
From Onno van der Linden.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1998/09/25 19:10:25 hwr Exp $	
d12 1
d26 3
@


1.14.2.1
log
@pull up rev 1.16 from trunk (requested by sjg):
  Add telnet option printing and hex/ascii dumps to tcpdump.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1999/03/23 00:02:24 bad Exp $	
a25 1
SRCS+= print-ascii.c print-telnet.c
@


1.13
log
@Add for packtes of IPPROTO_MOBILE (55). This is yet another
tunneling protocol which is described in RFC2004.
XXX There is no verification of the miniheader checksum at the moment.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1998/07/25 11:30:43 explorer Exp $	
d10 1
a10 1
CPPFLAGS+=-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_FDDI -DLBL_ALIGN
d22 1
a22 1
print-hdlc.c \
@


1.12
log
@changes to print hdlc framing info
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1998/02/01 13:46:53 christos Exp $	
d24 1
a24 1
addrtoname.c 
@


1.11
log
@Add -DLBL_ALIGN to handle architectures that need memory alignment.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1997/10/25 06:58:49 lukem Exp $	
d11 1
d22 1
@


1.10
log
@use CPPFLAGS instead of CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1997/10/18 06:43:03 lukem Exp $	
d10 1
a10 1
CPPFLAGS+=-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_FDDI
@


1.9
log
@enable WARNS=1 by default, but disable in unclean 3rd party code
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1997/10/03 19:54:09 christos Exp $	
d6 5
a10 5
CFLAGS+=-DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1
CFLAGS+=-DTIME_WITH_SYS_TIME=1 -DHAVE_NET_SLIP_H=1 -DHAVE_VFPRINTF=1
CFLAGS+=-DHAVE_STRCASECMP=1 -DHAVE_ETHER_NTOA=1 -DHAVE_SETLINEBUF=1
CFLAGS+=-DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1
CFLAGS+=-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_FDDI
@


1.9.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1997/10/25 06:58:49 lukem Exp $	
d6 5
a10 5
CPPFLAGS+=-DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1
CPPFLAGS+=-DTIME_WITH_SYS_TIME=1 -DHAVE_NET_SLIP_H=1 -DHAVE_VFPRINTF=1
CPPFLAGS+=-DHAVE_STRCASECMP=1 -DHAVE_ETHER_NTOA=1 -DHAVE_SETLINEBUF=1
CPPFLAGS+=-DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1
CPPFLAGS+=-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_FDDI
@


1.8
log
@Resolved conflicts.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.1 1997/10/03 17:25:30 christos Exp $	
a2 1
WARNS?=	1
@


1.7
log
@Makefile cleanups
@
text
@d1 1
a1 22
#	$NetBSD: Makefile,v 1.6 1995/03/07 23:18:39 mycroft Exp $
#
#  Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994
# 	The Regents of the University of California.  All rights reserved.
#
#  Redistribution and use in source and binary forms, with or without
#  modification, are permitted provided that: (1) source code distributions
#  retain the above copyright notice and this paragraph in its entirety, (2)
#  distributions including binary code include the above copyright notice and
#  this paragraph in its entirety in the documentation or other materials
#  provided with the distribution, and (3) all advertising materials mentioning
#  features or use of this software display the following acknowledgement:
#  ``This product includes software developed by the University of California,
#  Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
#  the University nor the names of its contributors may be used to endorse
#  or promote products derived from this software without specific prior
#  written permission.
#  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# @@(#) $Header: /a/cvsroot/src/usr.sbin/tcpdump/Makefile,v 1.6 1995/03/07 23:18:39 mycroft Exp $ (LBL)
d3 1
d5 1
a5 1
MAN=	tcpdump.8
d7 5
a11 1
CFLAGS+=-DCSLIP -DPPP -DFDDI -DETHER_SERVICE
d16 9
a24 8
SRCS=	tcpdump.c addrtoname.c \
	print-ether.c print-ip.c print-arp.c print-tcp.c print-udp.c \
	print-atalk.c print-domain.c print-tftp.c print-bootp.c print-nfs.c \
	print-icmp.c print-sl.c print-ppp.c print-rip.c \
	print-snmp.c print-ntp.c print-null.c print-egp.c print-ospf.c \
	print-fddi.c print-llc.c print-sunrpc.c \
	print-wb.c print-decnet.c print-isoclns.c print-ipx.c \
	util.c bpf_dump.c parsenfsfh.c version.c
d26 1
a26 1
AWKS =	atime.awk packetdat.awk send-ack.awk stime.awk
@


1.6
log
@Add files I missed in the merge.
@
text
@d1 1
a1 1
#	$NetBSD: $
d22 1
a22 1
# @@(#) $Header: /afs/sipb/user/jhawk/CVS/tcpdump-3.0/Makefile.in,v 1.1.1.1 1995/01/03 05:18:37 jhawk Exp $ (LBL)
d30 1
a30 1
DPADD+=	${LIBL} ${LIBPCAP}
@


1.5
log
@Clean up merge, port to NetBSD, and add NetBSD RCS tags.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.4 1994/12/22 11:43:55 cgd Exp mycroft $
d3 2
a4 5
# Possible Options:
#  -DCSLIP	include support for kernel slip interface
#  -DPPP	include support for point to point protocol
#  -DIBMRTPC	enable the MERIT additions to the Stanford Enetfilter
#  -DNOVFPRINTF	simulate vfprintf() on systems that don't have it
d6 15
a20 1
# CSLIP and PPP work only under BPF.
d22 2
a25 5
DEFINES = -DCSLIP -DPPP -DFDDI
CFLAGS+=-I. -I${.CURDIR} ${DEFINES}
.if ${MACHINE_ARCH} == "sparc"
CFLAGS+=-DTCPDUMP_ALIGN
.endif
d27 4
a30 2
LDADD=  -ll
DPADD=  ${LIBL}
d35 1
a35 1
	print-icmp.c nametoaddr.c print-sl.c print-ppp.c print-rip.c \
d37 3
a39 7
	print-fddi.c print-sunrpc.c savefile.c util.c etherent.c inet.c \
	gencode.c optimize.c bpf_dump.c bpf_filter.c \
	bpf_image.c tcpgram.y tcplex.l md.c pcap.c version.c
.PATH:	${.CURDIR}/../../sys/net

CLEANFILES+= y.tab.h

d41 1
a41 2
#SRCS2 = tcpslice.o gwtm2secs.o search.o savefile.o bpf_filter.o md.o util.o
#tcpslice:	SRSC2
@


1.4
log
@specify man pages the new way.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.3 1994/02/22 04:08:21 cgd Exp $
@


1.3
log
@add -DTCPDUMP_ALIGN to CFLAGS if on a sparc
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.2 1993/12/05 01:01:38 deraadt Exp $
d12 1
a12 1
MAN8=	tcpdump.0
@


1.2
log
@link -ll
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.1 1993/11/14 21:19:50 deraadt Exp $
d15 3
@


1.1
log
@tcpdump version 2.1.1 by Steve McCanne <mccanne@@ee.lbl.gov>
@
text
@d1 1
a1 1
# $Id: $
d15 3
@


1.1.1.1
log
@Import LBL's tcpdump 3.4a5
@
text
@d1 14
a14 1
#	$NetBSD: $	
d16 9
a24 3
WARNS?=	1
PROG=	tcpdump
MAN=	tcpdump.8 
d26 1
a26 5
CFLAGS+=-DHAVE_FCNTL_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1
CFLAGS+=-DTIME_WITH_SYS_TIME=1 -DHAVE_NET_SLIP_H=1 -DHAVE_VFPRINTF=1
CFLAGS+=-DHAVE_STRCASECMP=1 -DHAVE_ETHER_NTOA=1 -DHAVE_SETLINEBUF=1
CFLAGS+=-DRETSIGTYPE=void -DRETSIGVAL= -DHAVE_SIGACTION=1
CFLAGS+=-DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_FDDI
a27 2
LDADD+=	-lpcap -ll
DPADD+=	${LIBPCAP} ${LIBL}
d29 2
a30 9
SRCS=	util.c tcpdump.c setsignal.c savestr.c print-wb.c print-udp.c \
print-tftp.c print-tcp.c print-sunrpc.c print-snmp.c print-sl.c print-rip.c \
print-raw.c print-ppp.c print-pim.c print-ospf.c print-null.c print-ntp.c \
print-nfs.c print-netbios.c print-llc.c print-krb.c print-isoclns.c print-ipx.c \
print-ip.c print-igrp.c print-icmp.c print-gre.c print-fddi.c print-ether.c \
print-egp.c print-dvmrp.c print-domain.c print-decnet.c print-bootp.c print-atm.c \
print-atalk.c print-arp.c parsenfsfh.c machdep.c gmt2local.c bpf_dump.c \
addrtoname.c 
SRCS+= version.c
a31 1
AWKS=	
@
