aboutsummaryrefslogtreecommitdiffstats
path: root/capture-pcap-util.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove all $Id$ from top of fileAlexis La Goutte2014-03-041-2/+0
| | | | | | | | | | (Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
* Update Free Software Foundation address.Jakub Zawadzki2012-06-281-1/+1
| | | | | | (COPYING will be updated in next commit) svn path=/trunk/; revision=43536
* Add 'extern "C"' wrappers and #include guards to various header files.Gerald Combs2011-12-291-2/+2
| | | | svn path=/trunk/; revision=40321
* Move get_pcap_linktype() into dumpcap - it's not used elsewhere.Guy Harris2010-05-181-5/+0
| | | | svn path=/trunk/; revision=32853
* For TShark and Wireshark, get the list of link-layer types for anGuy Harris2010-05-071-2/+0
| | | | | | | | interface by running dumpcap, so that if you need privileges to open an interface, and dumpcap has those privileges, neither TShark nor Wireshark need them. svn path=/trunk/; revision=32710
* In Wireshark and TShark, run dumpcap to get interface lists and lists ofGuy Harris2010-03-041-45/+3
| | | | | | | | link-layer header types for interfaces; if special privileges are necessary to open capture devices, Wireshark and TShark shouldn't have those privileges, but dumpcap should. svn path=/trunk/; revision=32104
* Move a routine into dumpcap - it's not used outside dumpcap.Guy Harris2010-02-271-1/+0
| | | | svn path=/trunk/; revision=32042
* Have the minimum snapshot length be 1 byte, and have a snapshot lengthGuy Harris2009-02-231-7/+6
| | | | | | | | of 0 mean 65535, similar to what tcpdump does. Fixes bug 2731. svn path=/trunk/; revision=27526
* If we don't have any of the pcap_datalink_XXX_to_YYY routines,Guy Harris2008-12-211-4/+0
| | | | | | | | | | | | | substitute our own (I wrote them all, so I can steal them from the BSD-licensed libpcap if I want :-)). This means that linktype_name_to_val() and linktype_val_to_name() are always available, and we don't need to #ifdef use of them. Use pcap_datalink_val_to_description() to get the description for a particular DLT_ value, rather than mapping the DLT_ value to a WTAP_ENCAP_ value and getting the description for the latter. svn path=/trunk/; revision=27074
* Constify some arguments.Guy Harris2008-02-211-1/+1
| | | | svn path=/trunk/; revision=24407
* Support for RPCAP features in GUI (from Boris Misenov, see Bug 1366)Tomas Kukosa2007-12-041-0/+5
| | | | | | | | | | | | - retrieving the list of remote PCAP interfaces - password authentication support - UDP data fransfer - packet sampling (available in WinPcap 4.x) etc. fix problem if non-default rpcap port is used svn path=/trunk/; revision=23750
* Add a "-S" flag to dumpcap, which prints out interface statistics. UseGerald Combs2007-08-021-1/+1
| | | | | | | | this in the GUI rather than calling pcap_stats() directly. This gets rid of the last pcap_open_live() call in the GUI code. Update README.packaging. svn path=/trunk/; revision=22443
* One more step in privilege separation.Gerald Combs2007-06-111-3/+4
| | | | | | | | | | | | | Add a capture_interface_list(), which works similar to get_interface_list() except that it forks dumpcap instead of calling the pcap routines directly. Use it in the GUI. Add a "-I" flag to dumpcap, which prints out verbose interface information. Tested under Windows and Linux. svn path=/trunk/; revision=22071
* fix gcc warning about qualifier types (const) which are discarded when arrivingSebastien Tandel2007-04-131-1/+1
| | | | | | at the pcap interface. svn path=/trunk/; revision=21417
* Have the routines to get interface lists take a pointer to a "gchar *"Guy Harris2007-01-211-15/+2
| | | | | | | | | | | | | | | | | | | | as an argument, and, on an error, if they have an error message, have them set that "gchar *" to point to a g_malloc()ed string containing the error message, rather than taking a pointer to a buffer for that message as an argument. That's more like what's done in Wiretap, and doesn't impose an upper limit on the lengths of those error messages. If that pointer is null, don't allocate the message string and return it. Have that error message already have the "cant_get" processing applied to it, so nobody other than those routines need to call the "cant_get" routines to process the error messages. Have get_airpcap_interface_list() explicitly set "*err" to the appropriate error code. Clean up indentation. svn path=/trunk/; revision=20521
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* fix a wrong comment: AF_INET -> AT_IPv4Ulf Lamping2006-03-251-1/+1
| | | | svn path=/trunk/; revision=17729
* remove dependencies to pcap.h, so getting an idea what needs to be done by ↵Ulf Lamping2006-02-171-12/+30
| | | | | | | | dumpcap in addition to the things already done now various dumpcap related code cleanup: mainly #include's and capture engine related stuff svn path=/trunk/; revision=17327
* Constify a bunch of arguments and variables, to squelch compilerGuy Harris2005-12-141-2/+2
| | | | | | | | | | | | | | | | | warnings. Include "wiretap/libpcap.h" in "capture_loop.h", to get its declarations of data structures for headers in libpcap files. This lets us remove the includes of "wiretap/libpcap.h from files including "capture_loop.h". Make "log_func_ignore()" in "tethereal.c" static, and declare some of its arguments unused. Also get rid of an unused variable. Include <pcap.h> before including "wiretap/wtap-capture.h", to declare "struct pcap_pkthdr". svn path=/trunk/; revision=16791
* rename pcap-....c/.h files to capture-pcap-....c/.hUlf Lamping2005-12-061-0/+120
this way, the capture prefix will "logically" group the files together and file browsers will also group them we may want to move the files into a subdir capture later svn path=/trunk/; revision=16691