aboutsummaryrefslogtreecommitdiffstats
path: root/capinfos.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-14From Andrew Feren (bug 2462):Stig Bjørlykke1-1/+11
Patch to print packet rate. From me: Document -x option in man page. svn path=/trunk/; revision=25024
2008-03-16Don't link plugins against libwireshark: any program that loads the dissectorJeff Morriss1-5/+5
plugins should already be linked against libwireshark. Don't link capinfos and editcap against libwireshark: they only needed to be because the plugins were linked against libwireshark (see rev 24123 and the ensuing discussion on -dev). capinfos and editcap: don't complain if plugins fail to load: dissector plugins should fail to load because they need libwireshark. I am assuming here that wiretap plugins don't need libwireshark (I've never seen such a plugin but LEGO's code and comments suggest this is the case). (The goal of this checkin is to stop linking capinfos and editcap against libwireshark while still allowing wiretap plugins. Since we don't have any such plugins in the tree I do somewhat doubt the need for all this but I don't want to be the one to remove the functionality.) svn path=/trunk/; revision=24650
2008-03-16Include epan/priveleges.h for get_credential_info()Jeff Morriss1-0/+1
svn path=/trunk/; revision=24649
2008-03-16Have started_with_special_privs() assert out if get_credential_info() was notJeff Morriss1-2/+11
previously called. This prevents the function from always returning TRUE in programs that hadn't called get_credential_info(). Call get_credential_info() in the programs that should have been. svn path=/trunk/; revision=24648
2007-12-06Use G_GINT64_MODIFIER rather than PRI[duox]64 to print gint64's andGuy Harris1-2/+2
guint64's. svn path=/trunk/; revision=23782
2007-09-29Fix typo.Guy Harris1-1/+1
svn path=/trunk/; revision=23027
2007-09-25Add the file encapsulation.Gerald Combs1-24/+37
svn path=/trunk/; revision=22962
2007-08-07Make sure that wiretap plugins are loaded before dissectors are (if a new ↵Luis Ontanon1-1/+0
encap type is registered the plugin probably needs it before reg_handoff) svn path=/trunk/; revision=22461
2007-06-17Have editcap and capinfos compile --without-pluginsLuis Ontanon1-5/+7
Should go in 0.99.6 svn path=/trunk/; revision=22116
2007-05-25Have editcap and capinfos loading the wiretap plugins.Luis Ontanon1-2/+30
epan/filesystem.c have get_plugin_dir() calling init_plugin_dir() if necessary epan/epan.c and epan/report_err.c move the report_failure family into the new report_err.c file, have epan_init() calling the initializer epan/plugins.h and epan/proto.c do not have init_plugins() calling the proto_reg functions instead do it in init_proto() gtk/main.c and tshark.c init_plugin_dir() has become suprefluous capinfos.c and editcap.c load the wiretap plugins Makefiles do what's needed to build withe the above changes. svn path=/trunk/; revision=21935
2007-01-28If no packets in input file then don't calc packets/sec, etcBill Meier1-7/+10
svn path=/trunk/; revision=20587
2006-11-05change all file offsets from long to gint64 so we can - theoretically - ↵Ulf Lamping1-1/+1
handle files > 2GB correct. Please distclean Win32 builds! svn path=/trunk/; revision=19814
2006-06-14Print help to output, not to errorJörg Mayer1-3/+3
svn path=/trunk/; revision=18464
2006-05-28Ethereal->WiresharkAnders Broman1-1/+1
svn path=/trunk/; revision=18235
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-01-11same command line related changes as recently done with editcapUlf Lamping1-16/+32
svn path=/trunk/; revision=16996
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-3/+3
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-19Add APIs to Wiretap to return the file of the size as supplied by the OSGuy Harris1-11/+8
(so if the file's gzipped, it's *NOT* the size of the file after uncompressing), and an approximation of the amount of that data read sequentially so far. Use those for various progress bars and the like. Make the fstat() in the Ascend trace reader directly use wth->fd, as it's inside Wiretap; that gets rid of the last caller of wtap_fd() (as we're no longer directly using fstat() or lseek() in Ethereal), so get rid of wtap_fd(). svn path=/trunk/; revision=15437
2005-01-11Improve the error reporting.Guy Harris1-14/+26
Remove a duplicate #include, and shuffle the includes a bit to put OS includes before other includes. svn path=/trunk/; revision=13003
2005-01-03Let capinfos print statistics for more than one file. NormalizeGerald Combs1-22/+30
capitalization. svn path=/trunk/; revision=12945
2004-10-20renamed capinfo to capinfos, as the former name capinfo was already used in ↵Ulf Lamping1-0/+332
a program called tcprelay, so that might confuse packaging managers and users. Hopefully I got all the places need to be changed. svn path=/trunk/; revision=12358