Ethereal-dev: [Ethereal-dev] Re: NEW MODULES FOR TRAFFIC ANALYSIS

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 17 Sep 2002 15:44:11 -0700
On Wed, Aug 28, 2002 at 12:12:23PM +0200, sergio morant wrote:
>   Hello,
> I'm a student at the university of ENST-Bretagne ( FRANCE )

...and I'm a person on vacation from work; you sent the message to my
work address, and should have gotten, in reply, an
automatically-generated message saying that Ethereal-related mail should
be sent to one of the Ethereal mailing lists.

In this particular case, you should have sent the mail to
ethereal-dev@xxxxxxxxxxxx - and should have done so *even if I weren't
on vacation*, as mail about Ethereal development should be sent to that
list, so other people can read it and reply to it, not just to me.

Given that I will also be traveling for the next couple of weeks, I'm
replying to ethereal-dev, and attaching your code to the message.

> and I have 
> been working with Ethereal to deal with a project that is going on at 
> this univerty to study the traffic that is passing across the router of 
> the university.
> I have developped some new features that works under tethereal that are 
> mostly are analysis of the tha traffic captured with the tool and I want 
> to send you those modules to see if that could be included in a future 
> release of the tool. I attach the files I have done, and I also attach a 
> part of the documentation that I have written for this project that is 
> the user's manual for the new features but since the project is keep on 
> going that documentation is not definitive.
> 
> I'm not sure if you are the right person to send all of that

As per the above, no, I'm not.  You should send all of that to
ethereal-dev, or send to that list a URL or other way of fetching that
data from a server.

> but as you 
> are the one that answer most of the questions at the development mailing 
> list, I think at least you should now what I have to do.

Not necessarily - I might have to spend time researching what to do
(time I haven't had), I might not be reading my mail (as I'm not at work
- I happened to be visiting a friend who also works there, and spent
some time quickly checking my mail, so you were lucky and your mail
didn't just sit there in my mailbox for 2 months, but that's just luck),
or I might not know as much about the issues you're asking about as
somebody else on the ethereal-dev list.

> First of all I want to introduce what are the objectives for those 
> modules: The main idea is to be able to evaluate the kind of traffic 
> that is passing through the router, the machines that generates it, and 
> how the traffic variates along the capture period using  all this 
> information to build a rule set for COPS. The intention it  is also that 
> the analysis can be scheduled using Cron or another scheduler daemon. 
> Since all the analysis results are flushed to a text file I have written 
> some functions that automatically generates the strings  for the file 
> name based upon the timestamp of the first frame captured.
> 
> I have taken as starting point the protocol hierarchy statistics module 
> and I made some modifications to allow the module to be able to flush 
> the information to a file besides a GTK window like it works with Ethereal.
> The new files are :
> com_stats.c and com_stats.h : Generate the protocol hierarchy stats and 
> IP communications.
> traffic_statistics.c and traffic_statistics.h: Measures the amount of 
> information sent in little intervals during the capture.

Note that there is other work being done to do packet processing in
Ethereal; the stuff Ronnie Sahlberg checked into the CVS tree recently
might be useful for the sort of stuff you're doing.

> I also have modified some files (All the modifications have a comment 
> like  /* ENST .....*/ ) :
> tethereal.c
> Makefile.in

Note that

	1) if you're sending changes to Ethereal, you should not send
	   modified versions of files that are already in the Ethereal
	   source, you should send patches, generated with "diff -c" or
	   "diff -u", so that the changes can be applied to versions of
	   those files *other* than the one you modified;

	2) "Makefile.in" is *NOT* a source file for Ethereal; it's a
	   file generated from "Makefile.am", so you should send patches
	   to "Makefile.am" rather than sending either an updated
	   "Makefile.in" or patches to "Makefile.in".

> I also have a question for you:  I write to a file the results of the 
> analysis but in order to do that I have place all the routines to open 
> the files and print at each module. I know you have already done 
> severeal modules with the printing routines to create the capture files 
> but I don't know if there is a way to integrate all that together.
> 
> Right now I'm trying to make another module that can send messages to a 
> COPS client (PEP) installed on the same machine but at this moment it 
> only shows messages on the screen because I have to see which 
> implementation of COPS I will use to build the interface between the 
> module and the COPS client application. I don't know If there is some 
> body working on the same direction or if you have tryed something like 
> that or simply if you know a good implementation for COPS because I have 
> seem that there is not many under GNU. The files are :
> flow_monitor.c  and flow_monitor.h
> 
> I hope you will find somethings interesting that could be useful for 
> other people.
> 
> Thanks for your time and if you have any questions regarding those 
> modules just send me an e-mail and I will be  glad to answer them.
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am

# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# Makefile.am
# Automake file for Ethereal
#
# $Id: Makefile.am,v 1.456 2002/08/20 22:42:16 guy Exp $
#
# Ethereal - Network traffic analyzer
# By Gerald Combs <gerald@xxxxxxxxxxxx>
# Copyright 1998 Gerald Combs
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.


SHELL = @SHELL@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

top_builddir = .

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
CPP = @CPP@
DATAFILE_DIR = @DATAFILE_DIR@
DLLTOOL = @DLLTOOL@
ECHO = @ECHO@
EXEEXT = @EXEEXT@
GLIB_CFLAGS = @GLIB_CFLAGS@
GLIB_CONFIG = @GLIB_CONFIG@
GLIB_LIBS = @GLIB_LIBS@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_CONFIG = @GTK_CONFIG@
GTK_LIBS = @GTK_LIBS@
HAVE_PKGMK = @HAVE_PKGMK@
HAVE_PKGPROTO = @HAVE_PKGPROTO@
HAVE_PKGTRANS = @HAVE_PKGTRANS@
HAVE_RPM = @HAVE_RPM@
HAVE_SVR4_PACKAGING = @HAVE_SVR4_PACKAGING@
LEX = @LEX@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MKSTEMP_C = @MKSTEMP_C@
MKSTEMP_O = @MKSTEMP_O@
NSL_LIBS = @NSL_LIBS@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PCAP_LIBS = @PCAP_LIBS@
PERL = @PERL@
PLUGIN_DIR = @PLUGIN_DIR@
POD2MAN = @POD2MAN@
PYTHON = @PYTHON@
RANLIB = @RANLIB@
SNMP_LIBS = @SNMP_LIBS@
SNPRINTF_C = @SNPRINTF_C@
SNPRINTF_O = @SNPRINTF_O@
SOCKET_LIBS = @SOCKET_LIBS@
SSL_LIBS = @SSL_LIBS@
STRCASECMP_C = @STRCASECMP_C@
STRCASECMP_O = @STRCASECMP_O@
STRERROR_C = @STRERROR_C@
STRERROR_O = @STRERROR_O@
STRIP = @STRIP@
STRNCASECMP_C = @STRNCASECMP_C@
STRNCASECMP_O = @STRNCASECMP_O@
STRPTIME_C = @STRPTIME_C@
STRPTIME_O = @STRPTIME_O@
VERSION = @VERSION@
YACC = @YACC@
ac_cv_ethereal_have_rpm = @ac_cv_ethereal_have_rpm@
dftest_bin = @dftest_bin@
editcap_bin = @editcap_bin@
editcap_man = @editcap_man@
ethereal_SUBDIRS = @ethereal_SUBDIRS@
ethereal_bin = @ethereal_bin@
ethereal_man = @ethereal_man@
idl2eth_bin = @idl2eth_bin@
idl2eth_man = @idl2eth_man@
mergecap_bin = @mergecap_bin@
mergecap_man = @mergecap_man@
plugindir = @plugindir@
randpkt_bin = @randpkt_bin@
tethereal_bin = @tethereal_bin@
tethereal_man = @tethereal_man@
text2pcap_bin = @text2pcap_bin@
text2pcap_man = @text2pcap_man@

ACLOCAL_AMFLAGS = `./aclocal-flags`

#
# This is a hideous hack.
#
# Automake needs to know into which sections to install various man
# pages; if the names in "man_MANS" have suffixes, it can infer the
# sections from the name (e.g., "hello.1" goes in section 1), but if
# they don't have suffixes, it can't tell what sections to put them, and
# it just gives up and doesn't create any rules to install them (and it
# gives up silently, so you have no clue what's wrong).
#
# Therefore, we can't just set "man_MANS" to a list of variables to be
# filled in by the configure script, as those variables don't have man
# page section numbers.
#
# It turns out (although this is not documented anywhere I could find
# in the automake Info file) that if you define, instead, variables with
# names like "man{section}_MANS", automake will infer that the names in
# those variables are the names of man pages to be installed in section
# "{section}".
#
# So, as all our man pages go in section 1, we define "man1_MANS" to
# contain all the man page.
#
# *However*, if "man_MANS" isn't defined at all, automake concludes that
# there are no man pages, the fact that, say, "man1_MANS" is defined
# nonwithstanding!  (I suspect this is the result of a mistaken attempt
# to get people to fix their automake files not to use "MANS"; if "MANS"
# is defined, it prints a warning and sets the exit status, but doesn't
# exit, and then it just gives up if "man_MANS" isn't defined,
# presumably on the theory that the only reason it wouldn't be defined
# is because the automake file uses the obsolete "MANS" variable instead
# of the shiny new "man_MANS" variable.)
#
# So we also define "man_MANS", but don't define it as anything;
# automake will arrange that the Makefile define it as the union of all
# the "man{section}_MANS" variables.
#
bin_PROGRAMS = @ethereal_bin@ @editcap_bin@ @mergecap_bin@ @tethereal_bin@ @dftest_bin@ @randpkt_bin@ @text2pcap_bin@
bin_SCRIPTS = @idl2eth_bin@
man1_MANS = @ethereal_man@ @editcap_man@ @mergecap_man@ @tethereal_man@ @text2pcap_man@ @idl2eth_man@
man_MANS = 

EXTRA_PROGRAMS = ethereal ethereal_static tethereal tethereal_static editcap mergecap dftest text2pcap
EXTRA_SCRIPTS = idl2eth

#
# Install "manuf" in the directory for Ethereal configuration files.
#
sysconf_DATA = manuf

#
# Install the Diameter DTD and XML files in the "diameter" subdirectory
# of that directory.
#
diameterdir = $(sysconfdir)/diameter
diameter_DATA = dictionary.dtd dictionary.xml mobileipv4.xml \
	nasreq.xml sunping.xml


DISSECTOR_SRC = \
	packet-aarp.c  \
	packet-afp.c   \
	packet-afs.c   \
	packet-aim.c   \
	packet-ajp13.c		\
	packet-aodv.c  \
	packet-aodv6.c \
	packet-arp.c   \
	packet-asap.c  \
	packet-ascend.c\
	packet-atalk.c \
	packet-atm.c   \
	packet-auto_rp.c   \
	packet-bacapp.c   \
	packet-bacnet.c   \
	packet-beep.c \
	packet-bgp.c   \
	packet-bootp.c \
	packet-bootparams.c \
	packet-bpdu.c  \
	packet-bvlc.c \
	packet-cdp.c   \
	packet-cgmp.c  \
	packet-chdlc.c  \
	packet-clip.c  \
	packet-clnp.c  \
	packet-cops.c  \
	packet-cosine.c  \
	packet-cpha.c  \
	packet-cups.c  \
	packet-data.c  \
	packet-dccp.c \
	packet-dcerpc.c  \
	packet-dcerpc-browser.c  \
	packet-dcerpc-conv.c  \
	packet-dcerpc-dfs.c \
	packet-dcerpc-epm.c  \
	packet-dcerpc-lsa.c \
	packet-dcerpc-mapi.c  \
	packet-dcerpc-mgmt.c  \
	packet-dcerpc-ndr.c  \
	packet-dcerpc-netlogon.c \
	packet-dcerpc-nspi.c \
	packet-dcerpc-nt.c \
	packet-dcerpc-oxid.c  \
	packet-dcerpc-reg.c \
	packet-dcerpc-remact.c  \
	packet-dcerpc-samr.c \
	packet-dcerpc-spoolss.c \
	packet-dcerpc-srvsvc.c \
	packet-dcerpc-tapi.c \
	packet-dcerpc-wkssvc.c \
	packet-ddtp.c  \
	packet-dec-bpdu.c \
	packet-dhcpv6.c \
	packet-diameter.c \
	packet-dlsw.c  \
	packet-dns.c   \
	packet-dsi.c   \
	packet-dvmrp.c \
	packet-eap.c \
	packet-eapol.c \
	packet-eigrp.c \
	packet-esis.c  \
	packet-eth.c   \
	packet-ethertype.c   \
	packet-fddi.c  \
	packet-fr.c    \
	packet-frame.c  \
	packet-ftp.c   \
	packet-fw1.c   \
	packet-giop.c  \
	packet-gmrp.c \
	packet-gnutella.c \
	packet-gre.c   \
	packet-gtp.c   \
	packet-gvrp.c  \
	packet-h1.c    \
	packet-h261.c  \
	packet-hclnfsd.c  \
	packet-hsrp.c  \
	packet-http.c  \
	packet-iapp.c  \
	packet-icap.c  \
	packet-icmpv6.c\
	packet-icp.c   \
	packet-icq.c   \
	packet-ieee80211.c \
	packet-ieee8023.c \
	packet-igmp.c  \
	packet-igrp.c  \
	packet-imap.c   \
	packet-ip.c    \
	packet-ipp.c   \
	packet-ipsec.c \
	packet-ipv6.c  \
	packet-ipx.c   \
	packet-irc.c   \
	packet-isakmp.c\
	packet-iscsi.c \
	packet-isis.c  \
	packet-isis-clv.c \
	packet-isis-hello.c \
	packet-isis-lsp.c \
	packet-isis-snp.c \
	packet-isl.c   \
	packet-isup.c  \
	packet-iua.c   \
	packet-kerberos.c \
	packet-klm.c   \
	packet-l2tp.c  \
	packet-lapb.c  \
	packet-lapbether.c \
	packet-lapd.c  \
	packet-ldap.c  \
	packet-ldp.c   \
	packet-llc.c   \
	packet-lmi.c   \
	packet-lmp.c   \
	packet-lpd.c   \
	packet-m2pa.c  \
	packet-m2tp.c  \
	packet-m2ua.c  \
	packet-m3ua.c  \
	packet-mbtcp.c \
	packet-mip.c  \
	packet-mmse.c  \
	packet-mount.c \
	packet-mpeg1.c  \
	packet-mpls.c \
	packet-mrdisc.c \
	packet-msdp.c  \
	packet-msnip.c \
	packet-msproxy.c \
	packet-mtp2.c \
	packet-mtp3.c \
	packet-nbipx.c \
	packet-nbns.c  \
	packet-ncp.c   \
	packet-ncp2222.c   \
	packet-ndmp.c  \
	packet-netbios.c \
	packet-nfs.c   \
	packet-nfsacl.c \
	packet-nfsauth.c \
	packet-nisplus.c \
	packet-nlm.c   \
	packet-nntp.c  \
	packet-ntlmssp.c  \
	packet-ntp.c  \
	packet-null.c  \
	packet-osi.c   \
	packet-osi-options.c \
	packet-ospf.c  \
	packet-pcnfsd.c \
	packet-pflog.c \
	packet-pgm.c   \
	packet-pim.c   \
	packet-pop.c   \
	packet-portmap.c   \
	packet-ppp.c   \
	packet-pppoe.c \
	packet-pptp.c  \
	packet-prism.c \
	packet-q2931.c \
	packet-q931.c  \
	packet-qllc.c  \
	packet-quake.c \
	packet-quakeworld.c \
	packet-quake2.c \
	packet-quake3.c \
	packet-radius.c\
	packet-ranap.c \
	packet-raw.c   \
	packet-rip.c   \
	packet-ripng.c \
	packet-rlogin.c \
	packet-rmi.c \
	packet-rpc.c   \
	packet-rquota.c \
	packet-rsh.c   \
	packet-rstat.c \
	packet-rsvp.c  \
	packet-rtcp.c  \
	packet-rtp.c   \
	packet-rtsp.c  \
	packet-rwall.c \
	packet-rx.c  \
	packet-sadmind.c \
	packet-sap.c   \
	packet-sccp.c  \
	packet-scsi.c  \
	packet-sctp.c  \
	packet-sdp.c   \
	packet-sip.c   \
	packet-skinny.c   \
	packet-slimp3.c   \
	packet-sll.c   \
	packet-slowprotocols.c \
	packet-smb.c   \
	packet-smb-browse.c \
	packet-smb-common.c \
	packet-smb-logon.c \
	packet-smb-mailslot.c \
	packet-smb-pipe.c \
	packet-smpp.c \
	packet-smtp.c \
	packet-sna.c   \
	packet-snaeth.c \
	packet-snmp.c	\
	packet-socks.c \
	packet-spray.c \
	packet-srvloc.c \
	packet-sscop.c \
	packet-ssl.c   \
	packet-stat.c   \
	packet-stat-notify.c \
	packet-sua.c   \
	packet-syslog.c \
	packet-tacacs.c \
	packet-tcp.c   \
	packet-tds.c   \
	packet-telnet.c\
	packet-tftp.c  \
	packet-time.c  \
	packet-tns.c \
	packet-tpkt.c  \
	packet-tr.c    \
	packet-trmac.c \
	packet-tsp.c \
	packet-ucp.c   \
	packet-udp.c   \
	packet-v120.c \
	packet-vines.c \
	packet-vj.c   \
	packet-vlan.c \
	packet-vrrp.c \
	packet-vtp.c  \
	packet-wccp.c \
	packet-wcp.c \
	packet-who.c  \
	packet-wap.c \
	packet-wtls.c \
	packet-wsp.c \
	packet-wtp.c \
	packet-x11.c   \
	packet-x25.c   \
	packet-xdmcp.c \
	packet-xot.c   \
	packet-xyplex.c   \
	packet-yhoo.c  \
	packet-ypbind.c \
	packet-yppasswd.c \
	packet-ypserv.c \
	packet-ypxfr.c \
	packet-zebra.c

@HAVE_PLUGINS_TRUE@plugin_src = @HAVE_PLUGINS_TRUE@\
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-bpkmattr.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-bpkmreq.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-bpkmrsp.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-docsis.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsaack.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsareq.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsarsp.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dscack.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dscreq.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dscrsp.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsdreq.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsdrsp.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-macmgmt.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-map.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-regack.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-regreq.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-regrsp.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-rngreq.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-rngrsp.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-tlv.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-uccreq.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-uccrsp.c \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-ucd.c \
@HAVE_PLUGINS_TRUE@	plugins/giop/packet-cosnaming.c \
@HAVE_PLUGINS_TRUE@	plugins/giop/packet-coseventcomm.c \
@HAVE_PLUGINS_TRUE@	plugins/gryphon/packet-gryphon.c \
@HAVE_PLUGINS_TRUE@	plugins/mgcp/packet-mgcp.c
@HAVE_PLUGINS_FALSE@plugin_src = 

@HAVE_PLUGINS_TRUE@plugin_static_ldadd = @HAVE_PLUGINS_TRUE@\
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-bpkmattr-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-bpkmreq-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-bpkmrsp-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-docsis-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsaack-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsareq-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsarsp-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dscack-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dscreq-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dscrsp-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsdreq-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-dsdrsp-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-macmgmt-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-map-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-regack-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-regreq-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-regrsp-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-rngreq-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-rngrsp-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-tlv-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-uccreq-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-uccrsp-static.o \
@HAVE_PLUGINS_TRUE@	plugins/docsis/packet-ucd-static.o \
@HAVE_PLUGINS_TRUE@	plugins/giop/packet-cosnaming-static.o \
@HAVE_PLUGINS_TRUE@	plugins/giop/packet-coseventcomm-static.o \
@HAVE_PLUGINS_TRUE@	plugins/gryphon/packet-gryphon-static.o \
@HAVE_PLUGINS_TRUE@	plugins/mgcp/packet-mgcp-static.o
@HAVE_PLUGINS_FALSE@plugin_static_ldadd = 

@HAVE_PLUGINS_TRUE@plugin_libs = @HAVE_PLUGINS_TRUE@\
@HAVE_PLUGINS_TRUE@	plugins/docsis/docsis.la \
@HAVE_PLUGINS_TRUE@	plugins/giop/cosnaming.la \
@HAVE_PLUGINS_TRUE@	plugins/giop/coseventcomm.la \
@HAVE_PLUGINS_TRUE@	plugins/gryphon/gryphon.la \
@HAVE_PLUGINS_TRUE@	plugins/mgcp/mgcp.la
@HAVE_PLUGINS_FALSE@plugin_libs = 

@HAVE_PLUGINS_TRUE@plugin_ldadd = @HAVE_PLUGINS_TRUE@\
@HAVE_PLUGINS_TRUE@	"-dlopen" self	\
@HAVE_PLUGINS_TRUE@	"-dlopen" plugins/docsis/docsis.la \
@HAVE_PLUGINS_TRUE@	"-dlopen" plugins/giop/cosnaming.la \
@HAVE_PLUGINS_TRUE@	"-dlopen" plugins/giop/coseventcomm.la \
@HAVE_PLUGINS_TRUE@	"-dlopen" plugins/gryphon/gryphon.la \
@HAVE_PLUGINS_TRUE@	"-dlopen" plugins/mgcp/mgcp.la
@HAVE_PLUGINS_FALSE@plugin_ldadd = 

noinst_HEADERS = \
	packet-afp.h   \
	packet-afs.h   \
	packet-afs-macros.h \
	packet-afs-register-info.h \
	packet-afs-defs.h \
	packet-arp.h   \
	packet-atalk.h \
	packet-atm.h   \
	packet-bgp.h   \
	packet-bootparams.h \
	packet-chdlc.h \
	packet-clip.h  \
	packet-data.h \
	packet-dccp.h \
	packet-dcerpc.h \
	packet-dcerpc-browser.h \
	packet-dcerpc-dfs.h \
	packet-dcerpc-lsa.h \
	packet-dcerpc-mapi.h \
	packet-dcerpc-netlogon.h \
	packet-dcerpc-nt.h \
	packet-dcerpc-reg.h \
	packet-dcerpc-samr.h \
	packet-dcerpc-spoolss.h \
	packet-dcerpc-srvsvc.h \
	packet-dcerpc-tapi.h \
	packet-dcerpc-wkssvc.h \
	packet-ddtp.h  \
	packet-diameter-defs.h \
	packet-dns.h   \
	packet-dvmrp.h \
	packet-esis.h  \
	packet-eth.h   \
	packet-fddi.h  \
	packet-frame.h  \
	packet-giop.h  \
	packet-gnutella.h \
	packet-hclnfsd.h  \
	packet-http.h  \
	packet-ieee80211.h \
	packet-ieee8023.h \
	packet-igmp.h  \
	packet-ip.h    \
	packet-ipsec.h \
	packet-ipv6.h  \
	packet-ipx.h   \
	packet-isis.h  \
	packet-isis-clv.h \
	packet-isis-hello.h \
	packet-isis-lsp.h \
	packet-isis-snp.h \
	packet-isl.h   \
	packet-klm.h   \
	packet-ldap.h  \
	packet-llc.h   \
	packet-mount.h \
	packet-mrdisc.h \
	packet-msnip.h \
	packet-mtp3.h  \
	packet-ncp-int.h \
	packet-netbios.h \
	packet-nfs.h   \
	packet-nisplus.h \
	packet-nlm.h   \
	packet-ntp.h  \
	packet-null.h  \
	packet-osi.h   \
	packet-osi-options.h \
	packet-pcnfsd.h \
	packet-pflog.h \
	packet-pim.h   \
	packet-portmap.h   \
	packet-ppp.h   \
	packet-prism.h \
	packet-q931.h  \
	packet-raw.h   \
	packet-ripng.h \
	packet-rmi.h   \
	packet-rpc.h   \
	packet-rquota.h \
	packet-rsvp.h  \
	packet-rtcp.h  \
	packet-rtp.h   \
	packet-rwall.h  \
	packet-rx.h  \
	packet-scsi.h  \
	packet-sll.h   \
	packet-smb-browse.h \
	packet-smb-common.h \
	packet-smb-logon.h \
	packet-smb-mailslot.h \
	packet-smb-pipe.h \
	packet-sna.h   \
	packet-snmp.h	\
	packet-spray.h \
	packet-stat.h   \
	packet-stat-notify.h \
	packet-tcp.h   \
	packet-tns.h \
	packet-tpkt.h  \
	packet-tr.h    \
	packet-udp.h   \
	packet-vines.h \
	packet-vlan.h \
	packet-wccp.h \
	packet-wap.h \
	packet-wtls.h \
	packet-wtp.h \
	packet-wsp.h \
	packet-x11-keysym.h	\
	packet-yhoo.h  \
	packet-ypbind.h \
	packet-yppasswd.h \
	packet-ypserv.h \
	packet-ypxfr.h 


ETHEREAL_COMMON_SRC = \
	aftypes.h      \
	alignment.h    \
	afn.c          \
	afn.h          \
	asn1.c         \
	asn1.h         \
	bridged_pids.h \
	column.c       \
	column.h       \
	color.h        \
	conditions.c   \
	conditions.h   \
	capture_stop_conditions.h   \
	capture_stop_conditions.c   \
	etypes.h       \
	follow.c       \
	follow.h       \
	format-oid.h   \
	greproto.h     \
	in_cksum.c     \
	in_cksum.h     \
	ipproto.c      \
	ipproto.h      \
	llcsaps.h      \
	nlpid.h        \
	oui.h          \
	pcap-util.c    \
	pcap-util.h    \
	ppptypes.h     \
	prefs.c        \
	prefs.h        \
	prefs-int.h    \
	print.c        \
	print.h        \
	ps.c           \
	ps.h           \
	ptvcursor.c	\
	ptvcursor.h	\
	reassemble.c   \
	reassemble.h   \
	register.h     \
	ringbuffer.c   \
	ringbuffer.h   \
	rpc_defrag.h   \
	smb.h          \
	util.c         \
	util.h         \
	x11-declarations.h \
	x11-register-info.h \
	x264_prt_id.h  \
	xdlc.c         \
	xdlc.h         \
	xmlstub.c      \
	xmlstub.h


BUILT_SOURCES = \
	x11-declarations.h \
	x11-register-info.h


ethereal_SOURCES = \
	$(DISSECTOR_SRC) \
	$(ETHEREAL_COMMON_SRC) \
	register.c     \
	capture.c      \
	capture.h      \
	file.c         \
	file.h         \
	filters.c      \
	filters.h      \
	globals.h      \
	menu.h         \
	progress_dlg.h \
	proto_hier_stats.h	\
	proto_hier_stats.c	\
	simple_dialog.h \
	statusbar.h    \
	summary.c      \
	summary.h      \
	ui_util.h


ethereal_static_SOURCES = \
	$(DISSECTOR_SRC) \
	$(ETHEREAL_COMMON_SRC) \
	register-static.c     \
	capture.c      \
	capture.h      \
	file.c         \
	file.h         \
	filters.c      \
	filters.h      \
	globals.h      \
	menu.h         \
	progress_dlg.h \
	proto_hier_stats.h	\
	proto_hier_stats.c	\
	simple_dialog.h \
	statusbar.h    \
	summary.c      \
	summary.h      \
	ui_util.h	


EXTRA_ethereal_SOURCES = \
	snprintf.c	\
	snprintf.h	\
	snprintf-imp.h	\
	strerror.c	\
	strerror.h	\
	strcasecmp.c	\
	strncasecmp.c	\
	mkstemp.c	\
	mkstemp.h	\
	strptime.c	\
	strptime.h


# Optional objects that I know how to build. These will be
# linked into the ethereal executable.
# They will also be linked into the tethereal executable; if this
# list ever grows to include something that can't be linked with
# tethereal, or if tethereal needs something that ethereal doesn't,
# we should probably split this into stuff needed both
# by ethereal and tethereal and stuff needed only by one or the
# other.
ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
	@STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@


# Additional libs that I know how to build. These will be
# linked into the ethereal executable.
ethereal_additional_libs = \
	wiretap/libwiretap.a	\
	gtk/libui.a		\
	epan/libethereal.a	\
	epan/ftypes/libftypes.a \
	epan/dfilter/libdfilter.a


# This is the automake dependency variable for the executable
ethereal_DEPENDENCIES = \
	$(ethereal_optional_objects)	\
	$(ethereal_additional_libs)	\
	$(plugin_libs)


ethereal_static_DEPENDENCIES = \
	$(ethereal_optional_objects)	\
	$(ethereal_additional_libs)


# This automake variable adds to the link-line for the executable.
#
# Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
# they are included in @GTK_LIBS@, and doesn't have to be linked with
# @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
# @GTK_LIBS@ (as those are also needed for X applications, and GTK+
# applications are X applications).
ethereal_LDADD = \
	$(ethereal_optional_objects)	\
	$(ethereal_additional_libs)	\
	@SNMP_LIBS@ @SSL_LIBS@ 		\
	$(plugin_ldadd)			\
	@PCAP_LIBS@ @GTK_LIBS@


ethereal_static_LDADD = \
	"-all-static" 			\
	$(plugin_static_ldadd)		\
	$(ethereal_optional_objects)	\
	$(ethereal_additional_libs)	\
	@SNMP_LIBS@ @SSL_LIBS@		\
	@PCAP_LIBS@ @GTK_LIBS@		


ethereal_LDFLAGS = -export-dynamic
ethereal_static_LDFLAGS = -Wl,-static

tethereal_SOURCES = \
	$(DISSECTOR_SRC) \
	$(ETHEREAL_COMMON_SRC) \
	register.c     \
	tethereal.c	\
	com_stats.c  \
	traffic_stats.c \
	flow_monitor.c


tethereal_static_SOURCES = \
	$(DISSECTOR_SRC) \
	$(ETHEREAL_COMMON_SRC) \
	register-static.c     \
	tethereal.c \
	com_stats.c  \
	traffic_stats.c \
	flow_monitor.c


# Additional libs that I know how to build. These will be
# linked into the tethereal executable.
tethereal_additional_libs = \
	wiretap/libwiretap.a		\
	epan/libethereal.a		\
	epan/ftypes/libftypes.a		\
	epan/dfilter/libdfilter.a


# This is the automake dependency variable for the executable
tethereal_DEPENDENCIES = \
	$(ethereal_optional_objects)	\
	$(tethereal_additional_libs)	\
	$(plugin_libs)


tethereal_static_DEPENDENCIES = \
	$(ethereal_optional_objects)	\
	$(tethereal_additional_libs)	


# This automake variable adds to the link-line for the executable
tethereal_LDADD = wiretap/libwiretap.a	\
	$(ethereal_optional_objects)	\
	$(tethereal_additional_libs)	\
	@SNMP_LIBS@ @SSL_LIBS@		\
	$(plugin_ldadd)			\
	@GLIB_LIBS@ -lm \
	@PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@


tethereal_static_LDADD = \
	"-all-static"		\
	$(plugin_static_ldadd)	\
	wiretap/libwiretap.a	\
	$(ethereal_optional_objects)	\
	$(tethereal_additional_libs)	\
	@SNMP_LIBS@ @SSL_LIBS@		\
	@GLIB_LIBS@ -lm \
	@PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@


tethereal_LDFLAGS = -export-dynamic
tethereal_static_LDFLAGS = -Wl,-static

# Optional objects that I know how to build, and that are needed by
# text2pcap.
text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@

text2pcap_SOURCES = text2pcap.c text2pcap-scanner.l
text2pcap_DEPENDENCIES = text2pcap.h

# This automake variable adds to the link-line for the executable
text2pcap_LDADD = $(text2pcap_optional_objects)

mergecap_SOURCES = mergecap.c
mergecap_DEPENDENCIES = wiretap/libwiretap.a

editcap_SOURCES = editcap.c

# This is the automake dependency variable for the executable
editcap_DEPENDENCIES = wiretap/libwiretap.a

# This automake variable adds to the link-line for the executable
editcap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
mergecap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@

#
# Build shell scripts by doing variable substitution.
# Taken from autoconf 2.13.
#
editsh = sed -e 's,@''SHELL''@,$(SHELL),g'

SUFFIXES = .sh

dftest_SOURCES = \
	$(DISSECTOR_SRC) \
	$(ETHEREAL_COMMON_SRC) \
	register.c     \
	dftest.c


dftest_additional_libs = \
	wiretap/libwiretap.a		\
	epan/libethereal.a		\
	epan/ftypes/libftypes.a		\
	epan/dfilter/libdfilter.a


dftest_DEPENDENCIES = \
	$(ethereal_optional_objects)	\
	$(dftest_additional_libs)	\
	$(plugin_libs)


# This automake variable adds to the link-line for the executable
dftest_LDADD = \
	$(ethereal_optional_objects)	\
	$(dftest_additional_libs)	\
	@SNMP_LIBS@ @SSL_LIBS@		\
	$(plugin_ldadd)			\
	@GLIB_LIBS@ -lm \
	@PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@


dftest_LDFLAGS = -export-dynamic

CLEANFILES = \
	idl2eth


DISTCLEANFILES = \
	register.c	\
	register-static.c \
	rdps		\
	ps.c		\
	*~


EXTRA_DIST = \
	Ethereal.desktop	\
	aclocal-flags		\
	capture-wpcap.c		\
	capture-wpcap.h		\
	cleanbld.bat		\
	config.h.win32		\
	config.nmake		\
	debian/README.debian	\
	debian/changelog	\
	debian/control		\
	debian/copyright	\
	debian/dirs		\
	debian/docs		\
	debian/menu		\
	debian/postinst		\
	debian/prerm		\
	debian/rules		\
	doc/Makefile.am         \
	doc/Makefile.nmake      \
	doc/README.design       \
	doc/README.developer    \
	doc/README.idl2eth      \
	doc/README.plugins      \
	doc/README.regression   \
	doc/README.tvbuff	\
	doc/dfilter2pod.pl	\
	doc/editcap.pod		\
	doc/ethereal.pod.template \
	doc/idl2eth.pod		\
	doc/mergecap.pod	\
	doc/randpkt.txt		\
	doc/tethereal.pod.template \
	doc/text2pcap.pod	\
	editcap.c		\
	ethereal_be.py		\
	ethereal_gen.py		\
	mergecap.c		\
	text2pcap.c             \
	text2pcap.h             \
	text2pcap-scanner.l     \
	getopt.c		\
	getopt.h		\
	idl2eth.sh		\
	image/Makefile.nmake	\
	image/README.image	\
	image/clist_ascend.xpm	\
	image/clist_descend.xpm	\
	image/dn_arrow.xpm	\
	image/editcap.rc.in	\
	image/eexcl3d64.xpm	\
	image/eicon3d16.xpm	\
	image/eicon3d32.xpm	\
	image/eicon3d48.xpm	\
	image/eicon3d64.xpm	\
	image/elogo3d48x48.png	\
	image/ethereal.ico	\
	image/ethereal.rc.in	\
	image/ethereal48x48-trans.png  \
	image/ethereal48x48.png \
	image/hi16-app-ethereal.png	\
	image/hi32-app-ethereal.png	\
	image/hi48-app-ethereal.png	\
	image/icon-ethereal.xpm	\
	image/icon-excl.xpm	\
	image/lo16-app-ethereal.png	\
	image/lo32-app-ethereal.png	\
	image/lo48-app-ethereal.png	\
	image/mergecap.rc.in	\
	image/nsis-checked.bmp	\
	image/nsis-unchecked.bmp	\
	image/tethereal.rc.in	\
	image/text2pcap.rc.in	\
	image/up_arrow.xpm	\
	INSTALL.configure       \
	Makefile.nmake		\
	make-manuf		\
	make-reg-dotc		\
	make-reg-dotc.py	\
	manuf                   \
	manuf.tmpl		\
	ncp2222.py              \
	packet-ncp2222.inc	\
	print.ps                \
	process-x11-fields.pl	\
	README.aix		\
	README.bsd		\
	README.hpux		\
	README.irix		\
	README.linux		\
	README.tru64		\
	README.vmware		\
	README.win32		\
	FAQ			\
	randpkt.c		\
	rdps.c			\
	TODO			\
	dictionary.dtd		\
	dictionary.xml		\
	mobileipv4.xml		\
	nasreq.xml		\
	sunping.xml		\
	x11-fields

@HAVE_PLUGINS_TRUE@SUBDIRS = @HAVE_PLUGINS_TRUE@tools wiretap doc epan plugins packaging @ethereal_SUBDIRS@
@HAVE_PLUGINS_FALSE@SUBDIRS = @HAVE_PLUGINS_FALSE@tools wiretap doc epan packaging @ethereal_SUBDIRS@

# We load top_stagedir with an explicit path so that libtool doesn't freak.
top_stagedir = `cd $(top_srcdir) && pwd`/packaging/svr4.stage
stagedir = $(top_stagedir)/$(PACKAGE).stage
host_cpu = @host_cpu@
host_os = @host_os@

rpm_topdir = `cd $(top_srcdir) && pwd`/packaging/rpm
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES = 
bin_PROGRAMS =  @ethereal_bin@ @editcap_bin@ @mergecap_bin@ \
@tethereal_bin@ @dftest_bin@ @randpkt_bin@ @text2pcap_bin@
PROGRAMS =  $(bin_PROGRAMS)


DEFS = @DEFS@ -I. -I$(srcdir) -I.
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
ethereal_OBJECTS =  packet-aarp.$(OBJEXT) packet-afp.$(OBJEXT) \
packet-afs.$(OBJEXT) packet-aim.$(OBJEXT) packet-ajp13.$(OBJEXT) \
packet-aodv.$(OBJEXT) packet-aodv6.$(OBJEXT) packet-arp.$(OBJEXT) \
packet-asap.$(OBJEXT) packet-ascend.$(OBJEXT) packet-atalk.$(OBJEXT) \
packet-atm.$(OBJEXT) packet-auto_rp.$(OBJEXT) packet-bacapp.$(OBJEXT) \
packet-bacnet.$(OBJEXT) packet-beep.$(OBJEXT) packet-bgp.$(OBJEXT) \
packet-bootp.$(OBJEXT) packet-bootparams.$(OBJEXT) \
packet-bpdu.$(OBJEXT) packet-bvlc.$(OBJEXT) packet-cdp.$(OBJEXT) \
packet-cgmp.$(OBJEXT) packet-chdlc.$(OBJEXT) packet-clip.$(OBJEXT) \
packet-clnp.$(OBJEXT) packet-cops.$(OBJEXT) packet-cosine.$(OBJEXT) \
packet-cpha.$(OBJEXT) packet-cups.$(OBJEXT) packet-data.$(OBJEXT) \
packet-dccp.$(OBJEXT) packet-dcerpc.$(OBJEXT) \
packet-dcerpc-browser.$(OBJEXT) packet-dcerpc-conv.$(OBJEXT) \
packet-dcerpc-dfs.$(OBJEXT) packet-dcerpc-epm.$(OBJEXT) \
packet-dcerpc-lsa.$(OBJEXT) packet-dcerpc-mapi.$(OBJEXT) \
packet-dcerpc-mgmt.$(OBJEXT) packet-dcerpc-ndr.$(OBJEXT) \
packet-dcerpc-netlogon.$(OBJEXT) packet-dcerpc-nspi.$(OBJEXT) \
packet-dcerpc-nt.$(OBJEXT) packet-dcerpc-oxid.$(OBJEXT) \
packet-dcerpc-reg.$(OBJEXT) packet-dcerpc-remact.$(OBJEXT) \
packet-dcerpc-samr.$(OBJEXT) packet-dcerpc-spoolss.$(OBJEXT) \
packet-dcerpc-srvsvc.$(OBJEXT) packet-dcerpc-tapi.$(OBJEXT) \
packet-dcerpc-wkssvc.$(OBJEXT) packet-ddtp.$(OBJEXT) \
packet-dec-bpdu.$(OBJEXT) packet-dhcpv6.$(OBJEXT) \
packet-diameter.$(OBJEXT) packet-dlsw.$(OBJEXT) packet-dns.$(OBJEXT) \
packet-dsi.$(OBJEXT) packet-dvmrp.$(OBJEXT) packet-eap.$(OBJEXT) \
packet-eapol.$(OBJEXT) packet-eigrp.$(OBJEXT) packet-esis.$(OBJEXT) \
packet-eth.$(OBJEXT) packet-ethertype.$(OBJEXT) packet-fddi.$(OBJEXT) \
packet-fr.$(OBJEXT) packet-frame.$(OBJEXT) packet-ftp.$(OBJEXT) \
packet-fw1.$(OBJEXT) packet-giop.$(OBJEXT) packet-gmrp.$(OBJEXT) \
packet-gnutella.$(OBJEXT) packet-gre.$(OBJEXT) packet-gtp.$(OBJEXT) \
packet-gvrp.$(OBJEXT) packet-h1.$(OBJEXT) packet-h261.$(OBJEXT) \
packet-hclnfsd.$(OBJEXT) packet-hsrp.$(OBJEXT) packet-http.$(OBJEXT) \
packet-iapp.$(OBJEXT) packet-icap.$(OBJEXT) packet-icmpv6.$(OBJEXT) \
packet-icp.$(OBJEXT) packet-icq.$(OBJEXT) packet-ieee80211.$(OBJEXT) \
packet-ieee8023.$(OBJEXT) packet-igmp.$(OBJEXT) packet-igrp.$(OBJEXT) \
packet-imap.$(OBJEXT) packet-ip.$(OBJEXT) packet-ipp.$(OBJEXT) \
packet-ipsec.$(OBJEXT) packet-ipv6.$(OBJEXT) packet-ipx.$(OBJEXT) \
packet-irc.$(OBJEXT) packet-isakmp.$(OBJEXT) packet-iscsi.$(OBJEXT) \
packet-isis.$(OBJEXT) packet-isis-clv.$(OBJEXT) \
packet-isis-hello.$(OBJEXT) packet-isis-lsp.$(OBJEXT) \
packet-isis-snp.$(OBJEXT) packet-isl.$(OBJEXT) packet-isup.$(OBJEXT) \
packet-iua.$(OBJEXT) packet-kerberos.$(OBJEXT) packet-klm.$(OBJEXT) \
packet-l2tp.$(OBJEXT) packet-lapb.$(OBJEXT) packet-lapbether.$(OBJEXT) \
packet-lapd.$(OBJEXT) packet-ldap.$(OBJEXT) packet-ldp.$(OBJEXT) \
packet-llc.$(OBJEXT) packet-lmi.$(OBJEXT) packet-lmp.$(OBJEXT) \
packet-lpd.$(OBJEXT) packet-m2pa.$(OBJEXT) packet-m2tp.$(OBJEXT) \
packet-m2ua.$(OBJEXT) packet-m3ua.$(OBJEXT) packet-mbtcp.$(OBJEXT) \
packet-mip.$(OBJEXT) packet-mmse.$(OBJEXT) packet-mount.$(OBJEXT) \
packet-mpeg1.$(OBJEXT) packet-mpls.$(OBJEXT) packet-mrdisc.$(OBJEXT) \
packet-msdp.$(OBJEXT) packet-msnip.$(OBJEXT) packet-msproxy.$(OBJEXT) \
packet-mtp2.$(OBJEXT) packet-mtp3.$(OBJEXT) packet-nbipx.$(OBJEXT) \
packet-nbns.$(OBJEXT) packet-ncp.$(OBJEXT) packet-ncp2222.$(OBJEXT) \
packet-ndmp.$(OBJEXT) packet-netbios.$(OBJEXT) packet-nfs.$(OBJEXT) \
packet-nfsacl.$(OBJEXT) packet-nfsauth.$(OBJEXT) \
packet-nisplus.$(OBJEXT) packet-nlm.$(OBJEXT) packet-nntp.$(OBJEXT) \
packet-ntlmssp.$(OBJEXT) packet-ntp.$(OBJEXT) packet-null.$(OBJEXT) \
packet-osi.$(OBJEXT) packet-osi-options.$(OBJEXT) packet-ospf.$(OBJEXT) \
packet-pcnfsd.$(OBJEXT) packet-pflog.$(OBJEXT) packet-pgm.$(OBJEXT) \
packet-pim.$(OBJEXT) packet-pop.$(OBJEXT) packet-portmap.$(OBJEXT) \
packet-ppp.$(OBJEXT) packet-pppoe.$(OBJEXT) packet-pptp.$(OBJEXT) \
packet-prism.$(OBJEXT) packet-q2931.$(OBJEXT) packet-q931.$(OBJEXT) \
packet-qllc.$(OBJEXT) packet-quake.$(OBJEXT) \
packet-quakeworld.$(OBJEXT) packet-quake2.$(OBJEXT) \
packet-quake3.$(OBJEXT) packet-radius.$(OBJEXT) packet-ranap.$(OBJEXT) \
packet-raw.$(OBJEXT) packet-rip.$(OBJEXT) packet-ripng.$(OBJEXT) \
packet-rlogin.$(OBJEXT) packet-rmi.$(OBJEXT) packet-rpc.$(OBJEXT) \
packet-rquota.$(OBJEXT) packet-rsh.$(OBJEXT) packet-rstat.$(OBJEXT) \
packet-rsvp.$(OBJEXT) packet-rtcp.$(OBJEXT) packet-rtp.$(OBJEXT) \
packet-rtsp.$(OBJEXT) packet-rwall.$(OBJEXT) packet-rx.$(OBJEXT) \
packet-sadmind.$(OBJEXT) packet-sap.$(OBJEXT) packet-sccp.$(OBJEXT) \
packet-scsi.$(OBJEXT) packet-sctp.$(OBJEXT) packet-sdp.$(OBJEXT) \
packet-sip.$(OBJEXT) packet-skinny.$(OBJEXT) packet-slimp3.$(OBJEXT) \
packet-sll.$(OBJEXT) packet-slowprotocols.$(OBJEXT) \
packet-smb.$(OBJEXT) packet-smb-browse.$(OBJEXT) \
packet-smb-common.$(OBJEXT) packet-smb-logon.$(OBJEXT) \
packet-smb-mailslot.$(OBJEXT) packet-smb-pipe.$(OBJEXT) \
packet-smpp.$(OBJEXT) packet-smtp.$(OBJEXT) packet-sna.$(OBJEXT) \
packet-snaeth.$(OBJEXT) packet-snmp.$(OBJEXT) packet-socks.$(OBJEXT) \
packet-spray.$(OBJEXT) packet-srvloc.$(OBJEXT) packet-sscop.$(OBJEXT) \
packet-ssl.$(OBJEXT) packet-stat.$(OBJEXT) packet-stat-notify.$(OBJEXT) \
packet-sua.$(OBJEXT) packet-syslog.$(OBJEXT) packet-tacacs.$(OBJEXT) \
packet-tcp.$(OBJEXT) packet-tds.$(OBJEXT) packet-telnet.$(OBJEXT) \
packet-tftp.$(OBJEXT) packet-time.$(OBJEXT) packet-tns.$(OBJEXT) \
packet-tpkt.$(OBJEXT) packet-tr.$(OBJEXT) packet-trmac.$(OBJEXT) \
packet-tsp.$(OBJEXT) packet-ucp.$(OBJEXT) packet-udp.$(OBJEXT) \
packet-v120.$(OBJEXT) packet-vines.$(OBJEXT) packet-vj.$(OBJEXT) \
packet-vlan.$(OBJEXT) packet-vrrp.$(OBJEXT) packet-vtp.$(OBJEXT) \
packet-wccp.$(OBJEXT) packet-wcp.$(OBJEXT) packet-who.$(OBJEXT) \
packet-wap.$(OBJEXT) packet-wtls.$(OBJEXT) packet-wsp.$(OBJEXT) \
packet-wtp.$(OBJEXT) packet-x11.$(OBJEXT) packet-x25.$(OBJEXT) \
packet-xdmcp.$(OBJEXT) packet-xot.$(OBJEXT) packet-xyplex.$(OBJEXT) \
packet-yhoo.$(OBJEXT) packet-ypbind.$(OBJEXT) packet-yppasswd.$(OBJEXT) \
packet-ypserv.$(OBJEXT) packet-ypxfr.$(OBJEXT) packet-zebra.$(OBJEXT) \
afn.$(OBJEXT) asn1.$(OBJEXT) column.$(OBJEXT) conditions.$(OBJEXT) \
capture_stop_conditions.$(OBJEXT) follow.$(OBJEXT) in_cksum.$(OBJEXT) \
ipproto.$(OBJEXT) pcap-util.$(OBJEXT) prefs.$(OBJEXT) print.$(OBJEXT) \
ps.$(OBJEXT) ptvcursor.$(OBJEXT) reassemble.$(OBJEXT) \
ringbuffer.$(OBJEXT) util.$(OBJEXT) xdlc.$(OBJEXT) xmlstub.$(OBJEXT) \
register.$(OBJEXT) capture.$(OBJEXT) file.$(OBJEXT) filters.$(OBJEXT) \
proto_hier_stats.$(OBJEXT) summary.$(OBJEXT)
ethereal_static_OBJECTS =  packet-aarp.$(OBJEXT) packet-afp.$(OBJEXT) \
packet-afs.$(OBJEXT) packet-aim.$(OBJEXT) packet-ajp13.$(OBJEXT) \
packet-aodv.$(OBJEXT) packet-aodv6.$(OBJEXT) packet-arp.$(OBJEXT) \
packet-asap.$(OBJEXT) packet-ascend.$(OBJEXT) packet-atalk.$(OBJEXT) \
packet-atm.$(OBJEXT) packet-auto_rp.$(OBJEXT) packet-bacapp.$(OBJEXT) \
packet-bacnet.$(OBJEXT) packet-beep.$(OBJEXT) packet-bgp.$(OBJEXT) \
packet-bootp.$(OBJEXT) packet-bootparams.$(OBJEXT) \
packet-bpdu.$(OBJEXT) packet-bvlc.$(OBJEXT) packet-cdp.$(OBJEXT) \
packet-cgmp.$(OBJEXT) packet-chdlc.$(OBJEXT) packet-clip.$(OBJEXT) \
packet-clnp.$(OBJEXT) packet-cops.$(OBJEXT) packet-cosine.$(OBJEXT) \
packet-cpha.$(OBJEXT) packet-cups.$(OBJEXT) packet-data.$(OBJEXT) \
packet-dccp.$(OBJEXT) packet-dcerpc.$(OBJEXT) \
packet-dcerpc-browser.$(OBJEXT) packet-dcerpc-conv.$(OBJEXT) \
packet-dcerpc-dfs.$(OBJEXT) packet-dcerpc-epm.$(OBJEXT) \
packet-dcerpc-lsa.$(OBJEXT) packet-dcerpc-mapi.$(OBJEXT) \
packet-dcerpc-mgmt.$(OBJEXT) packet-dcerpc-ndr.$(OBJEXT) \
packet-dcerpc-netlogon.$(OBJEXT) packet-dcerpc-nspi.$(OBJEXT) \
packet-dcerpc-nt.$(OBJEXT) packet-dcerpc-oxid.$(OBJEXT) \
packet-dcerpc-reg.$(OBJEXT) packet-dcerpc-remact.$(OBJEXT) \
packet-dcerpc-samr.$(OBJEXT) packet-dcerpc-spoolss.$(OBJEXT) \
packet-dcerpc-srvsvc.$(OBJEXT) packet-dcerpc-tapi.$(OBJEXT) \
packet-dcerpc-wkssvc.$(OBJEXT) packet-ddtp.$(OBJEXT) \
packet-dec-bpdu.$(OBJEXT) packet-dhcpv6.$(OBJEXT) \
packet-diameter.$(OBJEXT) packet-dlsw.$(OBJEXT) packet-dns.$(OBJEXT) \
packet-dsi.$(OBJEXT) packet-dvmrp.$(OBJEXT) packet-eap.$(OBJEXT) \
packet-eapol.$(OBJEXT) packet-eigrp.$(OBJEXT) packet-esis.$(OBJEXT) \
packet-eth.$(OBJEXT) packet-ethertype.$(OBJEXT) packet-fddi.$(OBJEXT) \
packet-fr.$(OBJEXT) packet-frame.$(OBJEXT) packet-ftp.$(OBJEXT) \
packet-fw1.$(OBJEXT) packet-giop.$(OBJEXT) packet-gmrp.$(OBJEXT) \
packet-gnutella.$(OBJEXT) packet-gre.$(OBJEXT) packet-gtp.$(OBJEXT) \
packet-gvrp.$(OBJEXT) packet-h1.$(OBJEXT) packet-h261.$(OBJEXT) \
packet-hclnfsd.$(OBJEXT) packet-hsrp.$(OBJEXT) packet-http.$(OBJEXT) \
packet-iapp.$(OBJEXT) packet-icap.$(OBJEXT) packet-icmpv6.$(OBJEXT) \
packet-icp.$(OBJEXT) packet-icq.$(OBJEXT) packet-ieee80211.$(OBJEXT) \
packet-ieee8023.$(OBJEXT) packet-igmp.$(OBJEXT) packet-igrp.$(OBJEXT) \
packet-imap.$(OBJEXT) packet-ip.$(OBJEXT) packet-ipp.$(OBJEXT) \
packet-ipsec.$(OBJEXT) packet-ipv6.$(OBJEXT) packet-ipx.$(OBJEXT) \
packet-irc.$(OBJEXT) packet-isakmp.$(OBJEXT) packet-iscsi.$(OBJEXT) \
packet-isis.$(OBJEXT) packet-isis-clv.$(OBJEXT) \
packet-isis-hello.$(OBJEXT) packet-isis-lsp.$(OBJEXT) \
packet-isis-snp.$(OBJEXT) packet-isl.$(OBJEXT) packet-isup.$(OBJEXT) \
packet-iua.$(OBJEXT) packet-kerberos.$(OBJEXT) packet-klm.$(OBJEXT) \
packet-l2tp.$(OBJEXT) packet-lapb.$(OBJEXT) packet-lapbether.$(OBJEXT) \
packet-lapd.$(OBJEXT) packet-ldap.$(OBJEXT) packet-ldp.$(OBJEXT) \
packet-llc.$(OBJEXT) packet-lmi.$(OBJEXT) packet-lmp.$(OBJEXT) \
packet-lpd.$(OBJEXT) packet-m2pa.$(OBJEXT) packet-m2tp.$(OBJEXT) \
packet-m2ua.$(OBJEXT) packet-m3ua.$(OBJEXT) packet-mbtcp.$(OBJEXT) \
packet-mip.$(OBJEXT) packet-mmse.$(OBJEXT) packet-mount.$(OBJEXT) \
packet-mpeg1.$(OBJEXT) packet-mpls.$(OBJEXT) packet-mrdisc.$(OBJEXT) \
packet-msdp.$(OBJEXT) packet-msnip.$(OBJEXT) packet-msproxy.$(OBJEXT) \
packet-mtp2.$(OBJEXT) packet-mtp3.$(OBJEXT) packet-nbipx.$(OBJEXT) \
packet-nbns.$(OBJEXT) packet-ncp.$(OBJEXT) packet-ncp2222.$(OBJEXT) \
packet-ndmp.$(OBJEXT) packet-netbios.$(OBJEXT) packet-nfs.$(OBJEXT) \
packet-nfsacl.$(OBJEXT) packet-nfsauth.$(OBJEXT) \
packet-nisplus.$(OBJEXT) packet-nlm.$(OBJEXT) packet-nntp.$(OBJEXT) \
packet-ntlmssp.$(OBJEXT) packet-ntp.$(OBJEXT) packet-null.$(OBJEXT) \
packet-osi.$(OBJEXT) packet-osi-options.$(OBJEXT) packet-ospf.$(OBJEXT) \
packet-pcnfsd.$(OBJEXT) packet-pflog.$(OBJEXT) packet-pgm.$(OBJEXT) \
packet-pim.$(OBJEXT) packet-pop.$(OBJEXT) packet-portmap.$(OBJEXT) \
packet-ppp.$(OBJEXT) packet-pppoe.$(OBJEXT) packet-pptp.$(OBJEXT) \
packet-prism.$(OBJEXT) packet-q2931.$(OBJEXT) packet-q931.$(OBJEXT) \
packet-qllc.$(OBJEXT) packet-quake.$(OBJEXT) \
packet-quakeworld.$(OBJEXT) packet-quake2.$(OBJEXT) \
packet-quake3.$(OBJEXT) packet-radius.$(OBJEXT) packet-ranap.$(OBJEXT) \
packet-raw.$(OBJEXT) packet-rip.$(OBJEXT) packet-ripng.$(OBJEXT) \
packet-rlogin.$(OBJEXT) packet-rmi.$(OBJEXT) packet-rpc.$(OBJEXT) \
packet-rquota.$(OBJEXT) packet-rsh.$(OBJEXT) packet-rstat.$(OBJEXT) \
packet-rsvp.$(OBJEXT) packet-rtcp.$(OBJEXT) packet-rtp.$(OBJEXT) \
packet-rtsp.$(OBJEXT) packet-rwall.$(OBJEXT) packet-rx.$(OBJEXT) \
packet-sadmind.$(OBJEXT) packet-sap.$(OBJEXT) packet-sccp.$(OBJEXT) \
packet-scsi.$(OBJEXT) packet-sctp.$(OBJEXT) packet-sdp.$(OBJEXT) \
packet-sip.$(OBJEXT) packet-skinny.$(OBJEXT) packet-slimp3.$(OBJEXT) \
packet-sll.$(OBJEXT) packet-slowprotocols.$(OBJEXT) \
packet-smb.$(OBJEXT) packet-smb-browse.$(OBJEXT) \
packet-smb-common.$(OBJEXT) packet-smb-logon.$(OBJEXT) \
packet-smb-mailslot.$(OBJEXT) packet-smb-pipe.$(OBJEXT) \
packet-smpp.$(OBJEXT) packet-smtp.$(OBJEXT) packet-sna.$(OBJEXT) \
packet-snaeth.$(OBJEXT) packet-snmp.$(OBJEXT) packet-socks.$(OBJEXT) \
packet-spray.$(OBJEXT) packet-srvloc.$(OBJEXT) packet-sscop.$(OBJEXT) \
packet-ssl.$(OBJEXT) packet-stat.$(OBJEXT) packet-stat-notify.$(OBJEXT) \
packet-sua.$(OBJEXT) packet-syslog.$(OBJEXT) packet-tacacs.$(OBJEXT) \
packet-tcp.$(OBJEXT) packet-tds.$(OBJEXT) packet-telnet.$(OBJEXT) \
packet-tftp.$(OBJEXT) packet-time.$(OBJEXT) packet-tns.$(OBJEXT) \
packet-tpkt.$(OBJEXT) packet-tr.$(OBJEXT) packet-trmac.$(OBJEXT) \
packet-tsp.$(OBJEXT) packet-ucp.$(OBJEXT) packet-udp.$(OBJEXT) \
packet-v120.$(OBJEXT) packet-vines.$(OBJEXT) packet-vj.$(OBJEXT) \
packet-vlan.$(OBJEXT) packet-vrrp.$(OBJEXT) packet-vtp.$(OBJEXT) \
packet-wccp.$(OBJEXT) packet-wcp.$(OBJEXT) packet-who.$(OBJEXT) \
packet-wap.$(OBJEXT) packet-wtls.$(OBJEXT) packet-wsp.$(OBJEXT) \
packet-wtp.$(OBJEXT) packet-x11.$(OBJEXT) packet-x25.$(OBJEXT) \
packet-xdmcp.$(OBJEXT) packet-xot.$(OBJEXT) packet-xyplex.$(OBJEXT) \
packet-yhoo.$(OBJEXT) packet-ypbind.$(OBJEXT) packet-yppasswd.$(OBJEXT) \
packet-ypserv.$(OBJEXT) packet-ypxfr.$(OBJEXT) packet-zebra.$(OBJEXT) \
afn.$(OBJEXT) asn1.$(OBJEXT) column.$(OBJEXT) conditions.$(OBJEXT) \
capture_stop_conditions.$(OBJEXT) follow.$(OBJEXT) in_cksum.$(OBJEXT) \
ipproto.$(OBJEXT) pcap-util.$(OBJEXT) prefs.$(OBJEXT) print.$(OBJEXT) \
ps.$(OBJEXT) ptvcursor.$(OBJEXT) reassemble.$(OBJEXT) \
ringbuffer.$(OBJEXT) util.$(OBJEXT) xdlc.$(OBJEXT) xmlstub.$(OBJEXT) \
register-static.$(OBJEXT) capture.$(OBJEXT) file.$(OBJEXT) \
filters.$(OBJEXT) proto_hier_stats.$(OBJEXT) summary.$(OBJEXT)
tethereal_OBJECTS =  packet-aarp.$(OBJEXT) packet-afp.$(OBJEXT) \
packet-afs.$(OBJEXT) packet-aim.$(OBJEXT) packet-ajp13.$(OBJEXT) \
packet-aodv.$(OBJEXT) packet-aodv6.$(OBJEXT) packet-arp.$(OBJEXT) \
packet-asap.$(OBJEXT) packet-ascend.$(OBJEXT) packet-atalk.$(OBJEXT) \
packet-atm.$(OBJEXT) packet-auto_rp.$(OBJEXT) packet-bacapp.$(OBJEXT) \
packet-bacnet.$(OBJEXT) packet-beep.$(OBJEXT) packet-bgp.$(OBJEXT) \
packet-bootp.$(OBJEXT) packet-bootparams.$(OBJEXT) \
packet-bpdu.$(OBJEXT) packet-bvlc.$(OBJEXT) packet-cdp.$(OBJEXT) \
packet-cgmp.$(OBJEXT) packet-chdlc.$(OBJEXT) packet-clip.$(OBJEXT) \
packet-clnp.$(OBJEXT) packet-cops.$(OBJEXT) packet-cosine.$(OBJEXT) \
packet-cpha.$(OBJEXT) packet-cups.$(OBJEXT) packet-data.$(OBJEXT) \
packet-dccp.$(OBJEXT) packet-dcerpc.$(OBJEXT) \
packet-dcerpc-browser.$(OBJEXT) packet-dcerpc-conv.$(OBJEXT) \
packet-dcerpc-dfs.$(OBJEXT) packet-dcerpc-epm.$(OBJEXT) \
packet-dcerpc-lsa.$(OBJEXT) packet-dcerpc-mapi.$(OBJEXT) \
packet-dcerpc-mgmt.$(OBJEXT) packet-dcerpc-ndr.$(OBJEXT) \
packet-dcerpc-netlogon.$(OBJEXT) packet-dcerpc-nspi.$(OBJEXT) \
packet-dcerpc-nt.$(OBJEXT) packet-dcerpc-oxid.$(OBJEXT) \
packet-dcerpc-reg.$(OBJEXT) packet-dcerpc-remact.$(OBJEXT) \
packet-dcerpc-samr.$(OBJEXT) packet-dcerpc-spoolss.$(OBJEXT) \
packet-dcerpc-srvsvc.$(OBJEXT) packet-dcerpc-tapi.$(OBJEXT) \
packet-dcerpc-wkssvc.$(OBJEXT) packet-ddtp.$(OBJEXT) \
packet-dec-bpdu.$(OBJEXT) packet-dhcpv6.$(OBJEXT) \
packet-diameter.$(OBJEXT) packet-dlsw.$(OBJEXT) packet-dns.$(OBJEXT) \
packet-dsi.$(OBJEXT) packet-dvmrp.$(OBJEXT) packet-eap.$(OBJEXT) \
packet-eapol.$(OBJEXT) packet-eigrp.$(OBJEXT) packet-esis.$(OBJEXT) \
packet-eth.$(OBJEXT) packet-ethertype.$(OBJEXT) packet-fddi.$(OBJEXT) \
packet-fr.$(OBJEXT) packet-frame.$(OBJEXT) packet-ftp.$(OBJEXT) \
packet-fw1.$(OBJEXT) packet-giop.$(OBJEXT) packet-gmrp.$(OBJEXT) \
packet-gnutella.$(OBJEXT) packet-gre.$(OBJEXT) packet-gtp.$(OBJEXT) \
packet-gvrp.$(OBJEXT) packet-h1.$(OBJEXT) packet-h261.$(OBJEXT) \
packet-hclnfsd.$(OBJEXT) packet-hsrp.$(OBJEXT) packet-http.$(OBJEXT) \
packet-iapp.$(OBJEXT) packet-icap.$(OBJEXT) packet-icmpv6.$(OBJEXT) \
packet-icp.$(OBJEXT) packet-icq.$(OBJEXT) packet-ieee80211.$(OBJEXT) \
packet-ieee8023.$(OBJEXT) packet-igmp.$(OBJEXT) packet-igrp.$(OBJEXT) \
packet-imap.$(OBJEXT) packet-ip.$(OBJEXT) packet-ipp.$(OBJEXT) \
packet-ipsec.$(OBJEXT) packet-ipv6.$(OBJEXT) packet-ipx.$(OBJEXT) \
packet-irc.$(OBJEXT) packet-isakmp.$(OBJEXT) packet-iscsi.$(OBJEXT) \
packet-isis.$(OBJEXT) packet-isis-clv.$(OBJEXT) \
packet-isis-hello.$(OBJEXT) packet-isis-lsp.$(OBJEXT) \
packet-isis-snp.$(OBJEXT) packet-isl.$(OBJEXT) packet-isup.$(OBJEXT) \
packet-iua.$(OBJEXT) packet-kerberos.$(OBJEXT) packet-klm.$(OBJEXT) \
packet-l2tp.$(OBJEXT) packet-lapb.$(OBJEXT) packet-lapbether.$(OBJEXT) \
packet-lapd.$(OBJEXT) packet-ldap.$(OBJEXT) packet-ldp.$(OBJEXT) \
packet-llc.$(OBJEXT) packet-lmi.$(OBJEXT) packet-lmp.$(OBJEXT) \
packet-lpd.$(OBJEXT) packet-m2pa.$(OBJEXT) packet-m2tp.$(OBJEXT) \
packet-m2ua.$(OBJEXT) packet-m3ua.$(OBJEXT) packet-mbtcp.$(OBJEXT) \
packet-mip.$(OBJEXT) packet-mmse.$(OBJEXT) packet-mount.$(OBJEXT) \
packet-mpeg1.$(OBJEXT) packet-mpls.$(OBJEXT) packet-mrdisc.$(OBJEXT) \
packet-msdp.$(OBJEXT) packet-msnip.$(OBJEXT) packet-msproxy.$(OBJEXT) \
packet-mtp2.$(OBJEXT) packet-mtp3.$(OBJEXT) packet-nbipx.$(OBJEXT) \
packet-nbns.$(OBJEXT) packet-ncp.$(OBJEXT) packet-ncp2222.$(OBJEXT) \
packet-ndmp.$(OBJEXT) packet-netbios.$(OBJEXT) packet-nfs.$(OBJEXT) \
packet-nfsacl.$(OBJEXT) packet-nfsauth.$(OBJEXT) \
packet-nisplus.$(OBJEXT) packet-nlm.$(OBJEXT) packet-nntp.$(OBJEXT) \
packet-ntlmssp.$(OBJEXT) packet-ntp.$(OBJEXT) packet-null.$(OBJEXT) \
packet-osi.$(OBJEXT) packet-osi-options.$(OBJEXT) packet-ospf.$(OBJEXT) \
packet-pcnfsd.$(OBJEXT) packet-pflog.$(OBJEXT) packet-pgm.$(OBJEXT) \
packet-pim.$(OBJEXT) packet-pop.$(OBJEXT) packet-portmap.$(OBJEXT) \
packet-ppp.$(OBJEXT) packet-pppoe.$(OBJEXT) packet-pptp.$(OBJEXT) \
packet-prism.$(OBJEXT) packet-q2931.$(OBJEXT) packet-q931.$(OBJEXT) \
packet-qllc.$(OBJEXT) packet-quake.$(OBJEXT) \
packet-quakeworld.$(OBJEXT) packet-quake2.$(OBJEXT) \
packet-quake3.$(OBJEXT) packet-radius.$(OBJEXT) packet-ranap.$(OBJEXT) \
packet-raw.$(OBJEXT) packet-rip.$(OBJEXT) packet-ripng.$(OBJEXT) \
packet-rlogin.$(OBJEXT) packet-rmi.$(OBJEXT) packet-rpc.$(OBJEXT) \
packet-rquota.$(OBJEXT) packet-rsh.$(OBJEXT) packet-rstat.$(OBJEXT) \
packet-rsvp.$(OBJEXT) packet-rtcp.$(OBJEXT) packet-rtp.$(OBJEXT) \
packet-rtsp.$(OBJEXT) packet-rwall.$(OBJEXT) packet-rx.$(OBJEXT) \
packet-sadmind.$(OBJEXT) packet-sap.$(OBJEXT) packet-sccp.$(OBJEXT) \
packet-scsi.$(OBJEXT) packet-sctp.$(OBJEXT) packet-sdp.$(OBJEXT) \
packet-sip.$(OBJEXT) packet-skinny.$(OBJEXT) packet-slimp3.$(OBJEXT) \
packet-sll.$(OBJEXT) packet-slowprotocols.$(OBJEXT) \
packet-smb.$(OBJEXT) packet-smb-browse.$(OBJEXT) \
packet-smb-common.$(OBJEXT) packet-smb-logon.$(OBJEXT) \
packet-smb-mailslot.$(OBJEXT) packet-smb-pipe.$(OBJEXT) \
packet-smpp.$(OBJEXT) packet-smtp.$(OBJEXT) packet-sna.$(OBJEXT) \
packet-snaeth.$(OBJEXT) packet-snmp.$(OBJEXT) packet-socks.$(OBJEXT) \
packet-spray.$(OBJEXT) packet-srvloc.$(OBJEXT) packet-sscop.$(OBJEXT) \
packet-ssl.$(OBJEXT) packet-stat.$(OBJEXT) packet-stat-notify.$(OBJEXT) \
packet-sua.$(OBJEXT) packet-syslog.$(OBJEXT) packet-tacacs.$(OBJEXT) \
packet-tcp.$(OBJEXT) packet-tds.$(OBJEXT) packet-telnet.$(OBJEXT) \
packet-tftp.$(OBJEXT) packet-time.$(OBJEXT) packet-tns.$(OBJEXT) \
packet-tpkt.$(OBJEXT) packet-tr.$(OBJEXT) packet-trmac.$(OBJEXT) \
packet-tsp.$(OBJEXT) packet-ucp.$(OBJEXT) packet-udp.$(OBJEXT) \
packet-v120.$(OBJEXT) packet-vines.$(OBJEXT) packet-vj.$(OBJEXT) \
packet-vlan.$(OBJEXT) packet-vrrp.$(OBJEXT) packet-vtp.$(OBJEXT) \
packet-wccp.$(OBJEXT) packet-wcp.$(OBJEXT) packet-who.$(OBJEXT) \
packet-wap.$(OBJEXT) packet-wtls.$(OBJEXT) packet-wsp.$(OBJEXT) \
packet-wtp.$(OBJEXT) packet-x11.$(OBJEXT) packet-x25.$(OBJEXT) \
packet-xdmcp.$(OBJEXT) packet-xot.$(OBJEXT) packet-xyplex.$(OBJEXT) \
packet-yhoo.$(OBJEXT) packet-ypbind.$(OBJEXT) packet-yppasswd.$(OBJEXT) \
packet-ypserv.$(OBJEXT) packet-ypxfr.$(OBJEXT) packet-zebra.$(OBJEXT) \
afn.$(OBJEXT) asn1.$(OBJEXT) column.$(OBJEXT) conditions.$(OBJEXT) \
capture_stop_conditions.$(OBJEXT) follow.$(OBJEXT) in_cksum.$(OBJEXT) \
ipproto.$(OBJEXT) pcap-util.$(OBJEXT) prefs.$(OBJEXT) print.$(OBJEXT) \
ps.$(OBJEXT) ptvcursor.$(OBJEXT) reassemble.$(OBJEXT) \
ringbuffer.$(OBJEXT) util.$(OBJEXT) xdlc.$(OBJEXT) xmlstub.$(OBJEXT) \
register.$(OBJEXT) tethereal.$(OBJEXT)  \
com_stats.$(OBJEXT) traffic_stats.$(OBJEXT) flow_monitor.$(OBJEXT)

tethereal_static_OBJECTS =  packet-aarp.$(OBJEXT) packet-afp.$(OBJEXT) \
packet-afs.$(OBJEXT) packet-aim.$(OBJEXT) packet-ajp13.$(OBJEXT) \
packet-aodv.$(OBJEXT) packet-aodv6.$(OBJEXT) packet-arp.$(OBJEXT) \
packet-asap.$(OBJEXT) packet-ascend.$(OBJEXT) packet-atalk.$(OBJEXT) \
packet-atm.$(OBJEXT) packet-auto_rp.$(OBJEXT) packet-bacapp.$(OBJEXT) \
packet-bacnet.$(OBJEXT) packet-beep.$(OBJEXT) packet-bgp.$(OBJEXT) \
packet-bootp.$(OBJEXT) packet-bootparams.$(OBJEXT) \
packet-bpdu.$(OBJEXT) packet-bvlc.$(OBJEXT) packet-cdp.$(OBJEXT) \
packet-cgmp.$(OBJEXT) packet-chdlc.$(OBJEXT) packet-clip.$(OBJEXT) \
packet-clnp.$(OBJEXT) packet-cops.$(OBJEXT) packet-cosine.$(OBJEXT) \
packet-cpha.$(OBJEXT) packet-cups.$(OBJEXT) packet-data.$(OBJEXT) \
packet-dccp.$(OBJEXT) packet-dcerpc.$(OBJEXT) \
packet-dcerpc-browser.$(OBJEXT) packet-dcerpc-conv.$(OBJEXT) \
packet-dcerpc-dfs.$(OBJEXT) packet-dcerpc-epm.$(OBJEXT) \
packet-dcerpc-lsa.$(OBJEXT) packet-dcerpc-mapi.$(OBJEXT) \
packet-dcerpc-mgmt.$(OBJEXT) packet-dcerpc-ndr.$(OBJEXT) \
packet-dcerpc-netlogon.$(OBJEXT) packet-dcerpc-nspi.$(OBJEXT) \
packet-dcerpc-nt.$(OBJEXT) packet-dcerpc-oxid.$(OBJEXT) \
packet-dcerpc-reg.$(OBJEXT) packet-dcerpc-remact.$(OBJEXT) \
packet-dcerpc-samr.$(OBJEXT) packet-dcerpc-spoolss.$(OBJEXT) \
packet-dcerpc-srvsvc.$(OBJEXT) packet-dcerpc-tapi.$(OBJEXT) \
packet-dcerpc-wkssvc.$(OBJEXT) packet-ddtp.$(OBJEXT) \
packet-dec-bpdu.$(OBJEXT) packet-dhcpv6.$(OBJEXT) \
packet-diameter.$(OBJEXT) packet-dlsw.$(OBJEXT) packet-dns.$(OBJEXT) \
packet-dsi.$(OBJEXT) packet-dvmrp.$(OBJEXT) packet-eap.$(OBJEXT) \
packet-eapol.$(OBJEXT) packet-eigrp.$(OBJEXT) packet-esis.$(OBJEXT) \
packet-eth.$(OBJEXT) packet-ethertype.$(OBJEXT) packet-fddi.$(OBJEXT) \
packet-fr.$(OBJEXT) packet-frame.$(OBJEXT) packet-ftp.$(OBJEXT) \
packet-fw1.$(OBJEXT) packet-giop.$(OBJEXT) packet-gmrp.$(OBJEXT) \
packet-gnutella.$(OBJEXT) packet-gre.$(OBJEXT) packet-gtp.$(OBJEXT) \
packet-gvrp.$(OBJEXT) packet-h1.$(OBJEXT) packet-h261.$(OBJEXT) \
packet-hclnfsd.$(OBJEXT) packet-hsrp.$(OBJEXT) packet-http.$(OBJEXT) \
packet-iapp.$(OBJEXT) packet-icap.$(OBJEXT) packet-icmpv6.$(OBJEXT) \
packet-icp.$(OBJEXT) packet-icq.$(OBJEXT) packet-ieee80211.$(OBJEXT) \
packet-ieee8023.$(OBJEXT) packet-igmp.$(OBJEXT) packet-igrp.$(OBJEXT) \
packet-imap.$(OBJEXT) packet-ip.$(OBJEXT) packet-ipp.$(OBJEXT) \
packet-ipsec.$(OBJEXT) packet-ipv6.$(OBJEXT) packet-ipx.$(OBJEXT) \
packet-irc.$(OBJEXT) packet-isakmp.$(OBJEXT) packet-iscsi.$(OBJEXT) \
packet-isis.$(OBJEXT) packet-isis-clv.$(OBJEXT) \
packet-isis-hello.$(OBJEXT) packet-isis-lsp.$(OBJEXT) \
packet-isis-snp.$(OBJEXT) packet-isl.$(OBJEXT) packet-isup.$(OBJEXT) \
packet-iua.$(OBJEXT) packet-kerberos.$(OBJEXT) packet-klm.$(OBJEXT) \
packet-l2tp.$(OBJEXT) packet-lapb.$(OBJEXT) packet-lapbether.$(OBJEXT) \
packet-lapd.$(OBJEXT) packet-ldap.$(OBJEXT) packet-ldp.$(OBJEXT) \
packet-llc.$(OBJEXT) packet-lmi.$(OBJEXT) packet-lmp.$(OBJEXT) \
packet-lpd.$(OBJEXT) packet-m2pa.$(OBJEXT) packet-m2tp.$(OBJEXT) \
packet-m2ua.$(OBJEXT) packet-m3ua.$(OBJEXT) packet-mbtcp.$(OBJEXT) \
packet-mip.$(OBJEXT) packet-mmse.$(OBJEXT) packet-mount.$(OBJEXT) \
packet-mpeg1.$(OBJEXT) packet-mpls.$(OBJEXT) packet-mrdisc.$(OBJEXT) \
packet-msdp.$(OBJEXT) packet-msnip.$(OBJEXT) packet-msproxy.$(OBJEXT) \
packet-mtp2.$(OBJEXT) packet-mtp3.$(OBJEXT) packet-nbipx.$(OBJEXT) \
packet-nbns.$(OBJEXT) packet-ncp.$(OBJEXT) packet-ncp2222.$(OBJEXT) \
packet-ndmp.$(OBJEXT) packet-netbios.$(OBJEXT) packet-nfs.$(OBJEXT) \
packet-nfsacl.$(OBJEXT) packet-nfsauth.$(OBJEXT) \
packet-nisplus.$(OBJEXT) packet-nlm.$(OBJEXT) packet-nntp.$(OBJEXT) \
packet-ntlmssp.$(OBJEXT) packet-ntp.$(OBJEXT) packet-null.$(OBJEXT) \
packet-osi.$(OBJEXT) packet-osi-options.$(OBJEXT) packet-ospf.$(OBJEXT) \
packet-pcnfsd.$(OBJEXT) packet-pflog.$(OBJEXT) packet-pgm.$(OBJEXT) \
packet-pim.$(OBJEXT) packet-pop.$(OBJEXT) packet-portmap.$(OBJEXT) \
packet-ppp.$(OBJEXT) packet-pppoe.$(OBJEXT) packet-pptp.$(OBJEXT) \
packet-prism.$(OBJEXT) packet-q2931.$(OBJEXT) packet-q931.$(OBJEXT) \
packet-qllc.$(OBJEXT) packet-quake.$(OBJEXT) \
packet-quakeworld.$(OBJEXT) packet-quake2.$(OBJEXT) \
packet-quake3.$(OBJEXT) packet-radius.$(OBJEXT) packet-ranap.$(OBJEXT) \
packet-raw.$(OBJEXT) packet-rip.$(OBJEXT) packet-ripng.$(OBJEXT) \
packet-rlogin.$(OBJEXT) packet-rmi.$(OBJEXT) packet-rpc.$(OBJEXT) \
packet-rquota.$(OBJEXT) packet-rsh.$(OBJEXT) packet-rstat.$(OBJEXT) \
packet-rsvp.$(OBJEXT) packet-rtcp.$(OBJEXT) packet-rtp.$(OBJEXT) \
packet-rtsp.$(OBJEXT) packet-rwall.$(OBJEXT) packet-rx.$(OBJEXT) \
packet-sadmind.$(OBJEXT) packet-sap.$(OBJEXT) packet-sccp.$(OBJEXT) \
packet-scsi.$(OBJEXT) packet-sctp.$(OBJEXT) packet-sdp.$(OBJEXT) \
packet-sip.$(OBJEXT) packet-skinny.$(OBJEXT) packet-slimp3.$(OBJEXT) \
packet-sll.$(OBJEXT) packet-slowprotocols.$(OBJEXT) \
packet-smb.$(OBJEXT) packet-smb-browse.$(OBJEXT) \
packet-smb-common.$(OBJEXT) packet-smb-logon.$(OBJEXT) \
packet-smb-mailslot.$(OBJEXT) packet-smb-pipe.$(OBJEXT) \
packet-smpp.$(OBJEXT) packet-smtp.$(OBJEXT) packet-sna.$(OBJEXT) \
packet-snaeth.$(OBJEXT) packet-snmp.$(OBJEXT) packet-socks.$(OBJEXT) \
packet-spray.$(OBJEXT) packet-srvloc.$(OBJEXT) packet-sscop.$(OBJEXT) \
packet-ssl.$(OBJEXT) packet-stat.$(OBJEXT) packet-stat-notify.$(OBJEXT) \
packet-sua.$(OBJEXT) packet-syslog.$(OBJEXT) packet-tacacs.$(OBJEXT) \
packet-tcp.$(OBJEXT) packet-tds.$(OBJEXT) packet-telnet.$(OBJEXT) \
packet-tftp.$(OBJEXT) packet-time.$(OBJEXT) packet-tns.$(OBJEXT) \
packet-tpkt.$(OBJEXT) packet-tr.$(OBJEXT) packet-trmac.$(OBJEXT) \
packet-tsp.$(OBJEXT) packet-ucp.$(OBJEXT) packet-udp.$(OBJEXT) \
packet-v120.$(OBJEXT) packet-vines.$(OBJEXT) packet-vj.$(OBJEXT) \
packet-vlan.$(OBJEXT) packet-vrrp.$(OBJEXT) packet-vtp.$(OBJEXT) \
packet-wccp.$(OBJEXT) packet-wcp.$(OBJEXT) packet-who.$(OBJEXT) \
packet-wap.$(OBJEXT) packet-wtls.$(OBJEXT) packet-wsp.$(OBJEXT) \
packet-wtp.$(OBJEXT) packet-x11.$(OBJEXT) packet-x25.$(OBJEXT) \
packet-xdmcp.$(OBJEXT) packet-xot.$(OBJEXT) packet-xyplex.$(OBJEXT) \
packet-yhoo.$(OBJEXT) packet-ypbind.$(OBJEXT) packet-yppasswd.$(OBJEXT) \
packet-ypserv.$(OBJEXT) packet-ypxfr.$(OBJEXT) packet-zebra.$(OBJEXT) \
afn.$(OBJEXT) asn1.$(OBJEXT) column.$(OBJEXT) conditions.$(OBJEXT) \
capture_stop_conditions.$(OBJEXT) follow.$(OBJEXT) in_cksum.$(OBJEXT) \
ipproto.$(OBJEXT) pcap-util.$(OBJEXT) prefs.$(OBJEXT) print.$(OBJEXT) \
ps.$(OBJEXT) ptvcursor.$(OBJEXT) reassemble.$(OBJEXT) \
ringbuffer.$(OBJEXT) util.$(OBJEXT) xdlc.$(OBJEXT) xmlstub.$(OBJEXT) \
register-static.$(OBJEXT) tethereal.$(OBJEXT)   \
com_stats.$(OBJEXT) traffic_stats.$(OBJEXT) flow_monitor.$(OBJEXT)

editcap_OBJECTS =  editcap.$(OBJEXT)
editcap_LDFLAGS = 
mergecap_OBJECTS =  mergecap.$(OBJEXT)
mergecap_LDFLAGS = 
dftest_OBJECTS =  packet-aarp.$(OBJEXT) packet-afp.$(OBJEXT) \
packet-afs.$(OBJEXT) packet-aim.$(OBJEXT) packet-ajp13.$(OBJEXT) \
packet-aodv.$(OBJEXT) packet-aodv6.$(OBJEXT) packet-arp.$(OBJEXT) \
packet-asap.$(OBJEXT) packet-ascend.$(OBJEXT) packet-atalk.$(OBJEXT) \
packet-atm.$(OBJEXT) packet-auto_rp.$(OBJEXT) packet-bacapp.$(OBJEXT) \
packet-bacnet.$(OBJEXT) packet-beep.$(OBJEXT) packet-bgp.$(OBJEXT) \
packet-bootp.$(OBJEXT) packet-bootparams.$(OBJEXT) \
packet-bpdu.$(OBJEXT) packet-bvlc.$(OBJEXT) packet-cdp.$(OBJEXT) \
packet-cgmp.$(OBJEXT) packet-chdlc.$(OBJEXT) packet-clip.$(OBJEXT) \
packet-clnp.$(OBJEXT) packet-cops.$(OBJEXT) packet-cosine.$(OBJEXT) \
packet-cpha.$(OBJEXT) packet-cups.$(OBJEXT) packet-data.$(OBJEXT) \
packet-dccp.$(OBJEXT) packet-dcerpc.$(OBJEXT) \
packet-dcerpc-browser.$(OBJEXT) packet-dcerpc-conv.$(OBJEXT) \
packet-dcerpc-dfs.$(OBJEXT) packet-dcerpc-epm.$(OBJEXT) \
packet-dcerpc-lsa.$(OBJEXT) packet-dcerpc-mapi.$(OBJEXT) \
packet-dcerpc-mgmt.$(OBJEXT) packet-dcerpc-ndr.$(OBJEXT) \
packet-dcerpc-netlogon.$(OBJEXT) packet-dcerpc-nspi.$(OBJEXT) \
packet-dcerpc-nt.$(OBJEXT) packet-dcerpc-oxid.$(OBJEXT) \
packet-dcerpc-reg.$(OBJEXT) packet-dcerpc-remact.$(OBJEXT) \
packet-dcerpc-samr.$(OBJEXT) packet-dcerpc-spoolss.$(OBJEXT) \
packet-dcerpc-srvsvc.$(OBJEXT) packet-dcerpc-tapi.$(OBJEXT) \
packet-dcerpc-wkssvc.$(OBJEXT) packet-ddtp.$(OBJEXT) \
packet-dec-bpdu.$(OBJEXT) packet-dhcpv6.$(OBJEXT) \
packet-diameter.$(OBJEXT) packet-dlsw.$(OBJEXT) packet-dns.$(OBJEXT) \
packet-dsi.$(OBJEXT) packet-dvmrp.$(OBJEXT) packet-eap.$(OBJEXT) \
packet-eapol.$(OBJEXT) packet-eigrp.$(OBJEXT) packet-esis.$(OBJEXT) \
packet-eth.$(OBJEXT) packet-ethertype.$(OBJEXT) packet-fddi.$(OBJEXT) \
packet-fr.$(OBJEXT) packet-frame.$(OBJEXT) packet-ftp.$(OBJEXT) \
packet-fw1.$(OBJEXT) packet-giop.$(OBJEXT) packet-gmrp.$(OBJEXT) \
packet-gnutella.$(OBJEXT) packet-gre.$(OBJEXT) packet-gtp.$(OBJEXT) \
packet-gvrp.$(OBJEXT) packet-h1.$(OBJEXT) packet-h261.$(OBJEXT) \
packet-hclnfsd.$(OBJEXT) packet-hsrp.$(OBJEXT) packet-http.$(OBJEXT) \
packet-iapp.$(OBJEXT) packet-icap.$(OBJEXT) packet-icmpv6.$(OBJEXT) \
packet-icp.$(OBJEXT) packet-icq.$(OBJEXT) packet-ieee80211.$(OBJEXT) \
packet-ieee8023.$(OBJEXT) packet-igmp.$(OBJEXT) packet-igrp.$(OBJEXT) \
packet-imap.$(OBJEXT) packet-ip.$(OBJEXT) packet-ipp.$(OBJEXT) \
packet-ipsec.$(OBJEXT) packet-ipv6.$(OBJEXT) packet-ipx.$(OBJEXT) \
packet-irc.$(OBJEXT) packet-isakmp.$(OBJEXT) packet-iscsi.$(OBJEXT) \
packet-isis.$(OBJEXT) packet-isis-clv.$(OBJEXT) \
packet-isis-hello.$(OBJEXT) packet-isis-lsp.$(OBJEXT) \
packet-isis-snp.$(OBJEXT) packet-isl.$(OBJEXT) packet-isup.$(OBJEXT) \
packet-iua.$(OBJEXT) packet-kerberos.$(OBJEXT) packet-klm.$(OBJEXT) \
packet-l2tp.$(OBJEXT) packet-lapb.$(OBJEXT) packet-lapbether.$(OBJEXT) \
packet-lapd.$(OBJEXT) packet-ldap.$(OBJEXT) packet-ldp.$(OBJEXT) \
packet-llc.$(OBJEXT) packet-lmi.$(OBJEXT) packet-lmp.$(OBJEXT) \
packet-lpd.$(OBJEXT) packet-m2pa.$(OBJEXT) packet-m2tp.$(OBJEXT) \
packet-m2ua.$(OBJEXT) packet-m3ua.$(OBJEXT) packet-mbtcp.$(OBJEXT) \
packet-mip.$(OBJEXT) packet-mmse.$(OBJEXT) packet-mount.$(OBJEXT) \
packet-mpeg1.$(OBJEXT) packet-mpls.$(OBJEXT) packet-mrdisc.$(OBJEXT) \
packet-msdp.$(OBJEXT) packet-msnip.$(OBJEXT) packet-msproxy.$(OBJEXT) \
packet-mtp2.$(OBJEXT) packet-mtp3.$(OBJEXT) packet-nbipx.$(OBJEXT) \
packet-nbns.$(OBJEXT) packet-ncp.$(OBJEXT) packet-ncp2222.$(OBJEXT) \
packet-ndmp.$(OBJEXT) packet-netbios.$(OBJEXT) packet-nfs.$(OBJEXT) \
packet-nfsacl.$(OBJEXT) packet-nfsauth.$(OBJEXT) \
packet-nisplus.$(OBJEXT) packet-nlm.$(OBJEXT) packet-nntp.$(OBJEXT) \
packet-ntlmssp.$(OBJEXT) packet-ntp.$(OBJEXT) packet-null.$(OBJEXT) \
packet-osi.$(OBJEXT) packet-osi-options.$(OBJEXT) packet-ospf.$(OBJEXT) \
packet-pcnfsd.$(OBJEXT) packet-pflog.$(OBJEXT) packet-pgm.$(OBJEXT) \
packet-pim.$(OBJEXT) packet-pop.$(OBJEXT) packet-portmap.$(OBJEXT) \
packet-ppp.$(OBJEXT) packet-pppoe.$(OBJEXT) packet-pptp.$(OBJEXT) \
packet-prism.$(OBJEXT) packet-q2931.$(OBJEXT) packet-q931.$(OBJEXT) \
packet-qllc.$(OBJEXT) packet-quake.$(OBJEXT) \
packet-quakeworld.$(OBJEXT) packet-quake2.$(OBJEXT) \
packet-quake3.$(OBJEXT) packet-radius.$(OBJEXT) packet-ranap.$(OBJEXT) \
packet-raw.$(OBJEXT) packet-rip.$(OBJEXT) packet-ripng.$(OBJEXT) \
packet-rlogin.$(OBJEXT) packet-rmi.$(OBJEXT) packet-rpc.$(OBJEXT) \
packet-rquota.$(OBJEXT) packet-rsh.$(OBJEXT) packet-rstat.$(OBJEXT) \
packet-rsvp.$(OBJEXT) packet-rtcp.$(OBJEXT) packet-rtp.$(OBJEXT) \
packet-rtsp.$(OBJEXT) packet-rwall.$(OBJEXT) packet-rx.$(OBJEXT) \
packet-sadmind.$(OBJEXT) packet-sap.$(OBJEXT) packet-sccp.$(OBJEXT) \
packet-scsi.$(OBJEXT) packet-sctp.$(OBJEXT) packet-sdp.$(OBJEXT) \
packet-sip.$(OBJEXT) packet-skinny.$(OBJEXT) packet-slimp3.$(OBJEXT) \
packet-sll.$(OBJEXT) packet-slowprotocols.$(OBJEXT) \
packet-smb.$(OBJEXT) packet-smb-browse.$(OBJEXT) \
packet-smb-common.$(OBJEXT) packet-smb-logon.$(OBJEXT) \
packet-smb-mailslot.$(OBJEXT) packet-smb-pipe.$(OBJEXT) \
packet-smpp.$(OBJEXT) packet-smtp.$(OBJEXT) packet-sna.$(OBJEXT) \
packet-snaeth.$(OBJEXT) packet-snmp.$(OBJEXT) packet-socks.$(OBJEXT) \
packet-spray.$(OBJEXT) packet-srvloc.$(OBJEXT) packet-sscop.$(OBJEXT) \
packet-ssl.$(OBJEXT) packet-stat.$(OBJEXT) packet-stat-notify.$(OBJEXT) \
packet-sua.$(OBJEXT) packet-syslog.$(OBJEXT) packet-tacacs.$(OBJEXT) \
packet-tcp.$(OBJEXT) packet-tds.$(OBJEXT) packet-telnet.$(OBJEXT) \
packet-tftp.$(OBJEXT) packet-time.$(OBJEXT) packet-tns.$(OBJEXT) \
packet-tpkt.$(OBJEXT) packet-tr.$(OBJEXT) packet-trmac.$(OBJEXT) \
packet-tsp.$(OBJEXT) packet-ucp.$(OBJEXT) packet-udp.$(OBJEXT) \
packet-v120.$(OBJEXT) packet-vines.$(OBJEXT) packet-vj.$(OBJEXT) \
packet-vlan.$(OBJEXT) packet-vrrp.$(OBJEXT) packet-vtp.$(OBJEXT) \
packet-wccp.$(OBJEXT) packet-wcp.$(OBJEXT) packet-who.$(OBJEXT) \
packet-wap.$(OBJEXT) packet-wtls.$(OBJEXT) packet-wsp.$(OBJEXT) \
packet-wtp.$(OBJEXT) packet-x11.$(OBJEXT) packet-x25.$(OBJEXT) \
packet-xdmcp.$(OBJEXT) packet-xot.$(OBJEXT) packet-xyplex.$(OBJEXT) \
packet-yhoo.$(OBJEXT) packet-ypbind.$(OBJEXT) packet-yppasswd.$(OBJEXT) \
packet-ypserv.$(OBJEXT) packet-ypxfr.$(OBJEXT) packet-zebra.$(OBJEXT) \
afn.$(OBJEXT) asn1.$(OBJEXT) column.$(OBJEXT) conditions.$(OBJEXT) \
capture_stop_conditions.$(OBJEXT) follow.$(OBJEXT) in_cksum.$(OBJEXT) \
ipproto.$(OBJEXT) pcap-util.$(OBJEXT) prefs.$(OBJEXT) print.$(OBJEXT) \
ps.$(OBJEXT) ptvcursor.$(OBJEXT) reassemble.$(OBJEXT) \
ringbuffer.$(OBJEXT) util.$(OBJEXT) xdlc.$(OBJEXT) xmlstub.$(OBJEXT) \
register.$(OBJEXT) dftest.$(OBJEXT)
text2pcap_OBJECTS =  text2pcap.$(OBJEXT) text2pcap-scanner.$(OBJEXT)
text2pcap_LDFLAGS = 
SCRIPTS =  $(bin_SCRIPTS)

LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LEXLIB = @LEXLIB@
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
man1dir = $(mandir)/man1
MANS = $(man1_MANS) $(man_MANS)

NROFF = nroff
DATA =  $(diameter_DATA) $(sysconf_DATA)

HEADERS =  $(noinst_HEADERS)

DIST_COMMON =  README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
Makefile.am Makefile.in NEWS TODO acconfig.h acinclude.m4 aclocal.m4 \
config.guess config.h.in config.sub configure configure.in install-sh \
ltconfig ltmain.sh missing mkinstalldirs text2pcap-scanner.c


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = gtar
GZIP_ENV = --best
DIST_SUBDIRS =  tools wiretap doc epan plugins packaging \
@ethereal_SUBDIRS@ tools wiretap doc epan packaging @ethereal_SUBDIRS@
SOURCES = $(ethereal_SOURCES) $(EXTRA_ethereal_SOURCES) $(ethereal_static_SOURCES) $(tethereal_SOURCES) $(tethereal_static_SOURCES) $(editcap_SOURCES) $(mergecap_SOURCES) $(dftest_SOURCES) $(text2pcap_SOURCES)
OBJECTS = $(ethereal_OBJECTS) $(ethereal_static_OBJECTS) $(tethereal_OBJECTS) $(tethereal_static_OBJECTS) $(editcap_OBJECTS) $(mergecap_OBJECTS) $(dftest_OBJECTS) $(text2pcap_OBJECTS)

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .l .lo .o .obj .s .sh
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
	cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4):  configure.in  acinclude.m4
	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
	cd $(srcdir) && $(AUTOCONF)

config.h: stamp-h
	@if test ! -f $@; then \
		rm -f stamp-h; \
		$(MAKE) stamp-h; \
	else :; fi
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES= CONFIG_HEADERS=config.h \
	     $(SHELL) ./config.status
	@echo timestamp > stamp-h 2> /dev/null
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
	@if test ! -f $@; then \
		rm -f $(srcdir)/stamp-h.in; \
		$(MAKE) $(srcdir)/stamp-h.in; \
	else :; fi
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
	cd $(top_srcdir) && $(AUTOHEADER)
	@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null

mostlyclean-hdr:

clean-hdr:

distclean-hdr:
	-rm -f config.h

maintainer-clean-hdr:

mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	@list='$(bin_PROGRAMS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
	    $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
	  else :; fi; \
	done

uninstall-binPROGRAMS:
	@$(NORMAL_UNINSTALL)
	list='$(bin_PROGRAMS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
	done

.c.o:
	$(COMPILE) -c $<

# FIXME: We should only use cygpath when building on Windows,
# and only if it is available.
.c.obj:
	$(COMPILE) -c `cygpath -w $<`

.s.o:
	$(COMPILE) -c $<

.S.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	-rm -f *.o core *.core
	-rm -f *.$(OBJEXT)

clean-compile:

distclean-compile:
	-rm -f *.tab.c

maintainer-clean-compile:

.c.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

.s.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

.S.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

distclean-libtool:

maintainer-clean-libtool:

ethereal$(EXEEXT): $(ethereal_OBJECTS) $(ethereal_DEPENDENCIES)
	@rm -f ethereal$(EXEEXT)
	$(LINK) $(ethereal_LDFLAGS) $(ethereal_OBJECTS) $(ethereal_LDADD) $(LIBS)

ethereal_static$(EXEEXT): $(ethereal_static_OBJECTS) $(ethereal_static_DEPENDENCIES)
	@rm -f ethereal_static$(EXEEXT)
	$(LINK) $(ethereal_static_LDFLAGS) $(ethereal_static_OBJECTS) $(ethereal_static_LDADD) $(LIBS)

tethereal$(EXEEXT): $(tethereal_OBJECTS) $(tethereal_DEPENDENCIES)
	@rm -f tethereal$(EXEEXT)
	$(LINK) $(tethereal_LDFLAGS) $(tethereal_OBJECTS) $(tethereal_LDADD) $(LIBS)

tethereal_static$(EXEEXT): $(tethereal_static_OBJECTS) $(tethereal_static_DEPENDENCIES)
	@rm -f tethereal_static$(EXEEXT)
	$(LINK) $(tethereal_static_LDFLAGS) $(tethereal_static_OBJECTS) $(tethereal_static_LDADD) $(LIBS)

editcap$(EXEEXT): $(editcap_OBJECTS) $(editcap_DEPENDENCIES)
	@rm -f editcap$(EXEEXT)
	$(LINK) $(editcap_LDFLAGS) $(editcap_OBJECTS) $(editcap_LDADD) $(LIBS)

mergecap$(EXEEXT): $(mergecap_OBJECTS) $(mergecap_DEPENDENCIES)
	@rm -f mergecap$(EXEEXT)
	$(LINK) $(mergecap_LDFLAGS) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS)

dftest$(EXEEXT): $(dftest_OBJECTS) $(dftest_DEPENDENCIES)
	@rm -f dftest$(EXEEXT)
	$(LINK) $(dftest_LDFLAGS) $(dftest_OBJECTS) $(dftest_LDADD) $(LIBS)

text2pcap$(EXEEXT): $(text2pcap_OBJECTS) $(text2pcap_DEPENDENCIES)
	@rm -f text2pcap$(EXEEXT)
	$(LINK) $(text2pcap_LDFLAGS) $(text2pcap_OBJECTS) $(text2pcap_LDADD) $(LIBS)

install-binSCRIPTS: $(bin_SCRIPTS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	@list='$(bin_SCRIPTS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
	  else if test -f $(srcdir)/$$p; then \
	    echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; fi; \
	done

uninstall-binSCRIPTS:
	@$(NORMAL_UNINSTALL)
	list='$(bin_SCRIPTS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
	done
.l.c:
	$(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@

install-man1:
	$(mkinstalldirs) $(DESTDIR)$(man1dir)
	@list='$(man1_MANS)'; \
	l2='$(man_MANS)'; for i in $$l2; do \
	  case "$$i" in \
	    *.1*) list="$$list $$i" ;; \
	  esac; \
	done; \
	for i in $$list; do \
	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
	  else file=$$i; fi; \
	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
	  echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
	done

uninstall-man1:
	@list='$(man1_MANS)'; \
	l2='$(man_MANS)'; for i in $$l2; do \
	  case "$$i" in \
	    *.1*) list="$$list $$i" ;; \
	  esac; \
	done; \
	for i in $$list; do \
	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
	  echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
	  rm -f $(DESTDIR)$(man1dir)/$$inst; \
	done
install-man: $(MANS)
	@$(NORMAL_INSTALL)
	$(MAKE) $(AM_MAKEFLAGS) install-man1
uninstall-man:
	@$(NORMAL_UNINSTALL)
	$(MAKE) $(AM_MAKEFLAGS) uninstall-man1

install-diameterDATA: $(diameter_DATA)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(diameterdir)
	@list='$(diameter_DATA)'; for p in $$list; do \
	  if test -f $(srcdir)/$$p; then \
	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(diameterdir)/$$p"; \
	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(diameterdir)/$$p; \
	  else if test -f $$p; then \
	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(diameterdir)/$$p"; \
	    $(INSTALL_DATA) $$p $(DESTDIR)$(diameterdir)/$$p; \
	  fi; fi; \
	done

uninstall-diameterDATA:
	@$(NORMAL_UNINSTALL)
	list='$(diameter_DATA)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(diameterdir)/$$p; \
	done

install-sysconfDATA: $(sysconf_DATA)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
	@list='$(sysconf_DATA)'; for p in $$list; do \
	  if test -f $(srcdir)/$$p; then \
	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
	  else if test -f $$p; then \
	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
	    $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
	  fi; fi; \
	done

uninstall-sysconfDATA:
	@$(NORMAL_UNINSTALL)
	list='$(sysconf_DATA)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(sysconfdir)/$$p; \
	done

# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.

@SET_MAKE@

all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive  \
check-recursive installcheck-recursive info-recursive dvi-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	dot_seen=no; \
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    dot_seen=yes; \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done; \
	if test "$$dot_seen" = "no"; then \
	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
	fi; test -z "$$fail"

mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	dot_seen=no; \
	rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
	  rev="$$subdir $$rev"; \
	  test "$$subdir" != "." || dot_seen=yes; \
	done; \
	test "$$dot_seen" = "no" && rev=". $$rev"; \
	target=`echo $@ | sed s/-recursive//`; \
	for subdir in $$rev; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"
tags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	here=`pwd` && cd $(srcdir) \
	  && mkid -f$$here/ID $$unique $(LISP)

TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
   if test "$$subdir" = .; then :; else \
	    test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
   fi; \
	done; \
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
	-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
	-rm -rf $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
	mkdir $(distdir)/=build
	mkdir $(distdir)/=inst
	dc_install_base=`cd $(distdir)/=inst && pwd`; \
	cd $(distdir)/=build \
	  && ../configure --srcdir=.. --prefix=$$dc_install_base \
	  && $(MAKE) $(AM_MAKEFLAGS) \
	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
	  && $(MAKE) $(AM_MAKEFLAGS) check \
	  && $(MAKE) $(AM_MAKEFLAGS) install \
	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
	  && $(MAKE) $(AM_MAKEFLAGS) dist
	-rm -rf $(distdir)
	@banner="$(distdir).tar.gz is ready for distribution"; \
	dashes=`echo "$$banner" | sed s/./=/g`; \
	echo "$$dashes"; \
	echo "$$banner"; \
	echo "$$dashes"
dist: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
	-rm -rf $(distdir)
dist-all: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
	-rm -rf $(distdir)
distdir: $(DISTFILES)
	-rm -rf $(distdir)
	mkdir $(distdir)
	-chmod 777 $(distdir)
	$(mkinstalldirs) $(distdir)/debian $(distdir)/doc $(distdir)/image
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  if test -d $$d/$$file; then \
	    cp -pr $$d/$$file $(distdir)/$$file; \
	  else \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file || :; \
	  fi; \
	done
	for subdir in $(DIST_SUBDIRS); do \
	  if test "$$subdir" = .; then :; else \
	    test -d $(distdir)/$$subdir \
	    || mkdir $(distdir)/$$subdir \
	    || exit 1; \
	    chmod 777 $(distdir)/$$subdir; \
	    (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
	      || exit 1; \
	  fi; \
	done
afn.o: afn.c config.h epan/packet.h wiretap/wtap.h epan/proto.h \
	epan/ipv4.h epan/nstime.h epan/tvbuff.h epan/exceptions.h \
	epan/except.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	epan/pint.h epan/to_str.h epan/value_string.h \
	epan/column_info.h epan/frame_data.h epan/packet_info.h \
	epan/column-utils.h epan/epan.h epan/dfilter/dfilter.h afn.h
asn1.o: asn1.c config.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	asn1.h
capture.o: capture.c config.h gtk/gtkclist.h getopt.h gtk/main.h \
	globals.h file.h wiretap/wtap.h epan/dfilter/dfilter.h \
	epan/epan.h epan/frame_data.h epan/column_info.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	print.h epan/packet.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/packet_info.h epan/column-utils.h \
	epan/timestamp.h gtk/gtkglobals.h capture.h util.h pcap-util.h \
	simple_dialog.h prefs.h color.h conditions.h \
	capture_stop_conditions.h ringbuffer.h wiretap/libpcap.h \
	wiretap/wtap-capture.h packet-atalk.h packet-atm.h \
	packet-clip.h packet-eth.h packet-fddi.h packet-null.h \
	packet-ppp.h packet-raw.h packet-sll.h packet-tr.h \
	packet-ieee80211.h packet-chdlc.h packet-prism.h
capture_stop_conditions.o: capture_stop_conditions.c conditions.h \
	capture_stop_conditions.h
column.o: column.c config.h getopt.h epan/timestamp.h prefs.h color.h \
	column.h epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h
conditions.o: conditions.c conditions.h
editcap.o: editcap.c config.h getopt.h wiretap/wtap.h
file.o: file.c config.h gtk/gtkclist.h getopt.h epan/epan.h \
	epan/frame_data.h epan/column_info.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/dfilter/dfilter.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/filesystem.h gtk/main.h globals.h \
	file.h wiretap/wtap.h print.h epan/packet.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/packet_info.h \
	epan/column-utils.h epan/timestamp.h color.h gtk/color_utils.h \
	column.h menu.h util.h simple_dialog.h progress_dlg.h ui_util.h \
	statusbar.h prefs.h gtk/proto_draw.h gtk/packet_win.h \
	epan/conversation.h gtk/colors.h epan/epan_dissect.h
filters.o: filters.c config.h getopt.h epan/filesystem.h filters.h
follow.o: follow.c config.h getopt.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h follow.h
in_cksum.o: in_cksum.c config.h in_cksum.h
ipproto.o: ipproto.c config.h ipproto.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h packet-ip.h
mergecap.o: mergecap.c config.h getopt.h wiretap/wtap.h
packet-aarp.o: packet-aarp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h etypes.h
packet-afp.o: packet-afp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h epan/conversation.h \
	packet-afp.h
packet-afs.o: packet-afs.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h epan/resolv.h \
	packet-rx.h packet-afs.h packet-afs-defs.h packet-afs-macros.h \
	packet-afs-register-info.h
packet-aim.o: packet-aim.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-ajp13.o: packet-ajp13.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h packet-tcp.h
packet-aodv.o: packet-aodv.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-aodv6.o: packet-aodv6.c config.h epan/int-64bit.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/ipv6-utils.h
packet-arp.o: packet-arp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h epan/resolv.h \
	packet-arp.h etypes.h
packet-asap.o: packet-asap.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-ascend.o: packet-ascend.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-atalk.o: packet-atalk.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h etypes.h ppptypes.h aftypes.h \
	epan/atalk-utils.h epan/conversation.h prefs.h color.h \
	reassemble.h packet-afp.h
packet-atm.o: packet-atm.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h oui.h epan/resolv.h packet-atm.h \
	packet-snmp.h packet-eth.h packet-tr.h packet-llc.h
packet-auto_rp.o: packet-auto_rp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h
packet-bacapp.o: packet-bacapp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-bacnet.o: packet-bacnet.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-beep.o: packet-beep.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h prefs.h color.h \
	epan/conversation.h
packet-bgp.o: packet-bgp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-bgp.h packet-ipv6.h \
	epan/ipv6-utils.h afn.h prefs.h color.h
packet-bootp.o: packet-bootp.c config.h epan/int-64bit.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-arp.h
packet-bootparams.o: packet-bootparams.c config.h packet-rpc.h \
	epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-bootparams.h
packet-bpdu.o: packet-bpdu.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h llcsaps.h ppptypes.h epan/resolv.h
packet-bvlc.o: packet-bvlc.c config.h prefs.h color.h epan/strutil.h \
	epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h
packet-cdp.o: packet-cdp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h nlpid.h
packet-cgmp.o: packet-cgmp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-chdlc.o: packet-chdlc.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h etypes.h epan/resolv.h packet-chdlc.h \
	packet-ip.h
packet-clip.o: packet-clip.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-clip.h packet-ip.h
packet-clnp.o: packet-clnp.c config.h prefs.h color.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h reassemble.h packet-osi.h \
	epan/osi-utils.h packet-osi-options.h packet-isis.h \
	packet-esis.h nlpid.h
packet-cops.o: packet-cops.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ipv6.h epan/ipv6-utils.h \
	packet-tcp.h asn1.h format-oid.h prefs.h color.h
packet-cosine.o: packet-cosine.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-cpha.o: packet-cpha.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h
packet-cups.o: packet-cups.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-data.o: packet-data.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-data.h
packet-dccp.o: packet-dccp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-dccp.h
packet-dcerpc-browser.o: packet-dcerpc-browser.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-browser.h packet-dcerpc-nt.h \
	smb.h
packet-dcerpc-conv.o: packet-dcerpc-conv.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h
packet-dcerpc-dfs.o: packet-dcerpc-dfs.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-dfs.h
packet-dcerpc-epm.o: packet-dcerpc-epm.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h
packet-dcerpc-lsa.o: packet-dcerpc-lsa.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-nt.h packet-dcerpc-lsa.h \
	packet-smb-common.h smb.h alignment.h
packet-dcerpc-mapi.o: packet-dcerpc-mapi.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-nt.h packet-dcerpc-mapi.h \
	smb.h prefs.h color.h
packet-dcerpc-mgmt.o: packet-dcerpc-mgmt.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h
packet-dcerpc-ndr.o: packet-dcerpc-ndr.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h
packet-dcerpc-netlogon.o: packet-dcerpc-netlogon.c config.h \
	epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-nt.h packet-dcerpc-netlogon.h \
	smb.h packet-smb-common.h alignment.h packet-dcerpc-lsa.h
packet-dcerpc-nspi.o: packet-dcerpc-nspi.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h
packet-dcerpc-nt.o: packet-dcerpc-nt.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-nt.h smb.h \
	packet-smb-common.h alignment.h
packet-dcerpc-oxid.o: packet-dcerpc-oxid.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h
packet-dcerpc-reg.o: packet-dcerpc-reg.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-nt.h packet-dcerpc-reg.h \
	smb.h
packet-dcerpc-remact.o: packet-dcerpc-remact.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h
packet-dcerpc-samr.o: packet-dcerpc-samr.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-nt.h packet-dcerpc-samr.h \
	packet-dcerpc-lsa.h smb.h packet-smb-common.h alignment.h
packet-dcerpc-spoolss.o: packet-dcerpc-spoolss.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-nt.h packet-dcerpc-spoolss.h \
	packet-dcerpc-reg.h smb.h packet-smb-common.h alignment.h
packet-dcerpc-srvsvc.o: packet-dcerpc-srvsvc.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-srvsvc.h packet-dcerpc-lsa.h \
	packet-dcerpc-nt.h packet-smb-common.h smb.h alignment.h
packet-dcerpc-tapi.o: packet-dcerpc-tapi.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-nt.h packet-dcerpc-tapi.h \
	smb.h
packet-dcerpc-wkssvc.o: packet-dcerpc-wkssvc.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-dcerpc.h \
	epan/conversation.h packet-dcerpc-wkssvc.h
packet-dcerpc.o: packet-dcerpc.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-dcerpc.h epan/conversation.h \
	prefs.h color.h reassemble.h
packet-ddtp.o: packet-ddtp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ddtp.h
packet-dec-bpdu.o: packet-dec-bpdu.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/resolv.h etypes.h \
	ppptypes.h
packet-dhcpv6.o: packet-dhcpv6.c config.h epan/int-64bit.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/ipv6-utils.h
packet-diameter.o: packet-diameter.c config.h epan/filesystem.h \
	xmlstub.h epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/resolv.h prefs.h \
	color.h packet-diameter-defs.h
packet-dlsw.o: packet-dlsw.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-dns.o: packet-dns.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h epan/resolv.h packet-dns.h \
	packet-tcp.h prefs.h color.h
packet-dsi.o: packet-dsi.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h packet-tcp.h \
	packet-afp.h
packet-dvmrp.o: packet-dvmrp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h packet-igmp.h packet-dvmrp.h
packet-eap.o: packet-eap.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h ppptypes.h \
	reassemble.h
packet-eapol.o: packet-eapol.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ieee8023.h packet-ipx.h \
	packet-llc.h etypes.h
packet-eigrp.o: packet-eigrp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h epan/atalk-utils.h \
	ipproto.h packet-ipx.h
packet-esis.o: packet-esis.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h nlpid.h packet-osi.h epan/osi-utils.h \
	packet-osi-options.h packet-esis.h
packet-eth.o: packet-eth.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h etypes.h epan/resolv.h \
	packet-eth.h packet-ieee8023.h packet-ipx.h packet-isl.h \
	packet-llc.h
packet-ethertype.o: packet-ethertype.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-ip.h packet-ipx.h \
	packet-vlan.h packet-vines.h etypes.h ppptypes.h
packet-fddi.o: packet-fddi.c config.h epan/bitswap.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-fddi.h packet-llc.h \
	epan/resolv.h
packet-fr.o: packet-fr.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-osi.h epan/osi-utils.h \
	packet-llc.h packet-chdlc.h xdlc.h etypes.h oui.h nlpid.h \
	greproto.h epan/conversation.h
packet-frame.o: packet-frame.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/timestamp.h packet-frame.h prefs.h \
	color.h
packet-ftp.o: packet-ftp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h epan/conversation.h
packet-fw1.o: packet-fw1.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h etypes.h
packet-giop.o: packet-giop.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-giop.h
packet-gmrp.o: packet-gmrp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h llcsaps.h
packet-gnutella.o: packet-gnutella.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-gnutella.h
packet-gre.o: packet-gre.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-wccp.h in_cksum.h etypes.h \
	greproto.h ipproto.h
packet-gtp.o: packet-gtp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ipv6.h epan/ipv6-utils.h \
	ppptypes.h prefs.h color.h
packet-gvrp.o: packet-gvrp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h llcsaps.h
packet-h1.o: packet-h1.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-h261.o: packet-h261.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-hclnfsd.o: packet-hclnfsd.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-nfs.h packet-hclnfsd.h
packet-hsrp.o: packet-hsrp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-http.o: packet-http.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h packet-http.h
packet-iapp.o: packet-iapp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h oui.h
packet-icap.o: packet-icap.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-icmpv6.o: packet-icmpv6.c config.h getopt.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-ipv6.h \
	epan/ipv6-utils.h packet-dns.h in_cksum.h epan/resolv.h \
	ipproto.h
packet-icp.o: packet-icp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h
packet-icq.o: packet-icq.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h
packet-ieee80211.o: packet-ieee80211.c config.h epan/bitswap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/packet.h wiretap/wtap.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/resolv.h prefs.h \
	color.h reassemble.h packet-ipx.h packet-llc.h \
	packet-ieee80211.h etypes.h
packet-ieee8023.o: packet-ieee8023.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-ieee8023.h
packet-igmp.o: packet-igmp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h in_cksum.h packet-dvmrp.h \
	packet-pim.h packet-mrdisc.h packet-msnip.h
packet-igrp.o: packet-igrp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h
packet-imap.o: packet-imap.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-ip.o: packet-ip.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h ipproto.h prefs.h color.h \
	reassemble.h etypes.h greproto.h ppptypes.h llcsaps.h aftypes.h \
	packet-ip.h packet-ipsec.h in_cksum.h nlpid.h
packet-ipp.o: packet-ipp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h packet-http.h
packet-ipsec.o: packet-ipsec.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ipsec.h packet-ip.h epan/resolv.h \
	ipproto.h prefs.h color.h
packet-ipv6.o: packet-ipv6.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ip.h packet-ipsec.h packet-ipv6.h \
	epan/ipv6-utils.h epan/resolv.h prefs.h color.h reassemble.h \
	ipproto.h etypes.h ppptypes.h aftypes.h nlpid.h
packet-ipx.o: packet-ipx.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ipx.h epan/resolv.h etypes.h \
	ppptypes.h llcsaps.h aftypes.h
packet-irc.o: packet-irc.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-isakmp.o: packet-isakmp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h
packet-iscsi.o: packet-iscsi.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h epan/conversation.h \
	packet-scsi.h
packet-isis-clv.o: packet-isis-clv.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-osi.h \
	epan/osi-utils.h packet-isis.h packet-isis-clv.h nlpid.h
packet-isis-hello.o: packet-isis-hello.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-osi.h \
	epan/osi-utils.h packet-isis.h packet-isis-clv.h \
	packet-isis-hello.h epan/resolv.h
packet-isis-lsp.o: packet-isis-lsp.c config.h epan/ipv4.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-osi.h epan/osi-utils.h \
	packet-ipv6.h epan/ipv6-utils.h packet-isis.h packet-isis-clv.h \
	packet-isis-lsp.h epan/resolv.h
packet-isis-snp.o: packet-isis-snp.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-osi.h \
	epan/osi-utils.h packet-isis.h packet-isis-clv.h \
	packet-isis-lsp.h packet-isis-snp.h
packet-isis.o: packet-isis.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h nlpid.h packet-osi.h epan/osi-utils.h \
	packet-isis.h packet-isis-lsp.h packet-isis-hello.h \
	packet-isis-snp.h
packet-isl.o: packet-isl.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-isl.h packet-eth.h packet-tr.h \
	etypes.h
packet-isup.o: packet-isup.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ip.h
packet-iua.o: packet-iua.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h
packet-kerberos.o: packet-kerberos.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/strutil.h asn1.h
packet-klm.o: packet-klm.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-nfs.h packet-klm.h
packet-l2tp.o: packet-l2tp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h
packet-lapb.o: packet-lapb.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h xdlc.h
packet-lapbether.o: packet-lapbether.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h etypes.h
packet-lapd.o: packet-lapd.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h xdlc.h
packet-ldap.o: packet-ldap.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ldap.h asn1.h prefs.h color.h
packet-ldp.o: packet-ldp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h prefs.h color.h afn.h \
	packet-frame.h
packet-llc.o: packet-llc.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h oui.h xdlc.h etypes.h llcsaps.h \
	bridged_pids.h ppptypes.h packet-ip.h packet-ipx.h \
	packet-netbios.h epan/sna-utils.h packet-llc.h
packet-lmi.o: packet-lmi.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h nlpid.h
packet-lmp.o: packet-lmp.c config.h getopt.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h in_cksum.h etypes.h \
	ipproto.h packet-ip.h packet-rsvp.h packet-frame.h
packet-lpd.o: packet-lpd.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-m2pa.o: packet-m2pa.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-m2tp.o: packet-m2tp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-m2ua.o: packet-m2ua.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-m3ua.o: packet-m3ua.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h
packet-mbtcp.o: packet-mbtcp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-mip.o: packet-mip.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-mmse.o: packet-mmse.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-wap.h packet-wsp.h
packet-mount.o: packet-mount.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-mount.h packet-nfs.h
packet-mpeg1.o: packet-mpeg1.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-mpls.o: packet-mpls.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ppptypes.h etypes.h
packet-mrdisc.o: packet-mrdisc.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-igmp.h packet-mrdisc.h
packet-msdp.o: packet-msdp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-msnip.o: packet-msnip.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-igmp.h packet-msnip.h
packet-msproxy.o: packet-msproxy.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h alignment.h \
	epan/conversation.h packet-tcp.h packet-udp.h
packet-mtp2.o: packet-mtp2.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-mtp3.o: packet-mtp3.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h packet-mtp3.h
packet-nbipx.o: packet-nbipx.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ipx.h packet-netbios.h
packet-nbns.o: packet-nbns.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-dns.h packet-netbios.h \
	packet-tcp.h packet-frame.h prefs.h color.h
packet-ncp.o: packet-ncp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h prefs.h color.h \
	packet-ipx.h packet-tcp.h packet-ncp-int.h
packet-ncp2222.o: packet-ncp2222.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h ptvcursor.h \
	packet-ncp-int.h packet-ncp2222.inc
packet-ndmp.o: packet-ndmp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h packet-rpc.h \
	packet-scsi.h packet-frame.h prefs.h color.h reassemble.h \
	rpc_defrag.h
packet-netbios.o: packet-netbios.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h llcsaps.h packet-tr.h packet-netbios.h
packet-nfs.o: packet-nfs.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-nfs.h prefs.h color.h
packet-nfsacl.o: packet-nfsacl.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h
packet-nfsauth.o: packet-nfsauth.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h
packet-nisplus.o: packet-nisplus.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-nisplus.h
packet-nlm.o: packet-nlm.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-nfs.h packet-nlm.h prefs.h color.h
packet-nntp.o: packet-nntp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-ntlmssp.o: packet-ntlmssp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-smb-common.h epan/conversation.h \
	smb.h alignment.h
packet-ntp.o: packet-ntp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h packet-ntp.h
packet-null.o: packet-null.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-null.h epan/atalk-utils.h \
	packet-ip.h packet-ipx.h packet-osi.h epan/osi-utils.h \
	packet-ppp.h etypes.h aftypes.h
packet-osi-options.o: packet-osi-options.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h nlpid.h packet-osi.h \
	epan/osi-utils.h packet-isis.h packet-isis-clv.h \
	packet-isis-hello.h packet-isis-lsp.h packet-isis-snp.h \
	packet-esis.h packet-osi-options.h
packet-osi.o: packet-osi.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h llcsaps.h aftypes.h nlpid.h ppptypes.h \
	packet-osi.h epan/osi-utils.h packet-isis.h packet-esis.h
packet-ospf.o: packet-ospf.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h in_cksum.h packet-rsvp.h
packet-pcnfsd.o: packet-pcnfsd.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-pcnfsd.h
packet-pflog.o: packet-pflog.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h etypes.h epan/resolv.h packet-ip.h \
	packet-ipv6.h epan/ipv6-utils.h packet-pflog.h
packet-pgm.o: packet-pgm.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h afn.h ipproto.h epan/resolv.h \
	epan/strutil.h epan/conversation.h prefs.h color.h
packet-pim.o: packet-pim.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h afn.h packet-ipv6.h \
	epan/ipv6-utils.h in_cksum.h
packet-pop.o: packet-pop.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-portmap.o: packet-portmap.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-portmap.h ipproto.h
packet-ppp.o: packet-ppp.c config.h prefs.h color.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h packet-ppp.h ppptypes.h \
	etypes.h epan/atalk-utils.h packet-chdlc.h packet-ip.h \
	packet-ipx.h packet-vines.h nlpid.h
packet-pppoe.o: packet-pppoe.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h etypes.h
packet-pptp.o: packet-pptp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-prism.o: packet-prism.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ieee80211.h packet-prism.h
packet-q2931.o: packet-q2931.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h oui.h nlpid.h etypes.h packet-q931.h \
	packet-arp.h
packet-q931.o: packet-q931.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h nlpid.h packet-q931.h \
	prefs.h color.h packet-tpkt.h
packet-qllc.o: packet-qllc.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-quake.o: packet-quake.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h prefs.h color.h
packet-quake2.o: packet-quake2.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h
packet-quake3.o: packet-quake3.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h epan/resolv.h
packet-quakeworld.o: packet-quakeworld.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h prefs.h color.h
packet-radius.o: packet-radius.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h packet-q931.h
packet-ranap.o: packet-ranap.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-raw.o: packet-raw.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-raw.h packet-ip.h packet-ppp.h
packet-rip.o: packet-rip.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-ripng.o: packet-ripng.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ripng.h globals.h file.h print.h \
	epan/timestamp.h packet-ipv6.h epan/ipv6-utils.h
packet-rlogin.o: packet-rlogin.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h packet-tcp.h
packet-rmi.o: packet-rmi.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h packet-rmi.h
packet-rpc.o: packet-rpc.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h packet-rpc.h \
	packet-frame.h packet-tcp.h prefs.h color.h reassemble.h \
	rpc_defrag.h packet-nfs.h
packet-rquota.o: packet-rquota.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-rquota.h
packet-rsh.o: packet-rsh.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-rstat.o: packet-rstat.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h
packet-rsvp.o: packet-rsvp.c config.h getopt.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h in_cksum.h etypes.h \
	ipproto.h packet-rsvp.h packet-ip.h packet-frame.h
packet-rtcp.o: packet-rtcp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-rtcp.h epan/conversation.h
packet-rtp.o: packet-rtp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-rtp.h epan/conversation.h
packet-rtsp.o: packet-rtsp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-rtp.h packet-rtcp.h \
	epan/conversation.h epan/strutil.h
packet-rwall.o: packet-rwall.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-rwall.h
packet-rx.o: packet-rx.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-rx.h epan/resolv.h
packet-sadmind.o: packet-sadmind.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h
packet-sap.o: packet-sap.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ipv6.h epan/ipv6-utils.h
packet-sccp.o: packet-sccp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-mtp3.h
packet-scsi.o: packet-scsi.c config.h epan/strutil.h epan/conversation.h \
	epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/int-64bit.h prefs.h \
	color.h packet-scsi.h
packet-sctp.o: packet-sctp.c config.h prefs.h color.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h ipproto.h
packet-sdp.o: packet-sdp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-sip.o: packet-sip.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-skinny.o: packet-skinny.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h packet-tcp.h
packet-slimp3.o: packet-slimp3.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-sll.o: packet-sll.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-sll.h packet-ipx.h packet-llc.h \
	epan/resolv.h etypes.h
packet-slowprotocols.o: packet-slowprotocols.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h etypes.h llcsaps.h \
	ppptypes.h epan/resolv.h
packet-smb-browse.o: packet-smb-browse.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h smb.h \
	alignment.h packet-smb-browse.h
packet-smb-common.o: packet-smb-common.c packet-smb-common.h config.h \
	epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h smb.h \
	alignment.h
packet-smb-logon.o: packet-smb-logon.c packet-smb-common.h config.h \
	epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h smb.h \
	alignment.h packet-smb-logon.h
packet-smb-mailslot.o: packet-smb-mailslot.c packet-smb-common.h \
	config.h epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h smb.h \
	alignment.h packet-smb-mailslot.h packet-smb-browse.h \
	packet-smb-logon.h packet-smb-pipe.h
packet-smb-pipe.o: packet-smb-pipe.c config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h smb.h \
	packet-smb-pipe.h packet-smb-browse.h packet-smb-common.h \
	alignment.h packet-dcerpc.h reassemble.h
packet-smb.o: packet-smb.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h smb.h alignment.h \
	epan/strutil.h prefs.h color.h reassemble.h packet-smb-common.h \
	packet-smb-mailslot.h packet-smb-pipe.h
packet-smpp.o: packet-smpp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-smtp.o: packet-smtp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h epan/resolv.h \
	prefs.h color.h epan/strutil.h
packet-sna.o: packet-sna.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h llcsaps.h ppptypes.h epan/sna-utils.h
packet-snaeth.o: packet-snaeth.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h etypes.h
packet-snmp.o: packet-snmp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h epan/conversation.h \
	etypes.h packet-ipx.h asn1.h packet-snmp.h format-oid.h
packet-socks.o: packet-socks.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h alignment.h \
	epan/conversation.h packet-tcp.h packet-udp.h epan/strutil.h
packet-spray.o: packet-spray.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-spray.h
packet-srvloc.o: packet-srvloc.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-sscop.o: packet-sscop.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-ssl.o: packet-ssl.c config.h epan/conversation.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h prefs.h color.h
packet-stat-notify.o: packet-stat-notify.c config.h packet-rpc.h \
	epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-stat-notify.h
packet-stat.o: packet-stat.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-stat.h
packet-sua.o: packet-sua.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h prefs.h color.h
packet-syslog.o: packet-syslog.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-tacacs.o: packet-tacacs.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-tcp.o: packet-tcp.c config.h in_cksum.h epan/resolv.h ipproto.h \
	follow.h epan/packet.h wiretap/wtap.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h prefs.h color.h packet-tcp.h \
	packet-ip.h packet-frame.h epan/conversation.h epan/strutil.h \
	reassemble.h
packet-tds.o: packet-tds.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h
packet-telnet.o: packet-telnet.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h
packet-tftp.o: packet-tftp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h
packet-time.o: packet-time.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-tns.o: packet-tns.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-tcp.h packet-tns.h prefs.h \
	color.h
packet-tpkt.o: packet-tpkt.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-tpkt.h packet-frame.h prefs.h \
	color.h
packet-tr.o: packet-tr.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-tr.h packet-llc.h
packet-trmac.o: packet-trmac.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-frame.h
packet-tsp.o: packet-tsp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-ucp.o: packet-ucp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-udp.o: packet-udp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/resolv.h ipproto.h in_cksum.h \
	prefs.h color.h packet-udp.h packet-ip.h epan/conversation.h
packet-v120.o: packet-v120.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h xdlc.h
packet-vines.o: packet-vines.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-vines.h etypes.h ppptypes.h \
	ipproto.h
packet-vj.o: packet-vj.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ppp.h ppptypes.h ipproto.h \
	in_cksum.h
packet-vlan.o: packet-vlan.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-ieee8023.h packet-ipx.h \
	packet-llc.h packet-vlan.h etypes.h
packet-vrrp.o: packet-vrrp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h ipproto.h in_cksum.h
packet-vtp.o: packet-vtp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-wap.o: packet-wap.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-wap.h
packet-wccp.o: packet-wccp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/strutil.h packet-wccp.h
packet-wcp.o: packet-wcp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-frame.h epan/conversation.h \
	etypes.h nlpid.h
packet-who.o: packet-who.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-wsp.o: packet-wsp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/ipv6-utils.h epan/conversation.h \
	packet-wap.h packet-wsp.h
packet-wtls.o: packet-wtls.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-wap.h packet-wtls.h
packet-wtp.o: packet-wtp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h reassemble.h packet-wap.h packet-wtp.h \
	packet-wsp.h
packet-x11.o: packet-x11.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h prefs.h color.h \
	packet-frame.h x11-declarations.h packet-x11-keysym.h \
	x11-register-info.h
packet-x25.o: packet-x25.c config.h llcsaps.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h prefs.h color.h nlpid.h \
	x264_prt_id.h
packet-xdmcp.o: packet-xdmcp.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
packet-xot.o: packet-xot.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-frame.h prefs.h color.h
packet-xyplex.o: packet-xyplex.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h epan/conversation.h
packet-yhoo.o: packet-yhoo.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h packet-yhoo.h
packet-ypbind.o: packet-ypbind.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-ypbind.h
packet-yppasswd.o: packet-yppasswd.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-yppasswd.h
packet-ypserv.o: packet-ypserv.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-ypserv.h
packet-ypxfr.o: packet-ypxfr.c config.h packet-rpc.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h epan/conversation.h \
	packet-ypxfr.h
packet-zebra.o: packet-zebra.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h
pcap-util.o: pcap-util.c config.h getopt.h globals.h file.h \
	wiretap/wtap.h epan/dfilter/dfilter.h epan/epan.h \
	epan/frame_data.h epan/column_info.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	print.h epan/packet.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/packet_info.h epan/column-utils.h \
	epan/timestamp.h pcap-util.h
prefs.o: prefs.c config.h getopt.h epan/filesystem.h globals.h file.h \
	wiretap/wtap.h epan/dfilter/dfilter.h epan/epan.h \
	epan/frame_data.h epan/column_info.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	print.h epan/packet.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/packet_info.h epan/column-utils.h \
	epan/timestamp.h epan/resolv.h prefs.h color.h column.h \
	prefs-int.h
print.o: print.c config.h epan/epan.h epan/frame_data.h \
	epan/column_info.h epan/tvbuff.h epan/exceptions.h \
	epan/except.h epan/dfilter/dfilter.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	epan/epan_dissect.h epan/packet_info.h epan/packet.h \
	wiretap/wtap.h epan/pint.h epan/to_str.h epan/value_string.h \
	epan/column-utils.h print.h ps.h util.h packet-data.h
proto_hier_stats.o: proto_hier_stats.c config.h globals.h file.h \
	wiretap/wtap.h epan/dfilter/dfilter.h epan/epan.h \
	epan/frame_data.h epan/column_info.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	print.h epan/packet.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/packet_info.h epan/column-utils.h \
	epan/timestamp.h proto_hier_stats.h progress_dlg.h \
	epan/epan_dissect.h
ps.o: ps.c ps.h
ptvcursor.o: ptvcursor.c ptvcursor.h config.h epan/packet.h \
	wiretap/wtap.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/tvbuff.h epan/exceptions.h epan/except.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h epan/pint.h \
	epan/to_str.h epan/value_string.h epan/column_info.h \
	epan/frame_data.h epan/packet_info.h epan/column-utils.h \
	epan/epan.h epan/dfilter/dfilter.h
reassemble.o: reassemble.c config.h epan/packet.h wiretap/wtap.h \
	epan/proto.h epan/ipv4.h epan/nstime.h epan/tvbuff.h \
	epan/exceptions.h epan/except.h epan/ftypes/ftypes.h \
	epan/dfilter/drange.h epan/pint.h epan/to_str.h \
	epan/value_string.h epan/column_info.h epan/frame_data.h \
	epan/packet_info.h epan/column-utils.h epan/epan.h \
	epan/dfilter/dfilter.h reassemble.h
register.o: register.c register.h
ringbuffer.o: ringbuffer.c config.h getopt.h wiretap/wtap.h ringbuffer.h \
	file.h epan/dfilter/dfilter.h epan/epan.h epan/frame_data.h \
	epan/column_info.h epan/tvbuff.h epan/exceptions.h \
	epan/except.h epan/proto.h epan/ipv4.h epan/nstime.h \
	epan/ftypes/ftypes.h epan/dfilter/drange.h print.h \
	epan/packet.h epan/pint.h epan/to_str.h epan/value_string.h \
	epan/packet_info.h epan/column-utils.h
summary.o: summary.c config.h epan/packet.h wiretap/wtap.h epan/proto.h \
	epan/ipv4.h epan/nstime.h epan/tvbuff.h epan/exceptions.h \
	epan/except.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	epan/pint.h epan/to_str.h epan/value_string.h \
	epan/column_info.h epan/frame_data.h epan/packet_info.h \
	epan/column-utils.h epan/epan.h epan/dfilter/dfilter.h \
	globals.h file.h print.h epan/timestamp.h summary.h
tethereal.o: tethereal.c config.h getopt.h epan/epan.h epan/frame_data.h \
	epan/column_info.h epan/tvbuff.h epan/exceptions.h \
	epan/except.h epan/dfilter/dfilter.h epan/proto.h epan/ipv4.h \
	epan/nstime.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	epan/filesystem.h globals.h file.h wiretap/wtap.h print.h \
	epan/packet.h epan/pint.h epan/to_str.h epan/value_string.h \
	epan/packet_info.h epan/column-utils.h epan/timestamp.h prefs.h \
	color.h column.h epan/resolv.h util.h pcap-util.h \
	epan/conversation.h epan/plugins.h register.h conditions.h \
	capture_stop_conditions.h ringbuffer.h epan/epan_dissect.h \
	wiretap/wtap-capture.h
text2pcap-scanner.o: text2pcap-scanner.c text2pcap.h
text2pcap.o: text2pcap.c config.h getopt.h text2pcap.h
util.o: util.c config.h getopt.h util.h
xdlc.o: xdlc.c config.h epan/packet.h wiretap/wtap.h epan/proto.h \
	epan/ipv4.h epan/nstime.h epan/tvbuff.h epan/exceptions.h \
	epan/except.h epan/ftypes/ftypes.h epan/dfilter/drange.h \
	epan/pint.h epan/to_str.h epan/value_string.h \
	epan/column_info.h epan/frame_data.h epan/packet_info.h \
	epan/column-utils.h epan/epan.h epan/dfilter/dfilter.h xdlc.h
xmlstub.o: xmlstub.c xmlstub.h config.h

info-am:
info: info-recursive
dvi-am:
dvi: dvi-recursive
check-am: all-am
check: check-recursive
installcheck-am:
installcheck: installcheck-recursive
all-recursive-am: config.h
	$(MAKE) $(AM_MAKEFLAGS) all-recursive

install-exec-am: install-binPROGRAMS install-binSCRIPTS \
		install-sysconfDATA
	@$(NORMAL_INSTALL)
	$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
install-exec: install-exec-recursive

install-data-am: install-man install-diameterDATA
install-data: install-data-recursive

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-man \
		uninstall-diameterDATA uninstall-sysconfDATA
uninstall: uninstall-recursive
all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) $(HEADERS) \
		config.h
all-redirect: all-recursive-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs: installdirs-recursive
installdirs-am:
	$(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(bindir) \
		$(DESTDIR)$(mandir)/man1 $(DESTDIR)$(diameterdir) \
		$(DESTDIR)$(sysconfdir)


mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-rm -f Makefile $(CONFIG_CLEAN_FILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)

maintainer-clean-generic:
	-test -z "text2pcap-scannerl$(BUILT_SOURCES)" || rm -f text2pcap-scannerl $(BUILT_SOURCES)
mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
		mostlyclean-compile mostlyclean-libtool \
		mostlyclean-tags mostlyclean-generic

mostlyclean: mostlyclean-recursive

clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-libtool \
		clean-tags clean-generic mostlyclean-am clean-local

clean: clean-recursive

distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
		distclean-libtool distclean-tags distclean-generic \
		clean-am
	-rm -f libtool

distclean: distclean-recursive
	-rm -f config.status

maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
		maintainer-clean-compile maintainer-clean-libtool \
		maintainer-clean-tags maintainer-clean-generic \
		distclean-am
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

maintainer-clean: maintainer-clean-recursive
	-rm -f config.status

.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool uninstall-binSCRIPTS \
install-binSCRIPTS install-man1 uninstall-man1 install-man \
uninstall-man uninstall-diameterDATA install-diameterDATA \
uninstall-sysconfDATA install-sysconfDATA install-data-recursive \
uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
install-exec-am install-exec install-data-am install-data install-am \
install uninstall-am uninstall all-redirect all-am all installdirs-am \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean


#
# Build various header files for the X11 dissector.
#
x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
	$(PERL) $(srcdir)/process-x11-fields.pl <$(srcdir)/x11-fields
.sh:
	rm -f $@ $@.tmp
	$(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@

#
# Build "register.c", which contains a function "register_all_protocols()"
# that calls the register routines for all protocols.
#
# We do this by grepping through sources.  If that turns out to be too slow,
# maybe we could just require every .o file to have an register routine
# of a given name (packet-aarp.o -> proto_register_aarp, etc.).
#
# Formatting conventions:  The name of the proto_register_* routines must
# start in column zero, or must be preceded only by "void " starting in
# column zero, and must not be inside #if.
#
# We assume that all dissector routines are in "packet-XXX.c" files.
#
# For some unknown reason, having a big "for" loop in the Makefile
# to scan all the "packet-XXX.c" files doesn't work with some "make"s;
# they seem to pass only the first few names in the list to the shell,
# for some reason.
#
# Therefore, we have a script to generate the "register.c" file.
#
# The first argument is the directory in which the source files live.
# All subsequent arguments are the files to scan.
#
register.c: $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
	@echo Making register.c
	@$(srcdir)/make-reg-dotc register.c $(srcdir) $(DISSECTOR_SRC)

register-static.c: $(plugin_src) $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
	@echo Making register-static.c
	@$(srcdir)/make-reg-dotc register-static.c $(srcdir) $(plugin_src) $(DISSECTOR_SRC)

ps.c: print.ps rdps
	./rdps $(srcdir)/print.ps ps.c

rdps: rdps.c
	$(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c

randpkt.o: randpkt.c
	$(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c

randpkt: randpkt.o wiretap/libwiretap.a
	$(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz

@SETUID_INSTALL_TRUE@install-exec-hook:
@SETUID_INSTALL_TRUE@	-chmod +s $(DESTDIR)$(bindir)/ethereal
@SETUID_INSTALL_TRUE@	-chmod +s $(DESTDIR)$(bindir)/tethereal
@SETUID_INSTALL_TRUE@	-chmod +s $(DESTDIR)$(bindir)/ethereal_static
@SETUID_INSTALL_FALSE@install-exec-hook:

ethereal.1: ethereal doc/ethereal.pod.template
	(cd doc ; \
	$(MAKE) ../ethereal.1 )

tethereal.1: tethereal doc/tethereal.pod.template
	(cd doc ; \
	$(MAKE) ../tethereal.1 )

editcap.1: doc/editcap.pod
	(cd doc ; \
	$(MAKE) ../editcap.1 )

idl2eth.1: doc/idl2eth.pod
	(cd doc ; \
	$(MAKE) ../idl2eth.1 )

mergecap.1: doc/mergecap.pod
	(cd doc ; \
	$(MAKE) ../mergecap.1 )

text2pcap.1: doc/text2pcap.pod
	(cd doc ; \
	$(MAKE) ../text2pcap.1 )

packet-ncp2222.c : ncp2222.py
	$(PYTHON) $(srcdir)/ncp2222.py -o $@

libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status --recheck

svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
	if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
		rm -rf $(stagedir) ; \
		$(MAKE) DESTDIR=$(stagedir) install; \
		$(srcdir)/packaging/svr4/mkpkg \
			$(PACKAGE) \
			$(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
			$(prefix) \
			$(top_stagedir) ; \
	else \
		echo "Error: SVR4 packaging tools not found." ; \
		echo "Package build abandoned." ; \
	fi

solaris-package: svr4-package
rpm-package: dist
	if test x$(HAVE_RPM) = xyes ; then \
		cd $(rpm_topdir) ; \
		mkdir -p BUILD RPMS SOURCES ; \
		cd SOURCES ; \
		ln -s ../../../$(distdir).tar.gz ; \
		cd .. ; \
		rpm --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
			echo "Package successfully built in `pwd`/RPMS." ; \
	else \
		echo "Error: RPM executable and/or source directory not found." ; \
	fi
srpm-package: dist
	if test x$(HAVE_RPM) = xyes ; then \
		cd $(rpm_topdir) ; \
		mkdir -p BUILD SRPMS SOURCES ; \
		cd SOURCES ; \
		ln -s ../../../$(distdir).tar.gz ; \
		cd .. ; \
		rpm --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
			echo "Package successfully built in `pwd`/SRPMS." ; \
	else \
		echo "Error: RPM executable and/or source directory not found." ; \
	fi

debian-package: debian/rules
	dpkg-buildpackage -rfakeroot -us -uc

clean-local:
	rm -rf $(top_stagedir)

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif


#include "globals.h"
#include "com_stats.h"

#include <epan/epan_dissect.h>
#include <wtap.h>

#include <stdio.h>
#include <glib.h>

#include "ipproto.h"
#include <netinet/in.h>	/* ntohs(), IPPROTO_TCP */
#include <arpa/inet.h>	
#include <epan/proto.h>
#include "util.h"
#include <string.h>

/* Update the progress bar this many times when scanning the packet list. */
#define N_PROGBAR_UPDATES	100

#define STAT_NODE_STATS(n)   ((proto_stats_node *)(n)->data)   /* Casting to proto_stats_node for a certain GNode */ 
#define STAT_NODE_HFINFO(n)  (STAT_NODE_STATS(n)->hfinfo)      /* Get the header_field_info from a proto_stats_node stored in a GNode */ 
#define ABBREV(finfo)       (finfo->hfinfo->abbrev)            /* Get the protocol abbreviature from the header_field_info */ 
#define PCT(x,y) (100.0 * (float)(x) / (float)(y))             /* Percentadge (x/y) */
#define BRT(x,y) (((float)(x)) / ((float)(y)*1000))            /* Bit Rate : KBytes/sec */
#define PROTO_STRING 60
 /* Compares two address of the same kind and returns TRUE if addr1 < addr2 */ 
#define  ADDRESS_MINOR(addr1, addr2) \
         ((addr1)->type == (addr2)->type && \
	 (addr1)->len == (addr2)->len && \
	 memcmp((addr1)->data, (addr2)->data, (addr1)->len) < 0)

typedef struct {          /* Print Structure */
    com_stats_t *cs;      /* printing info */
    FILE   *output;       /* File Name */
} com_stats_print_t; 

typedef struct  {         /* TCP packet flags info */
    gint syn;             /* SYNCRONIZATION Flag */
    gint fin;             /* FIN CONNECTION Flag */
    gint ack;             /* ACKNOLEGE Flag */  
    gint rst;             /* RESET Flag */ 

} tcp_con_inf;

typedef struct {          /* TCP connection Length info */
    gint32   start_secs;  /* Relative seconds in witch a connection has started (relative to the capture start time) */
    gint32   start_usecs; /* Fractional part of time in micro-seconds in witch a connection has started */
    gint32   end_secs;    /* Relative second in witch a connection has finished */
    gint32   end_usecs;   /* Fractional part of time in micro-second in witch a connection has finished */
    gint32   last_ts_secs; /* time stamp seconds of the last packet arrived during the conection */
    gint32   last_ts_usecs; /* time stamp micro seconds of the last packet arrived during the conection */
    gint32   max_delay_secs; /* greater interpacket delay in seconds during the connection  */
    gint32   max_delay_usecs;/* greater interpacket delay in micro seconds during the connection  */
} tcp_length;


typedef struct {                           /* Protol Info */
    header_field_info	*hfinfo;           /* Protocol Header Info */
    guint		num_pkts_total;    /* Total packets sendend using the current protocol */
    guint		num_pkts_last;     /* Total packets sendend using the current protocol that doesn't encapsule another protocol of higher level */
    guint		num_bytes_total;   /* Total bytes sendend using the current protocol */
    guint		num_bytes_last;    /* Total bytes sendend using the current protocol that doesn't encapsule another protocol of higher level */
} proto_stats_node;

enum {                    /* TCP connectin status */  
    NONE,                 /* Not Initializated */ 
    CON_REQ,              /* Packet with SYN flag captured */ 
    CON_ACP,              /* Reponse SYN,ACK captured */
    CONNECT,              /* Connection stablished. Ready for infortion exchange */
    FIN_REQ,                  /* Packet with FIN flag captured */
    FINISH,               /* Connection Finished */ 
    RESET                 /* Packet with RST flag captured. Connection Reseted */
};

typedef struct {          /* TCP connection info */
    
    gint attempts;        /* Number of TCP packects captured with the SYN flag active */
    gint status;          /* Actual status of the connection */ 
    tcp_con_inf *tci;      
    tcp_length  *tl;      /* Connection length */
    
} tcp_connection;

typedef struct {             /* This structure stores all the info for one Communication */ 
    guint     tot_packets;   /* Total packets exchanged */
    guint32   tot_bytes;     /* Total bytes exchanged */

    address   net_src;       /* IP Source Address */ 
    address   net_dst;       /* IP Destination Address */
    
    guint32   srcport;       /* Source port */
    guint32   destport;      /* Destination port */
    
    guint     ipproto;       /* IP Protocol */ 
    
    tcp_connection   *tcp_con; /* TCP info (only used if the communication is a TCP connection ) */ 

} communication;
 


/*-------------------------------------- PROTOCOL STATS AUXILIAR FUNCTIONS ------------------------------*/
static GNode*
find_stat_node(GNode *parent_stat_node, header_field_info *needle_hfinfo)
{
/* Search if there is already a node created that stores the information about the protocol
currently disserted */ 
	GNode			*needle_stat_node;
	header_field_info	*hfinfo;


	needle_stat_node = g_node_first_child(parent_stat_node);

	while (needle_stat_node) {
		hfinfo = STAT_NODE_HFINFO(needle_stat_node);
		
		if (hfinfo &&  hfinfo->id == needle_hfinfo->id) {
		    return needle_stat_node;
		}
		needle_stat_node = g_node_next_sibling(needle_stat_node);
	}
	return NULL;
}

static GNode*
new_stat_node (GNode *parent_stat_node, header_field_info *needle_hfinfo) 
{
/* The function find_stat_node didn't found a the for the current protocol.
We have to create a new and insert it under his parent node in the tree structure. */

        GNode			*needle_stat_node;
	proto_stats_node        *proto_stats;

	
	proto_stats = g_new(proto_stats_node, 1);

	/* Intialize counters */
	proto_stats->hfinfo = needle_hfinfo;
	proto_stats->num_pkts_total = 0;

	proto_stats->num_pkts_last = 0;
	proto_stats->num_bytes_total = 0;
	proto_stats->num_bytes_last = 0;

	needle_stat_node = g_node_new(proto_stats);
	g_node_append(parent_stat_node, needle_stat_node);
	return needle_stat_node;
}

static void
process_node(proto_item *ptree_node, GNode *parent_stat_node, com_stats_t *ps, guint pkt_len, proto_item **tcp_node )
{
    /* Update protocol info */  

	field_info		*finfo;
	proto_stats_node	*proto_stats;
	proto_item		*proto_sibling_node;
	GNode			*stat_node;
 
	/* Get the header info from the current packet */
	finfo = PITEM_FINFO(ptree_node);
	g_assert(finfo);
	
	/* find out if there is already a node in the tree that hold the statistical info of the current protocol */
	stat_node = find_stat_node(parent_stat_node, finfo->hfinfo);

        if (!stat_node) 
	    /* There is not already a node -> create a new one */
            stat_node = new_stat_node(parent_stat_node, finfo->hfinfo);
   
	/* Assert that the finfo is related to a protocol, not a field.*/ 
	  g_assert(finfo->hfinfo->parent == -1); 

        /* Update statistical info of the current protocol */ 
	proto_stats = STAT_NODE_STATS(stat_node);
	proto_stats->num_pkts_total++;
	proto_stats->num_bytes_total += pkt_len;
	
	/* This part deals with the communication analysis. If the field info is related to the TCP protocol 
	   we keep the poiter to the current node */   
	if (strcmp("tcp",ABBREV(finfo))==0) {
	     /* Get the pointer to a TCP node in order to obtain the flags of the connection later on */  
	    *tcp_node=ptree_node;
        }

	/* Get the next sibling node in the tree */ 
	proto_sibling_node = g_node_next_sibling(ptree_node);
	
	/* if we there is a sibling node we must process it */
	if (proto_sibling_node) {

		process_node(proto_sibling_node, stat_node, ps, pkt_len,tcp_node);
	}
	else { /* else we update the statistical info and exit */ 
		proto_stats->num_pkts_last++;
		proto_stats->num_bytes_last += pkt_len;
	}
}


static gboolean
stat_node_free(GNode *node, gpointer data)
{
/* This function frees the memory allocated for protocol analysis */
	proto_stats_node   *stats = node->data;
	
	if (stats) {
		g_free(stats);
	}
	return FALSE;
}

static gboolean
stat_node_print(GNode *node, gpointer data)
{
/* This function print the statistical info of a protol */
    com_stats_print_t    *data_p=data;
    proto_stats_node	*stats = node->data;
    int depth,size,i;
    

	if (stats) {
	    depth=g_node_depth (node)-3;
	    size=PROTO_STRING-2*depth-2;
	    
	    for (i=0; i<=depth; i++) {
		fprintf (data_p->output,"  ");
	    }
	    	    
	    fprintf (data_p->output,"%-*s %12u %12u %12u %12u %8.2f%% %8.2f%% %12.2f\n",
		        size,
			stats->hfinfo->name,
			stats->num_pkts_total,
			stats->num_bytes_total,
			stats->num_pkts_last,
			stats->num_bytes_last,
		        PCT(stats->num_pkts_total,data_p->cs->tot_packets),
		        PCT(stats->num_bytes_total,data_p->cs->tot_bytes),
		        BRT(stats->num_bytes_total,data_p->cs->tot_time));
	}
	return FALSE;
}


/*-------------------------------------- COMMUNICATION STATS AUXILIAR FUNCTIONS --------------------------*/
static tcp_con_inf*
get_tcp_inf (proto_item *ptree_node){
/* This fuction searchs throught the info node of the actual disserted packet (should be a TCP Packet)
 if there are any connection flags active  */

    proto_item *child_node;
    field_info *finfo;
    tcp_con_inf  *tci;

    tci=g_new (tcp_con_inf,1);

    tci->syn=0;
    tci->fin=0;
    tci->ack=0;
    tci->rst=0;
    
            
		child_node=g_node_first_child(ptree_node); 
		while ( child_node ) {
	     
		    finfo = PITEM_FINFO(child_node);        /* acces the info of the current node */
		    
		    if (strcmp (ABBREV(finfo),"tcp.flags.reset")==0)   /* RESET flag active */ 
			tci->rst=fvalue_get_integer (finfo->value);

		    if (strcmp (ABBREV(finfo),"tcp.flags.syn")==0)     /* SYN flag active */
			tci->syn=fvalue_get_integer (finfo->value);
		    
		    if (strcmp (ABBREV(finfo),"tcp.flags.fin")==0)     /* FIN flag active */
			tci->fin=fvalue_get_integer (finfo->value);
		    
		    if (strcmp (ABBREV(finfo),"tcp.flags.ack")==0)     /* ACK flag active */
			tci->ack=fvalue_get_integer (finfo->value);
		   
		    if (strcmp (ABBREV(finfo),"tcp.flags")==0)          /* we have found the parent node of the flags info */
			child_node= g_node_first_child(child_node);     /* get the first children */
		    else
		        child_node= g_node_next_sibling(child_node);    /* continue looking for the flags info or search the next 
									   flag if have alredy found it */

		}
		return tci;   /* return the new structure with thwe info of the active flags */ 

}


gint 
same_communication (gconstpointer a, gconstpointer b) /* the const pointers are suposse to be communication elements*/
{
/* This function verifies if the two communication elements should be consider the same for the analysis purpouses*/

/* The source IP and port,and the destination IP and port are equals in both communications */ 
    if (ADDRESSES_EQUAL (&((communication *)a)->net_src,&((communication *)b)->net_src)&&
	ADDRESSES_EQUAL (&((communication *)a)->net_dst,&((communication *)b)->net_dst)&&
	((communication *)a)->srcport==((communication *)b)->srcport &&
	((communication *)a)->destport==((communication *)b)->destport)  
       return 0;        
/* The source IP and port of the fisrt communication is equal to the destination IP and port of the second communication
   and the destination IP and port of the fisrt communication is equal to the source IP and port of 
   the second one */
     if (ADDRESSES_EQUAL (&((communication *)a)->net_src,&((communication *)b)->net_dst)&&
	ADDRESSES_EQUAL (&((communication *)a)->net_dst,&((communication *)b)->net_src)&&
	((communication *)a)->srcport==((communication *)b)->destport &&
	((communication *)a)->destport==((communication *)b)->srcport)  
	return 0;  

    return 1;
}


gint
compare_communication  (gconstpointer a, gconstpointer b)  /*t he const pointers are suposse to be communication elements*/
{
/* 
   One communication is prior to other by evaluation of the following fields in order:
   Source Address
   Source Port
   Destination Address
   Destination Port 
   This function gives the order of precedence for the communications stored in the list 
*/   
   
    if 	(ADDRESSES_EQUAL (&((communication *)a)->net_src,&((communication *)b)->net_src)) {
	if (((communication *)a)->srcport == ((communication *)b)->srcport) {
	    if (ADDRESSES_EQUAL (&((communication *)a)->net_dst,&((communication *)b)->net_dst)){
		if (((communication *)a)->destport == ((communication *)b)->destport) 
		    return 0;
		else { 
		    if (((communication *)a)->destport < ((communication *)b)->destport)
			return -1;
                    else 
			return 1;
		}
	    }
	    else {
		if (ADDRESS_MINOR (&((communication *)a)->net_dst,&((communication *)b)->net_dst))
		    return -1;
		else
		    return 1;
	    }
	}
	else {
	    if (((communication *)a)->srcport < ((communication *)b)->srcport) 
		return -1;
	    else 
		return 1;
	}
    }
    else {
	if (ADDRESS_MINOR (&((communication *)a)->net_src,&((communication *)b)->net_src))
	    return -1;
	else 
	    return 1;
    }
}

gint 
compare_times (gint32 sec1, gint32 usec1, gint32 sec2, gint32 usec2 )
/* just to know if one time record is greater than other or not */ 
{
    if (sec1 < sec2 ) 
	return -1;
    else {
	if (sec1 > sec2) 
	    return 1;
	else {
	    if (usec1 < usec2) 
		return -1;
	    else 
		return 1;
	}
    }
}
	      

GSList*
add_tcp_con (packet_info pi, GSList *com_list, guint pkt_len,communication *con, tcp_con_inf *tci ) {
/* init a TCP structure wich holds all the  info necesary for a TCP connection */
  
    con->tot_packets=1;                      
    con->tot_bytes=pkt_len;
    con->ipproto=pi.ipproto;
    con->tcp_con=g_new (tcp_connection,1);
    con->tcp_con->tl=g_new (tcp_length,1);
    con->tcp_con->tl->start_secs = 0;
    con->tcp_con->tl->start_usecs = 0;
    con->tcp_con->tl->end_secs = 0;
    con->tcp_con->tl->end_usecs = 0;
    con->tcp_con->tl->max_delay_secs = 0;
    con->tcp_con->tl->max_delay_usecs = 0;
    con->tcp_con->tl->last_ts_secs = 0;
    con->tcp_con->tl->last_ts_usecs = 0;

    /* we want to know wether this first packect captured in the communication is sendend for the stablishment of
       the connection or not */
    if (tci->syn && !tci->ack) {
	con->tcp_con->status=CON_REQ;
      con->tcp_con->tci = tci; 
	con->tcp_con->attempts=1;
    }
    else {
	con->tcp_con->attempts=0;
	con->tcp_con->status=NONE;
	con->tcp_con->tci = NULL;
    }
    
    com_list= g_slist_prepend  (com_list,con);
    return com_list;
}


GSList*
process_communication (packet_info pi, GSList *com_list, guint pkt_len, proto_item *tcp_node ) {
/* This function maintains the communication list */

    communication  *com,*element;
    GSList         *result;
    tcp_con_inf    *tci;
    tcp_length     *tl;
    gint *diff_secs,*diff_usecs;
    gint max;

    diff_secs=NULL;
    diff_usecs=NULL;

    if (pi.ipproto) {     
       /* It's a packet IP, process the packet*/
        
	/* Create a new connetion element with the basic info necesary to be compared with 
	   other communication elements allready stored */ 
	com=g_new (communication,1);
	COPY_ADDRESS(&com->net_src,&pi.net_src );
	COPY_ADDRESS(&com->net_dst,&pi.net_dst)
	com->destport=pi.destport;
	com->srcport=pi.srcport;


	tci = NULL;
	tl=NULL;
        result =NULL;	
	element=NULL;
	
	/* try to find a communication element in the list wich has the same propierties like the new one */
	result=g_slist_find_custom (com_list,com, same_communication);
	
	
	if (result)
	    /* we have found the element, then we should update it besides adding a new one 
	      but first we have to make a casting to get the correct structure */
	    element=((communication *)result->data);

	
	/* If the packect belongs to a TCP connection we have to give it an special threatement */     
	if (tcp_node) {
	    /* The paquet is TCP, obtain the flags associated to that packet */
	    
	    /* Get the active TCP flags in the current packets */ 
	    tci=get_tcp_inf (tcp_node);
	    
	    if (!element) {
		/* We haven't found a TCP connection in the list. We must add a new one */ 
 		com_list=add_tcp_con (pi, com_list, pkt_len,com,tci);
	    }
	    else {
		/* We already have info of the connection, now we should now wich is the actual status of the 
		   connection and look at the flags that came with current TCP packet*/

		switch (element->tcp_con->status) {
		   
		    case NONE: /* The connection has not jet been stablished for what ever reason ocurred */ 
			
			if (tci->syn && !tci->ack) {
			    com_list=add_tcp_con (pi, com_list, pkt_len,com,tci);
			}
			else{
			    element->tot_bytes+=pkt_len;
			    element->tot_packets++;
			}
			break;
		
		    case CON_REQ: /* The last packet had the SYN flag active. We wait for sever to response  */ 
			if (tci->rst) {
			    element->tcp_con->status= RESET;
			    element->tot_bytes+=pkt_len;
			    element->tot_packets++;
			}
			else {
			    if (tci->syn && tci->ack) {
				element->tcp_con->status= CON_ACP;
				element->tot_bytes+=pkt_len;
				element->tot_packets++;
			    }
			
			    else {
				if (tci->syn) {
				    element->tcp_con->attempts++;
				    element->tot_bytes+=pkt_len;
				    element->tot_packets++;
				}
				else {
				    element->tot_bytes+=pkt_len;
				    element->tot_packets++;
				}
			    }
			}
			    break;
		    case CON_ACP: /* we have already a response from the server wich accepts the connection. 
				     The client should reponse to server in order to finish the stablisment of the connetion*/ 
			if (tci->rst) {
			    element->tcp_con->status= RESET;
			    element->tot_bytes+=pkt_len;
			    element->tot_packets++;
			} 
			else {
			    if (tci->ack && !tci->syn && !tci->fin) {
				element->tcp_con->status= CONNECT; 
				element->ipproto=pi.ipproto;
			   	element->tcp_con->tl->start_secs = pi.fd->rel_secs;
				element->tcp_con->tl->start_usecs = pi.fd->rel_usecs;
				element->tcp_con->tl->last_ts_secs = pi.fd->rel_secs;
				  element->tcp_con->tl->last_ts_usecs = pi.fd->rel_usecs;
			  	element->tot_bytes+=pkt_len;
				element->tot_packets++;
			    }
			    else {
				if (tci->syn && tci->ack ) {
				   element->tot_bytes+=pkt_len;
				   element->tot_packets++; 
				}
				else  {
				    if (tci->syn) {
					element->tcp_con->status=CON_REQ;
					element->tcp_con->attempts++;
					element->tot_bytes+=pkt_len;
					element->tot_packets++; 
				    }
				}
			    }
			}
			break;
		    case CONNECT: /* At this point there is an exchange of info between the two machines involves in the connection.
				     We wait for one of then to send a connection FIN request. By the time we keep track of the amount 
				     info exchanged*/
			if (tci->rst) {
			    element->tcp_con->status= FINISH;
			    element->tot_bytes+=pkt_len;
			    element->tot_packets++;
			    element->tcp_con->tl->end_secs =pi.fd->rel_secs;
			    element->tcp_con->tl->end_usecs =pi.fd->rel_usecs;
			} 
			else {
			    if (tci->fin ) { 
				element->tcp_con->status= FIN_REQ;
				element->tcp_con->tl->end_secs =pi.fd->rel_secs;
				element->tcp_con->tl->end_usecs =pi.fd->rel_usecs;
				element->tot_bytes+=pkt_len;
				element->tot_packets++;
			    }
			    else {
				element->tot_bytes+=pkt_len; 
				element->tot_packets++;
				diff_secs=g_new (gint,1);
				diff_usecs=g_new (gint,1);
				compute_timestamp_diff(diff_secs, diff_usecs,pi.fd->rel_secs ,pi.fd->rel_usecs,
						       element->tcp_con->tl->last_ts_secs ,element->tcp_con->tl->last_ts_usecs );
				max=compare_times(*diff_secs, *diff_usecs,
						   element->tcp_con->tl->max_delay_secs, element->tcp_con->tl->max_delay_usecs);
			       if (max == 1) {
				    element->tcp_con->tl->max_delay_secs= *diff_secs;
				    element->tcp_con->tl->max_delay_usecs=*diff_usecs;
				    }
				element->tcp_con->tl->last_ts_secs = pi.fd->rel_secs;
				element->tcp_con->tl->last_ts_usecs = pi.fd->rel_usecs;
			    }
			}
			break;
		     case FIN_REQ: /* One of the machines has request the finish of the connection. 
				  We wait for the other to accept the demand*/
			if (tci->rst) {
			    element->tcp_con->status= FINISH;
			    element->tot_bytes+=pkt_len;
			    element->tot_packets++;
			}
			else {
			    if (tci->ack) { 
				element->tcp_con->status= FINISH;
				element->tot_bytes+=pkt_len;
				element->tot_packets++;
			    }
			}
			break;
		    case FINISH: /* There are many ways of ending the connection. We keep track of those packets 
				    and we wait for a packet that request a new connection (flag SYN) */ 
			if (!tci->syn) {
			    element->tot_bytes+=pkt_len;
			    element->tot_packets++;
			}
			else {
			    com_list=add_tcp_con (pi, com_list, pkt_len,com,tci);
			}
			break;
		    case RESET: /* At  any  moment of the conection one packet has been sent with the flag RESET active
				   wich ends the connection inmediately. We wait for an new connection request.*/
			if (tci->syn) {
			    com_list=add_tcp_con (pi, com_list, pkt_len,com,tci);
			}
			else {
			    if (tci->ack || tci->rst) {
				element->tot_bytes+=pkt_len;
				element->tot_packets++;
			    }
			}
			break;
		}
	    }
	}
	else {
	    /* The packet belongs to another IP transport protocol different to TCP*/

	    if (!element) {
	    /* We don't have any info stored of the actual communication */  
	    
		/* Initialize the rest of values of the connetion element  */ 
		com->tot_packets=1;
		com->tot_bytes=pkt_len;
		com->ipproto=pi.ipproto;
		com->tcp_con=NULL;
		com_list= g_slist_prepend  (com_list,com);
	    }
	     else {
		/* There is already a communication going on with the same propierties . We only need to
		   update the statistics of the element*/
		element->tot_bytes+=pkt_len;
		element->tot_packets++;
	     }
	}
    }		
   return com_list; 
}



float 
get_length (tcp_length *tl) {
    /* Retourn the total length of a TCP communication in a float value */  
    float length;
    gint32   start_msecs,end_msecs;
    

    /* Pass from usecs to msec */  
    
      start_msecs=tl->start_usecs/1000;
      end_msecs=tl->end_usecs/1000;
      
      length = (float)(tl->end_secs) + (float)(end_msecs)/1000 - (float)(tl->start_secs) - (float)(start_msecs)/1000;
	
        

        return length;

}

float 
max_delay (tcp_length *tl)
{
    /* return the float value of the greatest interpacket delay during the TCP connection */
    return (float)(tl->max_delay_secs) + (float)(tl->max_delay_usecs)/1000000;
}


void
print_com_node (gpointer data, gpointer user_data) {
/* Print all the communication info stored in a node of the list */
    communication *com;
    com_stats_print_t    *data_p=user_data;
    float   length,delay;   

    com=data;
    
    
   
    
    fprintf(data_p->output, "%16s %9u %16s %9u %9s %8u %10u", 
	    ip_to_str (com->net_src.data),	    
	    com->srcport,
	    ip_to_str (com->net_dst.data),
	    com->destport,
	    ipprotostr(com->ipproto),
	    com->tot_packets,
	    com->tot_bytes);

    /* if the communication was a TCP connection, print the extra info */ 
    if ( com->tcp_con ) {
	fprintf (data_p->output," %8d", com->tcp_con->attempts);
	if ( com->tcp_con->status == FINISH) {
	    length=get_length (((tcp_length *)com->tcp_con->tl)); 
	    fprintf (data_p->output," %14.3f",length);
	    delay = max_delay (((tcp_length *)com->tcp_con->tl));
	    fprintf (data_p->output," %10.6f\n",delay);
	}
	else { 
	   fprintf (data_p->output," --------------");
	   fprintf (data_p->output," ----------\n");
	}
    }
    else {
	fprintf (data_p->output," --------");
	fprintf (data_p->output," --------------");
	fprintf (data_p->output," ----------\n");
    }
	 return;
}



/*-------------------------------------------- MAIN FUNCTIONS----------------------------------------*/
void
com_stats_free(com_stats_t *cs)
{
/* This function frees all the memory allocated to hold the communications info */
	if (cs->stats_tree) {
		g_node_traverse(cs->stats_tree, G_IN_ORDER,
				G_TRAVERSE_ALL, -1,
				stat_node_free, NULL);
		g_node_destroy(cs->stats_tree);
	}
	if (cs->com_list)
	    g_slist_free (cs->com_list);

	g_free(cs);
}

void
update_stats( epan_dissect_t *edt, com_stats_t **cs, frame_data frame)
{
/* This function is entry point from tethereal to generate the protocol tree and the communication list */
	proto_item	*ptree_node,*tcp_node;
	com_stats_t     *com;
	tcp_node =NULL; 

	ptree_node = g_node_first_child(edt->tree);
	if (!ptree_node) {
	    return ;
	}
	com=*cs;
	/* Update protocol hierarchy statiscs */
	process_node(ptree_node,com->stats_tree, com, frame.pkt_len,&tcp_node);

	/* Update connection statistics */
	 com->com_list=process_communication (edt->pi, com->com_list,frame.pkt_len,tcp_node);
	 com->tot_packets++;
	 com->tot_bytes+=frame.pkt_len;
	 com->tot_time=frame.rel_secs;

	 *cs =com;
}


com_stats_t*
com_stats_init(void)
{
/* Get ready the structure that will hold all the statistical info */
    com_stats_t	*cs;
    cs = g_new(com_stats_t, 1);
    cs->tot_time=0;
    cs->tot_packets = 0;
    cs->tot_bytes = 0;
    cs->stats_tree = g_node_new(NULL);
    cs->com_list=NULL;   
    return cs;
}



void
com_stats_print(com_stats_t *cs,char * print_file)
{
    /* Print all the statistics to file print_file */ 

    com_stats_print_t   *data;
    FILE *output;

    data = g_new (com_stats_print_t,1);

    
    if (print_file == NULL) {
	fprintf(stderr,"Error: No statistics file defined\n");
	exit (-1);
    }
    else {
	output=fopen (print_file,"w");
    }
	
    if (!output){
	printf ("can't create %s \n", print_file);
	exit (-1);
	}

    data->output = output;
    
    data->cs=cs; 
    
    fprintf (output,
	     "#################################################################################################################################################\n");
    fprintf (output,"Section1 : Protocol Hierarchy Statistics \n");
    fprintf (output,
	     "#################################################################################################################################################\n \n"); 
    fprintf(output,"%-*s %12s %12s %12s %12s %9s %9s %12s \n \n", 
	    PROTO_STRING,"Protocol","Packets","Bytes","End Packets","End Bytes","% Packets","% Bytes","KBytes/sec");

     
	if (cs->stats_tree) {
	        
		g_node_traverse(cs->stats_tree, G_PRE_ORDER,
				G_TRAVERSE_ALL, -1,
				stat_node_print ,data);
	}
	fprintf (output,
		 "\n#####################################################################################################################\n");
	fprintf (output,"Section2 : IP Communications \n");
	fprintf (output,
		 "######################################################################################################################\n \n"); 

	if (cs->com_list) {
	    fprintf(output, "%16s %9s %16s %9s %9s %8s %10s %8s %14s %10s \n \n", "Src Addr","Src Port","Dst Addr","Dst Port","Protocol","Packets","Bytes","Attempts","Length (secs)","max_delay");
	
	    g_slist_foreach (g_slist_sort(cs->com_list,compare_communication), print_com_node, data);
	   	    
	}
	   
	fclose (output);

	
	com_stats_free (cs);
	g_free(data); 
}


char * 
get_csf_name (guint32 abs_secs)  
/* This function gets as argument a numer of seconds  and returns a string 
   that gives the name to the output file of the analysis */ 
				    
{
  struct tm *tmp;
  char *file=g_new(char,35);
 
  tmp = localtime(&abs_secs);
  if (tmp != NULL) {
       snprintf(file ,35,"com_stats_%02d-%02d_%02d:%02d.txt",
             tmp->tm_mon + 1,
             tmp->tm_mday,
             tmp->tm_hour,
             tmp->tm_min); 
  } 
  else {
    file[0] = '\0';
    }
  
  return file;
}








































#ifndef COM_STATS_H
#define COM_STATS_H

#include <epan/proto.h>
#include <stdio.h>
#include "epan/packet_info.h" 
#include <wtap.h>
#include <glib.h>
#include <epan/epan_dissect.h>
#include "globals.h"

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

typedef struct {
    guint32 tot_time;      /* Total time in seconds that has take the capture */
    guint   tot_packets;   /* Total number of packets sended */
    guint   tot_bytes;     /* Total amount of bytes sended */
    GNode   *stats_tree;   /* Pointer to the root node of protocols tree */
    GSList  *com_list;     /* Pointer to the first element in the list of communications */
} com_stats_t;




char * get_csf_name (guint32 abs_secs);

void  update_stats (epan_dissect_t *edt, com_stats_t **cs, frame_data frame);

com_stats_t* com_stats_init(void);

void com_stats_print(com_stats_t *cs, char *print_file);
#endif



























#ifdef HAVE_CONFIG_H
# include "config.h"
#endif


#include "globals.h"
#include "flow_monitor.h"

#include <epan/epan_dissect.h>
#include <wtap.h>

#include <stdio.h>
#include <glib.h>


#include <epan/proto.h>
#include "util.h"
#include <string.h>

typedef struct {
guint     tot_packets;   /* Total packets exchanged */
guint32   tot_bytes;     /* Total bytes exchanged */

address   net_src;       /* IP Source Address */ 
address   net_dst;       /* IP Destination Address */
guint32   srcport;       /* Source port */
guint32   destport;       /* Source port */
} communication;



flow_monitor_t*
monitor_init(gboolean has_max_packets, gint max_packets, gboolean has_max_bytes, gint32 max_bytes)
{

    flow_monitor_t	*fm;
    fm= g_new(flow_monitor_t, 1);
    fm->has_max_packets = has_max_packets;
    fm->max_packets = max_packets ;
    fm->has_max_bytes = has_max_bytes;
    fm->max_bytes = max_bytes;
    fm->act_sec = 0;
    fm->com_list=NULL;   
    return fm;
}

gint 
same_com (gconstpointer a, gconstpointer b){
    if (ADDRESSES_EQUAL (&((communication *)a)->net_src,&((communication *)b)->net_src)&&
	ADDRESSES_EQUAL (&((communication *)a)->net_dst,&((communication *)b)->net_dst)&&
	((communication *)a)->srcport==((communication *)b)->srcport &&
	((communication *)a)->destport==((communication *)b)->destport)  

       return 0;        
     if (ADDRESSES_EQUAL (&((communication *)a)->net_src,&((communication *)b)->net_dst)&&
	ADDRESSES_EQUAL (&((communication *)a)->net_dst,&((communication *)b)->net_src)&&
	((communication *)a)->srcport==((communication *)b)->destport &&
	((communication *)a)->destport==((communication *)b)->srcport)  
	return 0;  

    return 1;
}

GSList*
process_info (packet_info pi, flow_monitor_t *fm, guint pkt_len) {
/* This function does the connection list */

    communication  *com,*element;
    GSList         *result;


    if (pi.ipproto) {     
       /* It's a packet IP, process the packet*/
        
	/* Create a new connetion element */ 
	com=g_new (communication,1);
	COPY_ADDRESS(&com->net_src,&pi.net_src );
	COPY_ADDRESS(&com->net_dst,&pi.net_dst)
	com->destport=pi.destport;
	com->srcport=pi.srcport;

	
        result =NULL;	
        element = NULL;

	result=g_slist_find_custom (fm->com_list,com, same_com);

	if (result) {
	    element=g_new (communication,1);
	    element=((communication *)result->data);
	    element->tot_bytes+=pkt_len;
	    element->tot_packets++;
	}
	else {
	    /* Initialize the rest of values of the connetion element */ 
	    com->tot_packets=1;
	    com->tot_bytes=pkt_len;
	    fm->com_list= g_slist_prepend  (fm->com_list,com);
	}
    }	 
    return fm->com_list;   
}

void
verify_list (gpointer data, gpointer user_data)
{
    communication *com;
    flow_monitor_t *fm;

    com = data ;
    fm= user_data;

    if (fm->has_max_packets && (com->tot_packets >=  fm->max_packets) ){
	    printf ("WARNING : THE AMOUNT OF PACKETS BETWEEN %s:%d -> %s:%d is %d packets/second\n", 
		    ip_to_str (com->net_src.data),
		    com->srcport,
		    ip_to_str (com->net_dst.data),
		    com->destport,
		    com->tot_packets);
    }
    if (fm->has_max_bytes && (com->tot_bytes >= fm->max_bytes)) {
	    printf ("WARNING : THE AMOUNT OF BYTES BETWEEN %s:%d -> %s:%d is %u bytes/second\n", 
		    ip_to_str (com->net_src.data),
		    com->srcport,
		    ip_to_str (com->net_dst.data),
		    com->destport,
		    com->tot_bytes);
    }
}

void
update_monitor_info ( epan_dissect_t *edt, flow_monitor_t **fmt, frame_data frame )
{

    flow_monitor_t *fm;

    fm=*fmt;


    if (frame.rel_secs > fm->act_sec){
	printf("SECOND : %u \n",fm->act_sec);
	if (fm->com_list) {	
	    g_slist_foreach (fm->com_list,verify_list, fm);
	    g_slist_free (fm->com_list);
	    fm->com_list = NULL;
	}
	fm->act_sec=frame.rel_secs;
	}

    fm->com_list=process_info (edt->pi,fm,frame.pkt_len);

    *fmt=fm;
}










#include <epan/proto.h>
#include <stdio.h>
#include "epan/packet_info.h" 
#include <wtap.h>
#include <glib.h>
#include <epan/epan_dissect.h>
#include "globals.h"

typedef struct {
    gint32   act_sec;
    gboolean has_max_packets;
    guint     max_packets;
    gboolean has_max_bytes;
    guint32   max_bytes;
    GSList  *com_list;
} flow_monitor_t;

void update_monitor_info ( epan_dissect_t *edt, flow_monitor_t **fmt, frame_data frame );
flow_monitor_t * monitor_init(gboolean has_max_packets, gint max_packets, gboolean has_max_bytes, gint32 max_bytes);





















































/* tethereal.c
 *
 * $Id: tethereal.c,v 1.152 2002/08/20 20:49:29 jmayer Exp $
 *
 * Ethereal - Network traffic analyzer
 * By Gerald Combs <gerald@xxxxxxxxxxxx>
 * Copyright 1998 Gerald Combs
 *
 * Text-mode variant, by Gilbert Ramirez <gram@xxxxxxxxxxxxxxx>
 * and Guy Harris <guy@xxxxxxxxxxxx>.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <locale.h>
#include <limits.h>

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

#include <errno.h>

#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif

#include <signal.h>

#ifdef HAVE_LIBPCAP
#include <pcap.h>
#include <setjmp.h>
#endif

#ifdef HAVE_LIBZ
#include <zlib.h>	/* to get the libz version number */
#endif

#ifdef NEED_SNPRINTF_H
# include "snprintf.h"
#endif

#ifdef HAVE_UCD_SNMP_VERSION_H
#include <ucd-snmp/version.h>
#endif /* HAVE_UCD_SNMP_VERSION_H */

#ifdef NEED_STRERROR_H
#include "strerror.h"
#endif

#ifdef NEED_GETOPT_H
#include "getopt.h"
#endif

#include <glib.h>
#include <epan/epan.h>
#include <epan/filesystem.h>

#include "globals.h"
#include <epan/timestamp.h>
#include <epan/packet.h>
#include "file.h"
#include "prefs.h"
#include "column.h"
#include "print.h"
#include <epan/resolv.h>
#include "util.h"
#ifdef HAVE_LIBPCAP
#include "pcap-util.h"
#endif
#include <epan/conversation.h>
#include <epan/plugins.h>
#include "register.h"
#include "conditions.h"
#include "capture_stop_conditions.h"
#include "ringbuffer.h"
#include <epan/epan_dissect.h>

#ifdef HAVE_LIBPCAP
#include <wiretap/wtap-capture.h>
#endif

#ifdef WIN32
#include "capture-wpcap.h"
#endif

/*ENST*/
#include "com_stats.h"
/*#include <pthread.h>*/
#include "traffic_stats.h"
#include "flow_monitor.h"

static guint32 firstsec, firstusec;
static guint32 prevsec, prevusec;
static GString *comp_info_str;
static gboolean quiet;
static gboolean decode;
static gboolean verbose;
static gboolean print_hex;
static gboolean line_buffered;

#ifdef HAVE_LIBPCAP
typedef struct _loop_data {
  gboolean       go;           /* TRUE as long as we're supposed to keep capturing */
  gint           linktype;
  pcap_t        *pch;
  wtap_dumper   *pdh;
  jmp_buf        stopenv;
  gboolean       output_to_pipe;
  int            packet_count;
} loop_data;

static loop_data ld;

static int capture(int);
static void capture_pcap_cb(guchar *, const struct pcap_pkthdr *,
  const guchar *);
#ifdef _WIN32
static BOOL WINAPI capture_cleanup(DWORD);
#else /* _WIN32 */
static void capture_cleanup(int);
#endif /* _WIN32 */
#endif /* HAVE_LIBPCAP */

typedef struct {
  capture_file *cf;
  wtap_dumper *pdh;
} cb_args_t;

static int load_cap_file(capture_file *, int);
static void wtap_dispatch_cb_write(guchar *, const struct wtap_pkthdr *, long,
    union wtap_pseudo_header *, const guchar *);
static void show_capture_file_io_error(const char *, int, gboolean);
static void wtap_dispatch_cb_print(guchar *, const struct wtap_pkthdr *, long,
    union wtap_pseudo_header *, const guchar *);

capture_file cfile;
ts_type timestamp_type = RELATIVE;
#ifdef HAVE_LIBPCAP
typedef struct {
	int snaplen;			/* Maximum captured packet length */
	int promisc_mode;		/* Capture in promiscuous mode */
	int autostop_count;		/* Maximum packet count */
	gboolean has_autostop_duration;	/* TRUE if maximum capture duration
					   is specified */
	gint32 autostop_duration;	/* Maximum capture duration */
	gboolean has_autostop_filesize;	/* TRUE if maximum capture file size
					   is specified */
	gint32 autostop_filesize;	/* Maximum capture file size */
	gboolean ringbuffer_on;		/* TRUE if ring buffer in use */
	guint32 ringbuffer_num_files;	/* Number of ring buffer files */

        gboolean has_max_packets ;      /* ENST - TRUE if maximum number of 
					   packets per second is pecified */     
        gint max_packets;               /* ENST - maximum number of packets per second */
        gboolean has_max_bytes;         /* ENST - TRUE if maximum number of 
					   bytes per second is pecified */
        gint32 max_bytes;               /* ENST - maximum number of bytes per second */
} capture_options;

static capture_options capture_opts = {
	WTAP_MAX_PACKET_SIZE,		/* snapshot length - default is
					   infinite, in effect */
	TRUE,				/* promiscuous mode is the default */
	0,				/* max packet count - default is 0,
					   meaning infinite */
	FALSE,				/* maximum capture duration not
					   specified by default */
	0,				/* maximum capture duration */
	FALSE,				/* maximum capture file size not
					   specified by default */
	0,				/* maximum capture file size */
	FALSE,				/* ring buffer off by default */
	RINGBUFFER_MIN_NUM_FILES,	/* default number of ring buffer
					   files */
	FALSE,                          /* ENST - maximum number of packets not 
					   specified by default */
	0,                              /* ENST - maximum number of packets */
	FALSE,                          /* ENST - maximum number of bytes not 
					   specified by default */ 
	0                               /* ENST - maximun number of bytes*/
};
#endif

/*ENST - Create a pointer to the statistics struct */
com_stats_t  *cs;
traf_stats *tf;
flow_monitor_t *fm;
/*ENST - Boolean that tells if it shold compute the statistics */
static gboolean get_com_stats;
static gboolean get_traf_stats;
char *com_file;
char *traf_file;
gint delay; 
 
static void 
print_usage(gboolean print_ver)
{
  int i;

  if (print_ver) {
    fprintf(stderr, "This is GNU t%s %s, compiled %s\n", PACKAGE, VERSION,
	comp_info_str->str);
  }
#ifdef HAVE_LIBPCAP
  fprintf(stderr, "\nt%s [ -DvVhqSlp ] [ -a <capture autostop condition> ] ...\n",
	  PACKAGE);
  fprintf(stderr, "\t[ -b <number of ring buffer files> ] [ -c <count> ]\n");
  fprintf(stderr, "\t[ -f <capture filter> ] [ -F <output file type> ]\n");
  fprintf(stderr, "\t[ -i <interface> ] [ -n ] [ -N <resolving> ]\n");
  fprintf(stderr, "\t[ -o <preference setting> ] ... [ -r <infile> ] [ -R <read filter> ]\n");
  fprintf(stderr, "\t[ -s <snaplen> ] [ -t <time stamp format> ] [ -w <savefile> ] [ -x ]\n");
  /* ENST - options added */
  fprintf(stderr, "\t[ -C ] [ T <interval in seconds > ] [ -W ] [ -M < monitor condition ]\n");
#else
  fprintf(stderr, "\nt%s [ -vVhl ] [ -F <output file type> ] [ -n ] [ -N <resolving> ]\n", PACKAGE);
  fprintf(stderr, "\t[ -o <preference setting> ] ... [ -r <infile> ] [ -R <read filter> ]\n");
  fprintf(stderr, "\t[ -t <time stamp format> ] [ -w <savefile> ] [ -x ]\n");
#endif
  fprintf(stderr, "Valid file type arguments to the \"-F\" flag:\n");
  for (i = 0; i < WTAP_NUM_FILE_TYPES; i++) {
    if (wtap_dump_can_open(i))
      fprintf(stderr, "\t%s - %s\n",
        wtap_file_type_short_string(i), wtap_file_type_string(i));
  }
  fprintf(stderr, "\tdefault is libpcap\n");
}

#ifdef HAVE_LIBPCAP
static int
get_positive_int(const char *string, const char *name)
{
  long number;
  char *p;

  number = strtol(string, &p, 10);
  if (p == string || *p != '\0') {
    fprintf(stderr, "tethereal: The specified %s \"%s\" is not a decimal number\n",
	    name, string);
    exit(1);
  }
  if (number < 0) {
    fprintf(stderr, "tethereal: The specified %s is a negative number\n",
	    name);
    exit(1);
  }
  if (number == 0) {
    fprintf(stderr, "tethereal: The specified %s is zero\n",
	    name);
    exit(1);
  }
  if (number > INT_MAX) {
    fprintf(stderr, "tethereal: The specified %s is too large (greater than %d)\n",
	    name, INT_MAX);
    exit(1);
  }
  return number;
}

/*
 * Given a string of the form "<autostop criterion>:<value>", as might appear
 * as an argument to a "-a" option, parse it and set the criterion in
 * question.  Return an indication of whether it succeeded or failed
 * in some fashion.
 */
static gboolean
set_autostop_criterion(const char *autostoparg)
{
  guchar *p, *colonp;

  colonp = strchr(autostoparg, ':');
  if (colonp == NULL)
    return FALSE;

  p = colonp;
  *p++ = '\0';

  /*
   * Skip over any white space (there probably won't be any, but
   * as we allow it in the preferences file, we might as well
   * allow it here).
   */
  while (isspace(*p))
    p++;
  if (*p == '\0') {
    /*
     * Put the colon back, so if our caller uses, in an
     * error message, the string they passed us, the message
     * looks correct.
     */
    *colonp = ':';
    return FALSE;
  }
  if (strcmp(autostoparg,"duration") == 0) {
    capture_opts.has_autostop_duration = TRUE;
    capture_opts.autostop_duration = get_positive_int(p,"autostop duration");
  } else if (strcmp(autostoparg,"filesize") == 0) {
    capture_opts.has_autostop_filesize = TRUE;
    capture_opts.autostop_filesize = get_positive_int(p,"autostop filesize");
  } else {
    return FALSE;
  }
  *colonp = ':';	/* put the colon back */
  return TRUE;
}

/* ENST - This function set the critierion for the flow_monitor option */

static gboolean
set_flow_control_criterion(const char *flowarg)
{
  u_char *p, *colonp;

  colonp = strchr(flowarg, ':');
  if (colonp == NULL)
    return FALSE;

  p = colonp;
  *p++ = '\0';

  /*
   * Skip over any white space (there probably won't be any, but
   * as we allow it in the preferences file, we might as well
   * allow it here).
   */
  while (isspace(*p))
    p++;
  if (*p == '\0') {
    /*
     * Put the colon back, so if our caller uses, in an
     * error message, the string they passed us, the message
     * looks correct.
     */
    *colonp = ':';
    return FALSE;
  }
  if (strcmp(flowarg,"packets") == 0) {
    capture_opts.has_max_packets = TRUE;
    capture_opts.max_packets = get_positive_int(p,"max number of packets per second");
  } else if (strcmp(flowarg,"bytes") == 0) {
    capture_opts.has_max_bytes = TRUE;
    capture_opts.max_bytes = get_positive_int(p,"max number of bytes per second");
  } else {
    return FALSE;
  }
  *colonp = ':';	/* put the colon back */
  return TRUE;
}
#endif


/* ENST - This fuction returns the file name for a capture done with the option -W */ 

char * 
get_capture_file_name (void) 
{

  struct tm *tmp;
  char *capture=g_new(char,35);
  time_t then;

  then=time(NULL);
  //tmp = localtime(&then);

  tmp = localtime(&then);
  if (tmp != NULL) {
       snprintf(capture ,35,"capture_%02d-%02d_%02d:%02d.tet",
             tmp->tm_mon + 1,
             tmp->tm_mday,
             tmp->tm_hour,
             tmp->tm_min);  
  } 
  else {
    capture[0] = '\0';
    }
  
  return capture;
}

int
main(int argc, char *argv[])
{
  int                  opt, i;
  extern char         *optarg;
  gboolean             arg_error = FALSE;
#ifdef HAVE_LIBPCAP
#ifdef HAVE_PCAP_VERSION
  extern char          pcap_version[];
#endif /* HAVE_PCAP_VERSION */
#endif /* HAVE_LIBPCAP */

#ifdef WIN32
  WSADATA		wsaData;
#endif

  char                *gpf_path;
  char                *pf_path;
  int                  gpf_open_errno, pf_open_errno;
  int                  err;
#ifdef HAVE_LIBPCAP
  gboolean             capture_filter_specified = FALSE;
  GList               *if_list, *if_entry;
  gchar                err_str[PCAP_ERRBUF_SIZE];
#else
  gboolean             capture_option_specified = FALSE;
#endif
  int                  out_file_type = WTAP_FILE_PCAP;
  gchar               *cf_name = NULL, *rfilter = NULL;
#ifdef HAVE_LIBPCAP
  gchar               *if_text;
#endif
  dfilter_t           *rfcode = NULL;
  e_prefs             *prefs;
  char                 badopt;


/* ENST - variable initialization*/ 
  get_com_stats=FALSE;
  get_traf_stats=FALSE;
  com_file=NULL;
  traf_file=NULL;

  /* Register all dissectors; we must do this before checking for the
     "-G" flag, as the "-G" flag dumps information registered by the
     dissectors, and we must do it before we read the preferences, in
     case any dissectors register preferences. */
  epan_init(PLUGIN_DIR,register_all_protocols,register_all_protocol_handoffs);

  /* Now register the preferences for any non-dissector modules.
     We must do that before we read the preferences as well. */
  prefs_register_modules();

  /* If invoked with the "-G" flag, we dump out information based on
     the argument to the "-G" flag; if no argument is specified,
     for backwards compatibility we dump out a glossary of display
     filter symbols.

     We do this here to mirror what happens in the GTK+ version, although
     it's not necessary here. */
  if (argc >= 2 && strcmp(argv[1], "-G") == 0) {
    if (argc == 2)
      proto_registrar_dump_fields();
    else {
      if (strcmp(argv[2], "fields") == 0)
        proto_registrar_dump_fields();
      else if (strcmp(argv[2], "protocols") == 0)
        proto_registrar_dump_protocols();
      else {
        fprintf(stderr, "tethereal: Invalid \"%s\" option for -G flag\n",
                argv[2]);
        exit(1);
      }
    }
    exit(0);
  }

  /* Set the C-language locale to the native environment. */
  setlocale(LC_ALL, "");

  prefs = read_prefs(&gpf_open_errno, &gpf_path, &pf_open_errno, &pf_path);
  if (gpf_path != NULL) {
    fprintf(stderr, "Can't open global preferences file \"%s\": %s.\n", pf_path,
        strerror(gpf_open_errno));
  }
  if (pf_path != NULL) {
    fprintf(stderr, "Can't open your preferences file \"%s\": %s.\n", pf_path,
        strerror(pf_open_errno));
    g_free(pf_path);
    pf_path = NULL;
  }

  /* Set the name resolution code's flags from the preferences. */
  g_resolv_flags = prefs->name_resolve;

#ifdef WIN32
  /* Load Wpcap, if possible */
  load_wpcap();
#endif
    
  /* Initialize the capture file struct */
  cfile.plist		= NULL;
  cfile.plist_end	= NULL;
  cfile.wth		= NULL;
  cfile.filename	= NULL;
  cfile.user_saved	= FALSE;
  cfile.is_tempfile	= FALSE;
  cfile.rfcode		= NULL;
  cfile.dfilter		= NULL;
  cfile.dfcode		= NULL;
#ifdef HAVE_LIBPCAP
  cfile.cfilter		= g_strdup("");
#endif
  cfile.iface		= NULL;
  cfile.save_file	= NULL;
  cfile.save_file_fd	= -1;
  cfile.has_snap	= FALSE;
  cfile.snap		= WTAP_MAX_PACKET_SIZE;
  cfile.count		= 0;

  /* Assemble the compile-time options */
  comp_info_str = g_string_new("");

  g_string_append(comp_info_str, "with ");
  g_string_sprintfa(comp_info_str,
#ifdef GLIB_MAJOR_VERSION
    "GLib %d.%d.%d", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION,
    GLIB_MICRO_VERSION);
#else
    "GLib (version unknown)");
#endif

#ifdef HAVE_LIBPCAP
  g_string_append(comp_info_str, ", with libpcap ");
#ifdef HAVE_PCAP_VERSION
  g_string_append(comp_info_str, pcap_version);
#else /* HAVE_PCAP_VERSION */
  g_string_append(comp_info_str, "(version unknown)");
#endif /* HAVE_PCAP_VERSION */
#else /* HAVE_LIBPCAP */
  g_string_append(comp_info_str, ", without libpcap");
#endif /* HAVE_LIBPCAP */

#ifdef HAVE_LIBZ
  g_string_append(comp_info_str, ", with libz ");
#ifdef ZLIB_VERSION
  g_string_append(comp_info_str, ZLIB_VERSION);
#else /* ZLIB_VERSION */
  g_string_append(comp_info_str, "(version unknown)");
#endif /* ZLIB_VERSION */
#else /* HAVE_LIBZ */
  g_string_append(comp_info_str, ", without libz");
#endif /* HAVE_LIBZ */

/* Oh, this is pretty */
#ifdef HAVE_UCD_SNMP
  g_string_append(comp_info_str, ", with UCD SNMP ");
#ifdef HAVE_UCD_SNMP_VERSION_H
  g_string_append(comp_info_str, VersionInfo);
#else /* HAVE_UCD_SNMP_VERSION_H */
  g_string_append(comp_info_str, "(version unknown)");
#endif /* HAVE_UCD_SNMP_VERSION_H */
#else /* no SNMP library */
  g_string_append(comp_info_str, ", without UCD SNMP");
#endif
    
  /* Now get our args */
while ((opt = getopt(argc, argv, "a:b:c:Df:F:hi:lCWnN:o:pqr:R:s:St:vw:Vx:T:M:")) != -1) {       /* ENST - Added options C,T,M,W */
    switch (opt) {
      case 'a':        /* autostop criteria */
#ifdef HAVE_LIBPCAP
        if (set_autostop_criterion(optarg) == FALSE) {
          fprintf(stderr, "ethereal: Invalid or unknown -a flag \"%s\"\n", optarg);
          exit(1);          
        }
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
        break;
      case 'b':        /* Ringbuffer option */
#ifdef HAVE_LIBPCAP
        capture_opts.ringbuffer_on = TRUE;
        capture_opts.ringbuffer_num_files =
            get_positive_int(optarg, "number of ring buffer files");
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
        break;
      case 'c':        /* Capture xxx packets */
#ifdef HAVE_LIBPCAP
        capture_opts.autostop_count =
            get_positive_int(optarg, "packet count");
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
        break;
      case 'D':        /* Print a list of capture devices */
#ifdef HAVE_LIBPCAP
        if_list = get_interface_list(&err, err_str);
        if (if_list == NULL) {
            switch (err) {

            case CANT_GET_INTERFACE_LIST:
                fprintf(stderr, "tethereal: Can't get list of interfaces: %s\n",
			err_str);
                break;

            case NO_INTERFACES_FOUND:
                fprintf(stderr, "tethereal: There are no interfaces on which a capture can be done\n");
                break;
            }
            exit(2);
        }
        for (if_entry = g_list_first(if_list); if_entry != NULL;
		if_entry = g_list_next(if_entry))
          printf("%s\n", (char *)if_entry->data);
        free_interface_list(if_list);
        exit(0);
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
        break;
      case 'f':
#ifdef HAVE_LIBPCAP
        capture_filter_specified = TRUE;
	if (cfile.cfilter)
		g_free(cfile.cfilter);
	cfile.cfilter = g_strdup(optarg);
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
	break;
      case 'F':
        out_file_type = wtap_short_string_to_file_type(optarg);
        if (out_file_type < 0) {
          fprintf(stderr, "tethereal: \"%s\" is not a valid capture file type\n",
			optarg);
          exit(1);
        }
        break;
      case 'h':        /* Print help and exit */
	print_usage(TRUE);
	exit(0);
        break;
      case 'i':        /* Use interface xxx */
#ifdef HAVE_LIBPCAP
        cfile.iface = g_strdup(optarg);
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
        break;
      case 'l':        /* "Line-buffer" standard output */
	/* This isn't line-buffering, strictly speaking, it's just
	   flushing the standard output after the information for
	   each packet is printed; however, that should be good
	   enough for all the purposes to which "-l" is put.

	   See the comment in "wtap_dispatch_cb_print()" for an
	   explanation of why we do that, and why we don't just
	   use "setvbuf()" to make the standard output line-buffered
	   (short version: in Windows, "line-buffered" is the same
	   as "fully-buffered", and the output buffer is only flushed
	   when it fills up). */
	line_buffered = TRUE;
	break;
      case 'n':        /* No name resolution */
        g_resolv_flags = RESOLV_NONE;
        break;
      case 'N':        /* Select what types of addresses/port #s to resolve */
        if (g_resolv_flags == RESOLV_ALL)
          g_resolv_flags = RESOLV_NONE;
        badopt = string_to_name_resolve(optarg, &g_resolv_flags);
        if (badopt != '\0') {
          fprintf(stderr, "tethereal: -N specifies unknown resolving option '%c'; valid options are 'm', 'n', and 't'\n",
			badopt);
          exit(1);
        }
        break;
      case 'o':        /* Override preference from command line */
        switch (prefs_set_pref(optarg)) {

	case PREFS_SET_SYNTAX_ERR:
          fprintf(stderr, "tethereal: Invalid -o flag \"%s\"\n", optarg);
          exit(1);
          break;

        case PREFS_SET_NO_SUCH_PREF:
        case PREFS_SET_OBSOLETE:
          fprintf(stderr, "tethereal: -o flag \"%s\" specifies unknown preference\n",
			optarg);
          exit(1);
          break;
        }
        break;
      case 'p':        /* Don't capture in promiscuous mode */
#ifdef HAVE_LIBPCAP
	capture_opts.promisc_mode = FALSE;
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
	break;
      case 'q':        /* Quiet */
        quiet = TRUE;
        break;
      case 'r':        /* Read capture file xxx */
        cf_name = g_strdup(optarg);
        break;
      case 'R':        /* Read file filter */
        rfilter = optarg;
        break;
      case 's':        /* Set the snapshot (capture) length */
#ifdef HAVE_LIBPCAP
        capture_opts.snaplen = get_positive_int(optarg, "snapshot length");
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
        break;
      case 'S':        /* show packets in real time */
        decode = TRUE;
        break;
      case 't':        /* Time stamp type */
        if (strcmp(optarg, "r") == 0)
          timestamp_type = RELATIVE;
        else if (strcmp(optarg, "a") == 0)
          timestamp_type = ABSOLUTE;
        else if (strcmp(optarg, "ad") == 0)
          timestamp_type = ABSOLUTE_WITH_DATE;
        else if (strcmp(optarg, "d") == 0)
          timestamp_type = DELTA;
        else {
          fprintf(stderr, "tethereal: Invalid time stamp type \"%s\"\n",
            optarg);
          fprintf(stderr, "It must be \"r\" for relative, \"a\" for absolute,\n");
          fprintf(stderr, "\"ad\" for absolute with date, or \"d\" for delta.\n");
          exit(1);
        }
        break;
      case 'v':        /* Show version and exit */
        printf("t%s %s, %s\n", PACKAGE, VERSION, comp_info_str->str);
        exit(0);
        break;
      case 'w':        /* Write to capture file xxx */
        cfile.save_file = g_strdup(optarg);
	break;
      case 'V':        /* Verbose */
        verbose = TRUE;
        break;
      case 'x':        /* Print packet data in hex (and ASCII) */
        print_hex = TRUE;
        break;
      case 'C':
	/* ENST - No Name Resolution. Speed up the performance */  
	 g_resolv_flags = RESOLV_NONE;
	/* ENST - Calculate communications statistics */ 
	get_com_stats=TRUE;
	/* ENST - Initializate pointer to the communications statistics struct */
	cs=com_stats_init();
	/* ENST - Get the name of file in wich it should be stored the computed statistics */

	break;
      case 'T':
         /* ENST - No Name Resolution. Speed up the performance */  
	 g_resolv_flags = RESOLV_NONE;
          /* ENST - Calculate traffic statistics */ 
	  get_traf_stats=TRUE;
	  
	  delay = get_positive_int(optarg, "delay");
	  /* ENST - Initializate pointer to the traffic statistics struct */
	  
	  tf=traf_stats_init(delay);
	  break;

      case 'M':  /* ENST - FLow control Monitor*/
	  quiet =TRUE;
	/* ENST - No Name Resolution. Speed up the performance */  
	 
	 g_resolv_flags = RESOLV_NONE;
#ifdef HAVE_LIBPCAP
        if (set_flow_control_criterion(optarg) == FALSE) {
          fprintf(stderr, "ethereal: Invalid or unknown -M flag \"%s\"\n", optarg);
          exit(1);          
        }
	else {
	    fm=monitor_init(capture_opts.has_max_packets,capture_opts.max_packets,capture_opts.has_max_bytes,capture_opts.max_bytes);  
	    
	}
#else
        capture_option_specified = TRUE;
        arg_error = TRUE;
#endif
	break;
     case 'W':        /* Write to capture file xxx */
        /* ENST - No Name Resolution. Speed up the performance */  
	g_resolv_flags = RESOLV_NONE;
        cfile.save_file = get_capture_file_name();
	break;
	
      default:
      case '?':        /* Bad flag - print usage message */
        arg_error = TRUE;
        break;
    }
  }
  
  /* If no capture filter or read filter has been specified, and there are
     still command-line arguments, treat them as the tokens of a capture
     filter (if no "-r" flag was specified) or a read filter (if a "-r"
     flag was specified. */
  if (optind < argc) {
    if (cf_name != NULL) {
      if (rfilter != NULL) {
        fprintf(stderr,
"tethereal: Read filters were specified both with \"-R\" and with additional command-line arguments\n");
        exit(2);
      }
      rfilter = get_args_as_string(argc, argv, optind);
    } else {
#ifdef HAVE_LIBPCAP
      if (capture_filter_specified) {
        fprintf(stderr,
"tethereal: Capture filters were specified both with \"-f\" and with additional command-line arguments\n");
        exit(2);
      }
      cfile.cfilter = get_args_as_string(argc, argv, optind);
#else
      capture_option_specified = TRUE;
#endif
    }
  }

  /* See if we're writing a capture file and the file is a pipe */
#ifdef HAVE_LIBPCAP
  ld.output_to_pipe = FALSE;
#endif
  if (cfile.save_file != NULL) {
    if (!strcmp(cfile.save_file, "-")) {
      /* stdout */
      g_free(cfile.save_file);
      cfile.save_file = g_strdup("");
#ifdef HAVE_LIBPCAP
      ld.output_to_pipe = TRUE;
#endif
    }
#ifdef HAVE_LIBPCAP
    else {
      err = test_for_fifo(cfile.save_file);
      switch (err) {
  
      case ENOENT:	/* it doesn't exist, so we'll be creating it,
      			   and it won't be a FIFO */
      case 0:		/* found it, but it's not a FIFO */
        break;
  
      case ESPIPE:	/* it is a FIFO */
        ld.output_to_pipe = TRUE;
        break;
  
      default:		/* couldn't stat it */
        fprintf(stderr,
                "tethereal: Error testing whether capture file is a pipe: %s\n",
                strerror(errno));
        exit(2);
      }
    }
#endif
  }

#ifdef HAVE_LIBPCAP
  /* If they didn't specify a "-w" flag, but specified a maximum capture
     file size, tell them that this doesn't work, and exit. */
  if (capture_opts.has_autostop_filesize && cfile.save_file == NULL) {
    fprintf(stderr, "tethereal: Maximum capture file size specified, but "
      "capture isn't being saved to a file.\n");
    exit(2);
  }

  if (capture_opts.ringbuffer_on) {
    /* Ring buffer works only under certain conditions:
       a) ring buffer does not work if you're not saving the capture to
          a file;
       b) ring buffer only works if you're saving in libpcap format;
       c) it makes no sense to enable the ring buffer if the maximum
          file size is set to "infinite";
       d) file must not be a pipe. */
    if (cfile.save_file == NULL) {
      fprintf(stderr, "tethereal: Ring buffer requested, but "
        "capture isn't being saved to a file.\n");
      exit(2);
    }
    if (out_file_type != WTAP_FILE_PCAP) {
      fprintf(stderr, "tethereal: Ring buffer requested, but "
        "capture isn't being saved in libpcap format.\n");
      exit(2);
    }
    if (!capture_opts.has_autostop_filesize) {
      fprintf(stderr, "tethereal: Ring buffer requested, but "
        "no maximum capture file size was specified.\n");
      exit(2);
    }
    if (ld.output_to_pipe) {
      fprintf(stderr, "tethereal: Ring buffer requested, but "
        "capture file is a pipe.\n");
      exit(2);
    }
  }
#endif

#ifdef WIN32
  /* Start windows sockets */
  WSAStartup( MAKEWORD( 1, 1 ), &wsaData );
#endif

  /* Notify all registered modules that have had any of their preferences
     changed either from one of the preferences file or from the command
     line that their preferences have changed. */
  prefs_apply_all();

#ifndef HAVE_LIBPCAP
  if (capture_option_specified)
    fprintf(stderr, "This version of Tethereal was not built with support for capturing packets.\n");
#endif
  if (arg_error) {
    print_usage(FALSE);
    exit(1);
  }

  /* Build the column format array */  
  col_init(&cfile.cinfo, prefs->num_cols);
  for (i = 0; i < cfile.cinfo.num_cols; i++) {
    cfile.cinfo.col_fmt[i] = get_column_format(i);
    cfile.cinfo.col_title[i] = g_strdup(get_column_title(i));
    cfile.cinfo.fmt_matx[i] = (gboolean *) g_malloc0(sizeof(gboolean) *
      NUM_COL_FMTS);
    get_column_format_matches(cfile.cinfo.fmt_matx[i], cfile.cinfo.col_fmt[i]);
    cfile.cinfo.col_data[i] = NULL;
    if (cfile.cinfo.col_fmt[i] == COL_INFO)
      cfile.cinfo.col_buf[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_INFO_LEN);
    else
      cfile.cinfo.col_buf[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN);

    cfile.cinfo.col_expr[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN);
    cfile.cinfo.col_expr_val[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN);
  }

#ifdef HAVE_LIBPCAP
  if (capture_opts.snaplen < 1)
    capture_opts.snaplen = WTAP_MAX_PACKET_SIZE;
  else if (capture_opts.snaplen < MIN_PACKET_SIZE)
    capture_opts.snaplen = MIN_PACKET_SIZE;
  
  /* Check the value range of the ringbuffer_num_files parameter */
  if (capture_opts.ringbuffer_num_files < RINGBUFFER_MIN_NUM_FILES)
    capture_opts.ringbuffer_num_files = RINGBUFFER_MIN_NUM_FILES;
  else if (capture_opts.ringbuffer_num_files > RINGBUFFER_MAX_NUM_FILES)
    capture_opts.ringbuffer_num_files = RINGBUFFER_MAX_NUM_FILES;
#endif
  
  if (rfilter != NULL) {
    if (!dfilter_compile(rfilter, &rfcode)) {
      fprintf(stderr, "tethereal: %s\n", dfilter_error_msg);
      epan_cleanup();
      exit(2);
    }
  }
  cfile.rfcode = rfcode;
  if (cf_name) {
    err = open_cap_file(cf_name, FALSE, &cfile);
    if (err != 0) {
      epan_cleanup();
      exit(2);
    }
    err = load_cap_file(&cfile, out_file_type);
    if (err != 0) {
      epan_cleanup();
      exit(2);
    }
    cf_name[0] = '\0';
  } else {
    /* No capture file specified, so we're supposed to do a live capture;
       do we have support for live captures? */
#ifdef HAVE_LIBPCAP

#ifdef _WIN32
    if (!has_wpcap) {
	fprintf(stderr, "tethereal: Could not load wpcap.dll.\n");
	exit(2);
    }
#endif

    /* Yes; did the user specify an interface to use? */
    if (cfile.iface == NULL) {
        /* No - is a default specified in the preferences file? */
        if (prefs->capture_device != NULL) {
            /* Yes - use it. */
	    if_text = strrchr(prefs->capture_device, ' ');
	    if (if_text == NULL) {
            	cfile.iface = g_strdup(prefs->capture_device);
	    } else {
            	cfile.iface = g_strdup(if_text + 1); /* Skip over space */
	    }
        } else {
            /* No - pick the first one from the list of interfaces. */
            if_list = get_interface_list(&err, err_str);
            if (if_list == NULL) {
                switch (err) {

                case CANT_GET_INTERFACE_LIST:
                    fprintf(stderr, "tethereal: Can't get list of interfaces: %s\n",
			    err_str);
                    break;

                case NO_INTERFACES_FOUND:
                    fprintf(stderr, "tethereal: There are no interfaces on which a capture can be done\n");
                    break;
                }
                exit(2);
            }
	    if_text = strrchr(if_list->data, ' ');	/* first interface */
	    if (if_text == NULL) {
            	cfile.iface = g_strdup(if_list->data);
	    } else {
            	cfile.iface = g_strdup(if_text + 1); /* Skip over space */
	    }
            free_interface_list(if_list);
        }
    }
    capture(out_file_type);

    if (capture_opts.ringbuffer_on) {
      ringbuf_free();
    }
#else
    /* No - complain. */
    fprintf(stderr, "This version of Tethereal was not built with support for capturing packets.\n");
    exit(2);
#endif
  }
    /*ENST - print statistics to the file at the end */

    if (get_com_stats) {
	fprintf(stderr, "Printing to file\n");
	com_file=get_csf_name(firstsec);
	com_stats_print (cs,com_file);
    }
    if (get_traf_stats) {
	fprintf(stderr, "Printing to file\n");
	traf_file=get_tsf_name(firstsec,delay);
	traf_stats_print (tf,traf_file);
    }

  epan_cleanup();

  return 0;
}

#ifdef HAVE_LIBPCAP
/* Do the low-level work of a capture.
   Returns TRUE if it succeeds, FALSE otherwise. */
static int
capture(int out_file_type)
{
  gchar       open_err_str[PCAP_ERRBUF_SIZE];
  gchar       lookup_net_err_str[PCAP_ERRBUF_SIZE];
  bpf_u_int32 netnum, netmask;
  struct bpf_program fcode;
  void        (*oldhandler)(int);
  int         err = 0;
  int         volatile volatile_err = 0;
  int         volatile inpkts = 0;
  int         pcap_cnt;
  char        errmsg[1024+1];
  condition  *volatile cnd_stop_capturesize = NULL;
  condition  *volatile cnd_stop_timeout = NULL;
#ifndef _WIN32
  static const char ppamsg[] = "can't find PPA for ";
  char       *libpcap_warn;
#endif
  struct pcap_stat stats;
  gboolean    write_err;
  gboolean    dump_ok;

  /* Initialize all data structures used for dissection. */
  init_dissection();

  ld.linktype       = WTAP_ENCAP_UNKNOWN;
  ld.pdh            = NULL;

  /* Open the network interface to capture from it.
     Some versions of libpcap may put warnings into the error buffer
     if they succeed; to tell if that's happened, we have to clear
     the error buffer, and check if it's still a null string.  */
  open_err_str[0] = '\0';
  ld.pch = pcap_open_live(cfile.iface, capture_opts.snaplen,
			  capture_opts.promisc_mode, 1000, open_err_str);

  if (ld.pch == NULL) {
    /* Well, we couldn't start the capture. */
#ifdef _WIN32
    /* On Win32 OSes, the capture devices are probably available to all
       users; don't warn about permissions problems.

       Do, however, warn that Token Ring and PPP devices aren't supported. */
    snprintf(errmsg, sizeof errmsg,
	"The capture session could not be initiated (%s).\n"
	"Please check that you have the proper interface specified.\n"
	"\n"
	"Note that the driver Tethereal uses for packet capture on Windows\n"
	"doesn't support capturing on Token Ring interfaces, and doesn't\n"
	"support capturing on PPP/WAN interfaces in Windows NT/2000.\n",
	open_err_str);
#else
      /* If we got a "can't find PPA for XXX" message, warn the user (who
         is running Ethereal on HP-UX) that they don't have a version
	 of libpcap that properly handles HP-UX (libpcap 0.6.x and later
	 versions, which properly handle HP-UX, say "can't find /dev/dlpi
	 PPA for XXX" rather than "can't find PPA for XXX"). */
      if (strncmp(open_err_str, ppamsg, sizeof ppamsg - 1) == 0)
	libpcap_warn =
	  "\n\n"
	  "You are running Tethereal with a version of the libpcap library\n"
	  "that doesn't handle HP-UX network devices well; this means that\n"
	  "Tethereal may not be able to capture packets.\n"
	  "\n"
	  "To fix this, you should install libpcap 0.6.2, or a later version\n"
	  "of libpcap, rather than libpcap 0.4 or 0.5.x.  It is available in\n"
	  "packaged binary form from the Software Porting And Archive Centre\n"
	  "for HP-UX; the Centre is at http://hpux.connect.org.uk/ - the page\n"
	  "at the URL lists a number of mirror sites.";
      else
	libpcap_warn = "";
    snprintf(errmsg, sizeof errmsg,
      "The capture session could not be initiated (%s).\n"
      "Please check to make sure you have sufficient permissions, and that\n"
      "you have the proper interface specified.%s", open_err_str, libpcap_warn);
#endif
    goto error;
  }

  if (cfile.cfilter) {
    /* A capture filter was specified; set it up. */
    if (pcap_lookupnet(cfile.iface, &netnum, &netmask, lookup_net_err_str) < 0) {
      /*
       * Well, we can't get the netmask for this interface; it's used
       * only for filters that check for broadcast IP addresses, so
       * we just warn the user, and punt and use 0.
       */
      fprintf(stderr, 
        "Warning:  Couldn't obtain netmask info (%s).\n", lookup_net_err_str);
      netmask = 0;
    }
    if (pcap_compile(ld.pch, &fcode, cfile.cfilter, 1, netmask) < 0) {
      snprintf(errmsg, sizeof errmsg, "Unable to parse filter string (%s).",
	pcap_geterr(ld.pch));
      goto error;
    }
    if (pcap_setfilter(ld.pch, &fcode) < 0) {
      snprintf(errmsg, sizeof errmsg, "Can't install filter (%s).",
	pcap_geterr(ld.pch));
      goto error;
    }
  }

  ld.linktype = wtap_pcap_encap_to_wtap_encap(get_pcap_linktype(ld.pch,
	cfile.iface));
  if (cfile.save_file != NULL) {
    /* Set up to write to the capture file. */
    if (ld.linktype == WTAP_ENCAP_UNKNOWN) {
      strcpy(errmsg, "The network you're capturing from is of a type"
               " that Tethereal doesn't support.");
      goto error;
    }
    if (capture_opts.ringbuffer_on) {
      cfile.save_file_fd = ringbuf_init(cfile.save_file,
        capture_opts.ringbuffer_num_files);
      if (cfile.save_file_fd != -1) {
        ld.pdh = ringbuf_init_wtap_dump_fdopen(out_file_type, ld.linktype,
          pcap_snapshot(ld.pch), &err);
      } else {
      	err = errno;	/* "ringbuf_init()" failed */
        ld.pdh = NULL;
      }
    } else {
      ld.pdh = wtap_dump_open(cfile.save_file, out_file_type,
		 ld.linktype, pcap_snapshot(ld.pch), &err);
    }

    if (ld.pdh == NULL) {
      snprintf(errmsg, sizeof errmsg,
	       file_open_error_message(err, TRUE, out_file_type),
	       *cfile.save_file == '\0' ? "stdout" : cfile.save_file);
      goto error;
    }
  }

  /* Does "open_err_str" contain a non-empty string?  If so, "pcap_open_live()"
     returned a warning; print it, but keep capturing. */
  if (open_err_str[0] != '\0')
    fprintf(stderr, "tethereal: WARNING: %s.\n", open_err_str);

#ifdef _WIN32
  /* Catch a CTRL+C event and, if we get it, clean up and exit. */
  SetConsoleCtrlHandler(capture_cleanup, TRUE);
#else /* _WIN32 */
  /* Catch SIGINT and SIGTERM and, if we get either of them, clean up
     and exit.
     XXX - deal with signal semantics on various UNIX platforms.  Or just
     use "sigaction()" and be done with it? */
  signal(SIGTERM, capture_cleanup);
  signal(SIGINT, capture_cleanup);
  if ((oldhandler = signal(SIGHUP, capture_cleanup)) != SIG_DFL)
    signal(SIGHUP, oldhandler);
#endif /* _WIN32 */

  /* Let the user know what interface was chosen. */
  fprintf(stderr, "Capturing on %s\n", cfile.iface);

  /* initialize capture stop conditions */ 
  init_capture_stop_conditions();
  /* create stop conditions */
  if (capture_opts.has_autostop_filesize)
    cnd_stop_capturesize = cnd_new((char*)CND_CLASS_CAPTURESIZE,
                                   (long)capture_opts.autostop_filesize * 1000);
  if (capture_opts.has_autostop_duration)
    cnd_stop_timeout = cnd_new((char*)CND_CLASS_TIMEOUT,
                               (gint32)capture_opts.autostop_duration);

  if (!setjmp(ld.stopenv))
    ld.go = TRUE;
  else
    ld.go = FALSE;
  ld.packet_count = 0;
  while (ld.go) {
    /* We need to be careful with automatic variables defined in the
       outer scope which are changed inside the loop.  Most compilers
       don't try to roll them back to their original values after the
       longjmp which causes the loop to finish, but all that the
       standards say is that their values are indeterminate.  If we
       don't want them to be rolled back, we should define them with the
       volatile attribute (paraphrasing W. Richard Stevens, Advanced
       Programming in the UNIX Environment, p. 178).

       The "err" variable causes a particular problem.  If we give it
       the volatile attribute, then when we pass a reference to it (as
       in "&err") to a function, GCC warns: "passing arg <n> of
       <function> discards qualifiers from pointer target type".
       Therefore within the loop and just beyond we don't use "err".
       Within the loop we define "loop_err", and assign its value to
       "volatile_err", which is in the outer scope and is checked when
       the loop finishes.

       We also define "packet_count_prev" here to keep things tidy,
       since it's used only inside the loop.  If it were defined in the
       outer scope, GCC would give a warning (unnecessary in this case)
       that it might be clobbered, and we'd need to give it the volatile
       attribute to suppress the warning. */

    int loop_err = 0;
    int packet_count_prev = 0;

    if (cnd_stop_capturesize == NULL && cnd_stop_timeout == NULL) {
      /* We're not stopping at a particular capture file size, and we're
         not stopping after some particular amount of time has expired,
         so either we have no stop condition or the only stop condition
         is a maximum packet count.

         If there's no maximum packet count, pass it -1, meaning "until
         you run out of packets in the bufferful you read".  Otherwise,
         pass it the number of packets we have left to capture.

         We don't call "pcap_loop()" as, if we're saving to a file that's
         a FIFO, we want to flush the FIFO after we're done processing
         this libpcap bufferful of packets, so that the program
         reading the FIFO sees the packets immediately and doesn't get
         any partial packet, forcing it to block in the middle of reading
         that packet. */
      if (capture_opts.autostop_count == 0)
        pcap_cnt = -1;
      else {
        if (ld.packet_count >= capture_opts.autostop_count) {
          /* XXX do we need this test here? */
          /* It appears there's nothing more to capture. */
          break;
        }
        pcap_cnt = capture_opts.autostop_count - ld.packet_count;
      }
    } else {
      /* We need to check the capture file size or the timeout after
         each packet. */
      pcap_cnt = 1;
    }
    inpkts = pcap_dispatch(ld.pch, pcap_cnt, capture_pcap_cb, (guchar *) &ld);
    if (inpkts < 0) {
      /* Error from "pcap_dispatch()". */
      ld.go = FALSE;
    } else if (cnd_stop_timeout != NULL && cnd_eval(cnd_stop_timeout)) {
      /* The specified capture time has elapsed; stop the capture. */
      ld.go = FALSE;
    } else if (inpkts > 0) {
      if (capture_opts.autostop_count != 0 &&
                 ld.packet_count >= capture_opts.autostop_count) {
        /* The specified number of packets have been captured and have
           passed both any capture filter in effect and any read filter
           in effect. */
        ld.go = FALSE;
      } else if (cnd_stop_capturesize != NULL &&
                    cnd_eval(cnd_stop_capturesize, 
                              (guint32)wtap_get_bytes_dumped(ld.pdh))) {
        /* We're saving the capture to a file, and the capture file reached
           its maximum size. */
        if (capture_opts.ringbuffer_on) {
          /* Switch to the next ringbuffer file */
          if (ringbuf_switch_file(&cfile, &ld.pdh, &loop_err)) {
            /* File switch succeeded: reset the condition */
            cnd_reset(cnd_stop_capturesize);
          } else {
            /* File switch failed: stop here */
            volatile_err = loop_err;
            ld.go = FALSE;
          }
        } else {
          /* No ringbuffer - just stop. */
          ld.go = FALSE;
        }
      }
      if (ld.output_to_pipe) {
        if (ld.packet_count > packet_count_prev) {
          if (fflush(wtap_dump_file(ld.pdh))) {
            volatile_err = errno;
            ld.go = FALSE;
          }
          packet_count_prev = ld.packet_count;
        }
      }
    } /* inpkts > 0 */
  } /* while (ld.go) */
  
  /* delete stop conditions */
  if (cnd_stop_capturesize != NULL)
    cnd_delete(cnd_stop_capturesize);
  if (cnd_stop_timeout != NULL)
    cnd_delete(cnd_stop_timeout);

  if ((cfile.save_file != NULL) && !quiet) {
    /* We're saving to a file, which means we're printing packet counts
       to stderr if we are not running silent and deep.
       Send a newline so that we move to the line after the packet count. */
    fprintf(stderr, "\n");
  }

  /* If we got an error while capturing, report it. */
  if (inpkts < 0) {
    fprintf(stderr, "tethereal: Error while capturing packets: %s\n",
	pcap_geterr(ld.pch));
  }

  if (volatile_err == 0)
    write_err = FALSE;
  else {
    show_capture_file_io_error(cfile.save_file, volatile_err, FALSE);
    write_err = TRUE;
  }

  if (cfile.save_file != NULL) {
    /* We're saving to a file or files; close all files. */
    if (capture_opts.ringbuffer_on) {
      dump_ok = ringbuf_wtap_dump_close(&cfile, &err);
    } else {
      dump_ok = wtap_dump_close(ld.pdh, &err);
    }
    /* If we've displayed a message about a write error, there's no point
       in displaying another message about an error on close. */
    if (!dump_ok && !write_err)
      show_capture_file_io_error(cfile.save_file, err, TRUE);
  }

  /* Get the capture statistics, and, if any packets were dropped, report
     that. */
  if (pcap_stats(ld.pch, &stats) >= 0) {
    if (stats.ps_drop != 0) {
      fprintf(stderr, "%u packets dropped\n", stats.ps_drop);
    }
  } else {
    fprintf(stderr, "tethereal: Can't get packet-drop statistics: %s\n",
	pcap_geterr(ld.pch));
  }
  /* Report the number of captured packets if not reported during capture
     and we are saving to a file. */
  if (quiet && (cfile.save_file != NULL)) {
    fprintf(stderr, "%u packets captured\n", ld.packet_count);
  }

  pcap_close(ld.pch);

  return TRUE;

error:
  if (capture_opts.ringbuffer_on) {
    ringbuf_error_cleanup();
  }
  g_free(cfile.save_file);
  cfile.save_file = NULL;
  fprintf(stderr, "tethereal: %s\n", errmsg);
  if (ld.pch != NULL)
    pcap_close(ld.pch);

  return FALSE;
}

static void
capture_pcap_cb(guchar *user, const struct pcap_pkthdr *phdr,
  const guchar *pd)
{
  struct wtap_pkthdr whdr;
  union wtap_pseudo_header pseudo_header;
  loop_data *ld = (loop_data *) user;
  cb_args_t args;
  int err;

  /* Convert from libpcap to Wiretap format.
     If that fails, ignore the packet (wtap_process_pcap_packet has
     written an error message). */
  pd = wtap_process_pcap_packet(ld->linktype, phdr, pd, &pseudo_header,
				&whdr, &err);
  if (pd == NULL) {
    return;
  }

  args.cf = &cfile;
  args.pdh = ld->pdh;
  if (ld->pdh) {
    wtap_dispatch_cb_write((guchar *)&args, &whdr, 0, &pseudo_header, pd);
    /* Report packet capture count if not quiet */
    if (!quiet) {
      if (!decode) {
         if (ld->packet_count != 0) {
           fprintf(stderr, "\r%u ", ld->packet_count);
           /* stderr could be line buffered */
           fflush(stderr);
         }
      } else {
           wtap_dispatch_cb_print((guchar *)&args, &whdr, 0,
                                  &pseudo_header, pd);
      }
    }
  } else {
    wtap_dispatch_cb_print((guchar *)&args, &whdr, 0, &pseudo_header, pd);
  }
}

#ifdef _WIN32
static BOOL WINAPI
capture_cleanup(DWORD ctrltype _U_)
{
  /* CTRL_C_EVENT is sort of like SIGINT, CTRL_BREAK_EVENT is unique to
     Windows, CTRL_CLOSE_EVENT is sort of like SIGHUP, CTRL_LOGOFF_EVENT
     is also sort of like SIGHUP, and CTRL_SHUTDOWN_EVENT is sort of
     like SIGTERM at least when the machine's shutting down.

     For now, we handle them all as indications that we should clean up
     and quit, just as we handle SIGINT, SIGHUP, and SIGTERM in that
     way on UNIX.

     However, as handlers run in a new thread, we can't just longjmp
     out; we have to set "ld.go" to FALSE, and must return TRUE so that
     no other handler - such as one that would terminate the process -
     gets called.

     XXX - for some reason, typing ^C to Tethereal, if you run this in
     a Cygwin console window in at least some versions of Cygwin,
     causes Tethereal to terminate immediately; this routine gets
     called, but the main loop doesn't get a chance to run and
     exit cleanly, at least if this is compiled with Microsoft Visual
     C++ (i.e., it's a property of the Cygwin console window or Bash;
     it happens if Tethereal is not built with Cygwin - for all I know,
     building it with Cygwin may make the problem go away). */
  ld.go = FALSE;
  return TRUE;
}
#else
static void
capture_cleanup(int signum _U_)
{
  /* Longjmp back to the starting point; "pcap_dispatch()", on many
     UNIX platforms, just keeps looping if it gets EINTR, so if we set
     "ld.go" to FALSE and return, we won't break out of it and quit
     capturing. */
  longjmp(ld.stopenv, 1);
}
#endif /* _WIN32 */
#endif /* HAVE_LIBPCAP */

static int
load_cap_file(capture_file *cf, int out_file_type)
{
  gint         linktype;
  int          snapshot_length;
  wtap_dumper *pdh;
  int          err;
  int          success;
  cb_args_t    args;

  linktype = wtap_file_encap(cf->wth);
  if (cf->save_file != NULL) {
    /* Set up to write to the capture file. */
    snapshot_length = wtap_snapshot_length(cf->wth);
    if (snapshot_length == 0) {
      /* Snapshot length of input file not known. */
      snapshot_length = WTAP_MAX_PACKET_SIZE;
    }
    pdh = wtap_dump_open(cf->save_file, out_file_type,
		linktype, snapshot_length, &err);

    if (pdh == NULL) {
      /* We couldn't set up to write to the capture file. */
      switch (err) {

      case WTAP_ERR_UNSUPPORTED_FILE_TYPE:
        fprintf(stderr,
		"tethereal: Capture files can't be written in that format.\n");
        break;

      case WTAP_ERR_UNSUPPORTED_ENCAP:
      case WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED:
        fprintf(stderr,
          "tethereal: The capture file being read cannot be written in "
          "that format.\n");
        break;

      case WTAP_ERR_CANT_OPEN:
        fprintf(stderr,
          "tethereal: The file \"%s\" couldn't be created for some "
          "unknown reason.\n",
            *cf->save_file == '\0' ? "stdout" : cf->save_file);
        break;

      case WTAP_ERR_SHORT_WRITE:
        fprintf(stderr,
          "tethereal: A full header couldn't be written to the file \"%s\".\n",
		*cf->save_file == '\0' ? "stdout" : cf->save_file);
        break;

      default:
        fprintf(stderr,
          "tethereal: The file \"%s\" could not be created: %s\n.",
 		*cf->save_file == '\0' ? "stdout" : cf->save_file,
		wtap_strerror(err));
        break;
      }
      goto out;
    }
    args.cf = cf;
    args.pdh = pdh;
    success = wtap_loop(cf->wth, 0, wtap_dispatch_cb_write, (guchar *) &args,
 			&err);

    /* Now close the capture file. */
    if (!wtap_dump_close(pdh, &err))
      show_capture_file_io_error(cfile.save_file, err, TRUE);
  } else {
    args.cf = cf;
    args.pdh = NULL;
    success = wtap_loop(cf->wth, 0, wtap_dispatch_cb_print, (guchar *) &args,
 			&err);
  }
  if (!success) {
    /* Print up a message box noting that the read failed somewhere along
       the line. */
    switch (err) {

    case WTAP_ERR_UNSUPPORTED_ENCAP:
      fprintf(stderr,
"tethereal: \"%s\" is a capture file is for a network type that Tethereal doesn't support.\n",
	cf->filename);
      break;

    case WTAP_ERR_CANT_READ:
      fprintf(stderr,
"tethereal: An attempt to read from \"%s\" failed for some unknown reason.\n",
	cf->filename);
      break;

    case WTAP_ERR_SHORT_READ:
      fprintf(stderr,
"tethereal: \"%s\" appears to have been cut short in the middle of a packet.\n",
	cf->filename);
      break;

    case WTAP_ERR_BAD_RECORD:
      fprintf(stderr,
"tethereal: \"%s\" appears to be damaged or corrupt.\n",
	cf->filename);
      break;

    default:
      fprintf(stderr,
"tethereal: An error occurred while reading \"%s\": %s.\n",
	cf->filename, wtap_strerror(err));
      break;
    }
  }

out:
  wtap_close(cf->wth);
  cf->wth = NULL;

  return err;
}

static void
fill_in_fdata(frame_data *fdata, capture_file *cf,
	const struct wtap_pkthdr *phdr, long offset)
{
  fdata->next = NULL;
  fdata->prev = NULL;
  fdata->pfd = NULL;
  fdata->num = cf->count;
  fdata->pkt_len = phdr->len;
  fdata->cap_len = phdr->caplen;
  fdata->file_off = offset;
  fdata->lnk_t = phdr->pkt_encap;
  fdata->abs_secs  = phdr->ts.tv_sec;
  fdata->abs_usecs = phdr->ts.tv_usec;
  fdata->flags.passed_dfilter = 0;
  fdata->flags.encoding = CHAR_ASCII;
  fdata->flags.visited = 0;
  fdata->flags.marked = 0;

  /* If we don't have the time stamp of the first packet in the
     capture, it's because this is the first packet.  Save the time
     stamp of this packet as the time stamp of the first packet. */
  if (!firstsec && !firstusec) {
    firstsec  = fdata->abs_secs;
    firstusec = fdata->abs_usecs;
  }

  /* If we don't have the time stamp of the previous displayed packet,
     it's because this is the first displayed packet.  Save the time
     stamp of this packet as the time stamp of the previous displayed
     packet. */
  if (!prevsec && !prevusec) {
    prevsec  = fdata->abs_secs;
    prevusec = fdata->abs_usecs;
  }

  /* Get the time elapsed between the first packet and this packet. */
  compute_timestamp_diff(&fdata->rel_secs, &fdata->rel_usecs,
		fdata->abs_secs, fdata->abs_usecs, firstsec, firstusec);

  /* If it's greater than the current elapsed time, set the elapsed time
     to it (we check for "greater than" so as not to be confused by
     time moving backwards). */
  if ((gint32)cf->esec < fdata->rel_secs
	|| ((gint32)cf->esec == fdata->rel_secs && (gint32)cf->eusec < fdata->rel_usecs)) {
    cf->esec = fdata->rel_secs;
    cf->eusec = fdata->rel_usecs;
  }
  
  /* Get the time elapsed between the previous displayed packet and
     this packet. */
  compute_timestamp_diff(&fdata->del_secs, &fdata->del_usecs,
		fdata->abs_secs, fdata->abs_usecs, prevsec, prevusec);
  prevsec = fdata->abs_secs;
  prevusec = fdata->abs_usecs;
}

/* Free up all data attached to a "frame_data" structure. */
static void
clear_fdata(frame_data *fdata)
{
  if (fdata->pfd)
    g_slist_free(fdata->pfd);
}

static void
wtap_dispatch_cb_write(guchar *user, const struct wtap_pkthdr *phdr,
  long offset, union wtap_pseudo_header *pseudo_header, const guchar *buf)
{
  cb_args_t    *args = (cb_args_t *) user;
  capture_file *cf = args->cf;
  wtap_dumper  *pdh = args->pdh;
  frame_data    fdata;
  int           err;
  gboolean      passed;
  epan_dissect_t *edt;

  cf->count++;
  if (cf->rfcode) {
    fill_in_fdata(&fdata, cf, phdr, offset);
    edt = epan_dissect_new(TRUE, FALSE);
    epan_dissect_prime_dfilter(edt, cf->rfcode);
    epan_dissect_run(edt, pseudo_header, buf, &fdata, NULL);
    passed = dfilter_apply_edt(cf->rfcode, edt);
  } else {
    passed = TRUE;
    edt = NULL;
  }
  if (passed) {
    /* The packet passed the read filter. */
#ifdef HAVE_LIBPCAP
    ld.packet_count++;
#endif
    if (!wtap_dump(pdh, phdr, pseudo_header, buf, &err)) {
#ifdef HAVE_LIBPCAP
      if (ld.pch != NULL && !quiet) {
      	/* We're capturing packets, so (if -q not specified) we're printing
           a count of packets captured; move to the line after the count. */
        fprintf(stderr, "\n");
      }
#endif
      show_capture_file_io_error(cf->save_file, err, FALSE);
#ifdef HAVE_LIBPCAP
      if (ld.pch != NULL)
        pcap_close(ld.pch);
#endif
      wtap_dump_close(pdh, &err);
      exit(2);
    }
  }
  if (edt != NULL)
    epan_dissect_free(edt);
  if (cf->rfcode)
    clear_fdata(&fdata);
}

static void
show_capture_file_io_error(const char *fname, int err, gboolean is_close)
{
  if (*fname == '\0')
    fname = "stdout";

  switch (err) {

  case ENOSPC:
    fprintf(stderr,
"tethereal: Not all the packets could be written to \"%s\" because there is "
"no space left on the file system.\n",
	fname);
    break;

#ifdef EDQUOT
  case EDQUOT:
    fprintf(stderr,
"tethereal: Not all the packets could be written to \"%s\" because you are "
"too close to, or over your disk quota.\n",
	fname);
  break;
#endif

  case WTAP_ERR_CANT_CLOSE:
    fprintf(stderr,
"tethereal: \"%s\" couldn't be closed for some unknown reason.\n",
	fname);
    break;

  case WTAP_ERR_SHORT_WRITE:
    fprintf(stderr,
"tethereal: Not all the packets could be written to \"%s\".\n",
	fname);
    break;

  default:
    if (is_close) {
      fprintf(stderr,
"tethereal: \"%s\" could not be closed: %s.\n",
	fname, wtap_strerror(err));
    } else {
      fprintf(stderr,
"tethereal: An error occurred while writing to \"%s\": %s.\n",
	fname, wtap_strerror(err));
    }
    break;
  }
}

static void
wtap_dispatch_cb_print(guchar *user, const struct wtap_pkthdr *phdr,
  long offset, union wtap_pseudo_header *pseudo_header, const guchar *buf)
{
  cb_args_t    *args = (cb_args_t *) user;
  capture_file *cf = args->cf;
  frame_data    fdata;
  gboolean      passed;
  print_args_t  print_args;
  epan_dissect_t *edt;
  gboolean      create_proto_tree;
  int           i;

  cf->count++;

  fill_in_fdata(&fdata, cf, phdr, offset);

  passed = TRUE;

/* ENST - if we want to get the communication and protocol statics, we have to create the information tree of each packet */
  if (cf->rfcode || verbose || get_com_stats)
    create_proto_tree = TRUE;
  else
    create_proto_tree = FALSE;
  /* The protocol tree will be "visible", i.e., printed, only if we're
     not printing a summary.

     We only need the columns if we're *not* verbose; in verbose mode,
     we print the protocol tree, not the protocol summary. */
  edt = epan_dissect_new(create_proto_tree, verbose);
  if (cf->rfcode) {
    epan_dissect_prime_dfilter(edt, cf->rfcode);
  }
  epan_dissect_run(edt, pseudo_header, buf, &fdata, verbose ? NULL : &cf->cinfo);
  if (cf->rfcode) {
    passed = dfilter_apply_edt(cf->rfcode, edt);
  }
  if (passed) {
    /* The packet passed the read filter. */

    /* ENST - update information */ 
      if (get_com_stats) {
	  update_stats (edt,&cs,fdata);
      }
      if (get_traf_stats) {
	  update_traff_info (tf,fdata);
      }
      if (capture_opts.has_max_packets || capture_opts.has_max_bytes) {
	  update_monitor_info (edt,&fm,fdata);
      }
#ifdef HAVE_LIBPCAP
    ld.packet_count++;
#endif
    if (!quiet) {
	if (verbose) {
	    /* Print the information in the protocol tree. */
	    print_args.to_file = TRUE;
	    print_args.format = PR_FMT_TEXT;
	    print_args.print_summary = FALSE;
	    print_args.print_hex = print_hex;
	    print_args.expand_all = TRUE;
	    print_args.suppress_unmarked = FALSE;
	    proto_tree_print(&print_args, edt, stdout);
	    if (!print_hex) {
		/* "print_hex_data()" will put out a leading blank line, as well
		   as a trailing one; print one here, to separate the packets,
		   only if "print_hex_data()" won't be called. */
		printf("\n");
	    }
	} else {
	    /* Just fill in the columns. */
	    epan_dissect_fill_in_columns(edt);
	
	/* Now print them. */
	for (i = 0; i < cf->cinfo.num_cols; i++) {
	    switch (cf->cinfo.col_fmt[i]) {
		case COL_NUMBER:
		    /*
		     * Don't print this if we're doing a live capture from a network
		     * interface - if we're doing a live capture, you won't be
		     * able to look at the capture in the future (it's not being
		     * saved anywhere), so the frame numbers are unlikely to be
		     * useful.
		     *
		     * (XXX - it might be nice to be able to save and print at
		     * the same time, sort of like an "Update list of packets
		     * in real time" capture in Ethereal.)
		     */
		    if (cf->iface != NULL)
			continue;
		    printf("%3s", cf->cinfo.col_data[i]);
		    break;
		    
		case COL_CLS_TIME:
		case COL_REL_TIME:
		case COL_ABS_TIME:
		case COL_ABS_DATE_TIME:	/* XXX - wider */
		    printf("%10s", cf->cinfo.col_data[i]);
		    break;

		case COL_DEF_SRC:
		case COL_RES_SRC:
		case COL_UNRES_SRC:
		case COL_DEF_DL_SRC:
		case COL_RES_DL_SRC:
		case COL_UNRES_DL_SRC:
		case COL_DEF_NET_SRC:
		case COL_RES_NET_SRC:
		case COL_UNRES_NET_SRC:
		    printf("%12s", cf->cinfo.col_data[i]);
		    break;
		    
		case COL_DEF_DST:
		case COL_RES_DST:
		case COL_UNRES_DST:
		case COL_DEF_DL_DST:
		case COL_RES_DL_DST:
		case COL_UNRES_DL_DST:
		case COL_DEF_NET_DST:
		case COL_RES_NET_DST:
		case COL_UNRES_NET_DST:
		    printf("%-12s", cf->cinfo.col_data[i]);
		    break;
		    
		default:
		    printf("%s", cf->cinfo.col_data[i]);
		    break;
	    }
	    if (i != cf->cinfo.num_cols - 1) {
		/*
		 * This isn't the last column, so we need to print a
		 * separator between this column and the next.
		 *
		 * If we printed a network source and are printing a
		 * network destination of the same type next, separate
		 * them with "->"; if we printed a network destination
		 * and are printing a network source of the same type
		 * next, separate them with "<-"; otherwise separate them
		 * with a space.
		 */
		switch (cf->cinfo.col_fmt[i]) {
		    
		    case COL_DEF_SRC:
		    case COL_RES_SRC:
		    case COL_UNRES_SRC:
			switch (cf->cinfo.col_fmt[i + 1]) {

			    case COL_DEF_DST:
			    case COL_RES_DST:
			    case COL_UNRES_DST:
				printf(" -> ");
				break;
				
			    default:
				putchar(' ');
				break;
			}
			break;
	    
		    case COL_DEF_DL_SRC:
		    case COL_RES_DL_SRC:
		    case COL_UNRES_DL_SRC:
			switch (cf->cinfo.col_fmt[i + 1]) {
			    
			    case COL_DEF_DL_DST:
			    case COL_RES_DL_DST:
			    case COL_UNRES_DL_DST:
				printf(" -> ");
				break;
				
			    default:
				putchar(' ');
				break;
			}
			break;

		    case COL_DEF_NET_SRC:
		    case COL_RES_NET_SRC:
		    case COL_UNRES_NET_SRC:
			switch (cf->cinfo.col_fmt[i + 1]) {
			    
			    case COL_DEF_NET_DST:
			    case COL_RES_NET_DST:
			    case COL_UNRES_NET_DST:
				printf(" -> ");
				break;

			    default:
				putchar(' ');
				break;
			}
			break;
			
		    case COL_DEF_DST:
		    case COL_RES_DST:
		    case COL_UNRES_DST:
			switch (cf->cinfo.col_fmt[i + 1]) {
			    
			    case COL_DEF_SRC:
			    case COL_RES_SRC:
			    case COL_UNRES_SRC:
				printf(" <- ");
				break;
				
			    default:
				putchar(' ');
				break;
			}
			break;
			
		    case COL_DEF_DL_DST:
		    case COL_RES_DL_DST:
		    case COL_UNRES_DL_DST:
			switch (cf->cinfo.col_fmt[i + 1]) {
			    
			    case COL_DEF_DL_SRC:
			    case COL_RES_DL_SRC:
			    case COL_UNRES_DL_SRC:
				printf(" <- ");
				break;

			    default:
				putchar(' ');
				break;
			}
			break;

		    case COL_DEF_NET_DST:
		    case COL_RES_NET_DST:
		    case COL_UNRES_NET_DST:
			switch (cf->cinfo.col_fmt[i + 1]) {

			    case COL_DEF_NET_SRC:
			    case COL_RES_NET_SRC:
			    case COL_UNRES_NET_SRC:
				printf(" <- ");
				break;
				
			    default:
				putchar(' ');
				break;
			}
			break;
	    
		    default:
			putchar(' ');
			break;
		}
	    }
	}
	putchar('\n');
	}
    }
    if (print_hex) {
      print_hex_data(stdout, print_args.format, edt);
      putchar('\n');
    }
  }

  /* The ANSI C standard does not appear to *require* that a line-buffered
     stream be flushed to the host environment whenever a newline is
     written, it just says that, on such a stream, characters "are
     intended to be transmitted to or from the host environment as a
     block when a new-line character is encountered".

     The Visual C++ 6.0 C implementation doesn't do what is intended;
     even if you set a stream to be line-buffered, it still doesn't
     flush the buffer at the end of every line.

     So, if the "-l" flag was specified, we flush the standard output
     at the end of a packet.  This will do the right thing if we're
     printing packet summary lines, and, as we print the entire protocol
     tree for a single packet without waiting for anything to happen,
     it should be as good as line-buffered mode if we're printing
     protocol trees.  (The whole reason for the "-l" flag in either
     tcpdump or Tethereal is to allow the output of a live capture to
     be piped to a program or script and to have that script see the
     information for the packet as soon as it's printed, rather than
     having to wait until a standard I/O buffer fills up. */
  if (line_buffered)
    fflush(stdout);

  epan_dissect_free(edt);

  clear_fdata(&fdata);
}

char *
file_open_error_message(int err, gboolean for_writing, int file_type)
{
  char *errmsg;
  static char errmsg_errno[1024+1];

  switch (err) {

  case WTAP_ERR_NOT_REGULAR_FILE:
    errmsg = "The file \"%s\" is a \"special file\" or socket or other non-regular file.";
    break;

  case WTAP_ERR_FILE_UNKNOWN_FORMAT:
  case WTAP_ERR_UNSUPPORTED:
    /* Seen only when opening a capture file for reading. */
    errmsg = "The file \"%s\" is not a capture file in a format Tethereal understands.";
    break;

  case WTAP_ERR_CANT_WRITE_TO_PIPE:
    /* Seen only when opening a capture file for writing. */
    snprintf(errmsg_errno, sizeof(errmsg_errno),
	     "The file \"%%s\" is a pipe, and %s capture files cannot be "
	     "written to a pipe.", wtap_file_type_string(file_type));
    errmsg = errmsg_errno;
    break;

  case WTAP_ERR_UNSUPPORTED_FILE_TYPE:
    /* Seen only when opening a capture file for writing. */
    errmsg = "Tethereal does not support writing capture files in that format.";
    break;

  case WTAP_ERR_UNSUPPORTED_ENCAP:
  case WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED:
    if (for_writing)
      errmsg = "Tethereal cannot save this capture in that format.";
    else
      errmsg = "The file \"%s\" is a capture for a network type that Tethereal doesn't support.";
    break;

  case WTAP_ERR_BAD_RECORD:
    errmsg = "The file \"%s\" appears to be damaged or corrupt.";
    break;

  case WTAP_ERR_CANT_OPEN:
    if (for_writing)
      errmsg = "The file \"%s\" could not be created for some unknown reason.";
    else
      errmsg = "The file \"%s\" could not be opened for some unknown reason.";
    break;

  case WTAP_ERR_SHORT_READ:
    errmsg = "The file \"%s\" appears to have been cut short"
             " in the middle of a packet or other data.";
    break;

  case WTAP_ERR_SHORT_WRITE:
    errmsg = "A full header couldn't be written to the file \"%s\".";
    break;

  case ENOENT:
    if (for_writing)
      errmsg = "The path to the file \"%s\" does not exist.";
    else
      errmsg = "The file \"%s\" does not exist.";
    break;

  case EACCES:
    if (for_writing)
      errmsg = "You do not have permission to create or write to the file \"%s\".";
    else
      errmsg = "You do not have permission to read the file \"%s\".";
    break;

  case EISDIR:
    errmsg = "\"%s\" is a directory (folder), not a file.";
    break;

  default:
    snprintf(errmsg_errno, sizeof(errmsg_errno),
	     "The file \"%%s\" could not be %s: %s.",
	     for_writing ? "created" : "opened",
	     wtap_strerror(err));
    errmsg = errmsg_errno;
    break;
  }
  return errmsg;
}

int
open_cap_file(char *fname, gboolean is_tempfile, capture_file *cf)
{
  wtap       *wth;
  int         err;
  char        err_msg[2048+1];

  wth = wtap_open_offline(fname, &err, FALSE);
  if (wth == NULL)
    goto fail;

  /* The open succeeded.  Fill in the information for this file. */

  /* Initialize all data structures used for dissection. */
  init_dissection();

  cf->wth = wth;
  cf->filed = -1;	/* not used, but set it anyway */
  cf->f_len = 0;	/* not used, but set it anyway */

  /* Set the file name because we need it to set the follow stream filter.
     XXX - is that still true?  We need it for other reasons, though,
     in any case. */
  cf->filename = g_strdup(fname);

  /* Indicate whether it's a permanent or temporary file. */
  cf->is_tempfile = is_tempfile;

  /* If it's a temporary capture buffer file, mark it as not saved. */
  cf->user_saved = !is_tempfile;

  cf->cd_t      = wtap_file_type(cf->wth);
  cf->count     = 0;
  cf->drops_known = FALSE;
  cf->drops     = 0;
  cf->esec      = 0;
  cf->eusec     = 0;
  cf->snap      = wtap_snapshot_length(cf->wth);
  if (cf->snap == 0) {
    /* Snapshot length not known. */
    cf->has_snap = FALSE;
    cf->snap = WTAP_MAX_PACKET_SIZE;
  } else
    cf->has_snap = TRUE;
  cf->progbar_quantum = 0;
  cf->progbar_nextstep = 0;
  firstsec = 0, firstusec = 0;
  prevsec = 0, prevusec = 0;
 
  return (0);

fail:
  snprintf(err_msg, sizeof err_msg, file_open_error_message(err, FALSE, 0),
	   fname);
  fprintf(stderr, "tethereal: %s\n", err_msg);
  return (err);
}
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "globals.h"
#include "traffic_stats.h"
#include <stdio.h>
#include <glib.h>
#include <string.h>
#include <time.h>

typedef struct {
    guint32 tot_packets;  /* Total number of packets captured in the current time interval */
    guint32 tot_bytes;    /* Total number of bytes captured in the current time interval */
    gint32 start_sec;     /* Relative second in wich has started the current time interval */  
} traf_node;




// traf_stats *
void
update_traff_info( traf_stats *ts, frame_data frame)
{
/* Update the statics with the current frame info */
    traf_node *traff, *traff2;
    GSList  *traf_list;

    traf_list = ts->traf_list;
     
    traff=((traf_node *)traf_list->data);
    /* if the current time interval has expired create a new node */ 
    if  (frame.rel_secs - traff->start_sec >= ts-> delay) {
	traff2=g_new (traf_node,1);
	traff2->start_sec = traff->start_sec + ts->delay;
	traff2->tot_packets=1;
	traff2->tot_bytes=frame.pkt_len;
	ts->traf_list=g_slist_prepend (traf_list,traff2);
    }
    else { /* else update the current node info */
       	 traff->tot_packets++;
	 traff->tot_bytes+=frame.pkt_len;
    }

//     return ts;
}

traf_stats*
traf_stats_init(gint delay)
{
/* Get ready the structure that hold the traffic info */ 
    traf_stats	*tf;
    traf_node *tn;

    tf = g_new(traf_stats, 1);
    tf->delay=delay; 
    tf->traf_list=NULL;
    tn=g_new (traf_node,1);
    tn->start_sec=0;
    tn->tot_packets=0;
    tn->tot_bytes=0;
    tf->traf_list=g_slist_prepend(tf->traf_list,tn);
    return tf;
}

char * 
get_tsf_name (guint32 abs_secs,gint delay)
{
/* This function gets as argument a numer of seconds  and returns a string 
   that gives the name to the output file of the analysis */ 

  struct tm *tmp;
  char *file=g_new(char,35);


  tmp = localtime(&abs_secs);
  if (tmp != NULL) {
       snprintf(file ,35,"traffic_i-%d_%02d-%02d_%02d:%02d.txt",
	     delay,
             tmp->tm_mon + 1,
             tmp->tm_mday,
             tmp->tm_hour,
             tmp->tm_min);  
  } 
  else {
    file[0] = '\0';
    }
  
  return file;
}


void
print_traf_node (gpointer element, gpointer data)
{
/* prints all the info of a certain traffic node */ 
    FILE *output;
    traf_node *tn;

    output= data;
    tn=(traf_node *)element;

    fprintf (output,"%6d %10u %10u \n", tn->start_sec, tn->tot_packets, tn->tot_bytes );
}


void
traf_stats_free(traf_stats *tf)
{
/* This function frees all the memory allocated for the traffic analysis */
	
	if (tf->traf_list)
	    g_slist_free (tf->traf_list);

	g_free(tf);
}

void
traf_stats_print (traf_stats *tf, char *print_file) 
{
/* Function that prints all the info collected in tha traffic analysis */
    FILE *output;
    
    if (print_file == NULL) {
	fprintf(stderr,"Error: No statistics file defined\n");
	exit (-1);
    }
    else {
	output=fopen (print_file,"w");
    }
    fprintf (output,"%6s %10s %10s \n\n", "Start","N Packets","N Bytes");
    if (tf->traf_list) {
	g_slist_foreach (g_slist_reverse (tf->traf_list), print_traf_node, output);
    }
    fclose (output);
    traf_stats_free (tf);
    
}






















#include <glib.h>

typedef struct {
    gint delay;
    GSList *traf_list;
} traf_stats;

char * get_tsf_name (guint32 abs_secs,gint delay);
traf_stats * traf_stats_init (gint delay) ;
// traf_stats * 
void update_traff_info ( traf_stats *ts, frame_data frame);
void traf_stats_print (traf_stats *tf, char *print_file);


Attachment: user manual.ps
Description: PostScript document