aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/pcap-common.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-20Fix the dead initialization warnings found by clang's static analysisStephen Fisher1-1/+1
("Value stored to 'xxx' during its initialization is never read") svn path=/trunk/; revision=35598
2010-12-19Prepare for handling DLT_IPV4 and DLT_IPV6.Jaap Keuter1-0/+4
svn path=/trunk/; revision=35223
2010-11-29Fix typos.Chris Maynard1-2/+2
svn path=/trunk/; revision=35063
2010-11-24Add support for USB isochronous. From Marton Nemeth via bug #5370.Chris Maynard1-11/+73
svn path=/trunk/; revision=35025
2010-08-07From Jon Smirl:Stig Bjørlykke1-1/+2
Added "IEEE 802.15.4 Wireless PAN no fcs". svn path=/trunk/; revision=33728
2010-06-06Don't use fwrite directly when writing a dump file; call it throughGuy Harris1-22/+3
wtap_dump_file_write(). Replace various wrappers around fwrite() with wtap_dump_file_write(), or at least make the wrappers call wtap_dump_file_write(). svn path=/trunk/; revision=33116
2010-06-06Rename wtap_dump_file_write_all() to wtap_dump_file_write(), and haveGuy Harris1-42/+6
everybody use it; the places using the old wtap_dump_file_write() were using it in the same way the old wtap_dump_file_write_all() did. That also lets us get rid of wtap_dump_file_ferror(). Also, have the new wtap_dump_file_write() check for errors from gzwrite() and fwrite() differently - the former returns 0 on error, the latter can return a short write on error. svn path=/trunk/; revision=33113
2010-05-16Attempt to handle isochronous descriptors between the 64-byte header andGuy Harris1-2/+142
the payload. Should fix bug 4401. svn path=/trunk/; revision=32828
2010-04-27Whitespace changes.Anders Broman1-23/+23
svn path=/trunk/; revision=32575
2010-04-21From Chris Maynard:Guy Harris1-70/+53
Support PPP-over-USB. Don't remove the USB pseudo-header from the packet data for Linux USB packets, just byte-swap it if necessary and have the USB dissector fetch the pseudo-header from the raw packet data. Update USB language ID values. svn path=/trunk/; revision=32534
2010-02-23Move the declarations of wtap_pcap_encap_to_wtap_encap() andGuy Harris1-0/+1
wtap_wtap_encap_to_pcap_encap() to wiretap/pcap-encap.h. Include it where it's needed; don't include other Wiretap headers where they're not needed. Include pcapng.h in pcapng.c, to declare the functions defined in pcapng.c. Add some casts to squelch some warnings, and add to a comment to indicate one of the problems. svn path=/trunk/; revision=31960
2009-12-17From Petr Sumbera:Stig Bjørlykke1-1/+1
Small comment fix. svn path=/trunk/; revision=31293
2009-12-08From Felix Obenhuber via bug #4299: SocketCAN dissector patchStephen Fisher1-0/+3
From me: Remove changes related to the ARP protocol because it doesn't appear to be necessary for SocketCAN. Will add later if Felix says it is needed. svn path=/trunk/; revision=31196
2009-12-03Renamed some wtap defines:Stig Bjørlykke1-2/+2
WTAP_GCOM_TIE1 => WTAP_ENCAP_GCOM_TIE1 WTAP_GCOM_SERIAL => WTAP_ENCAP_GCOM_SERIAL svn path=/trunk/; revision=31161
2009-12-03From Petr Sumbera via bug 4284:Stig Bjørlykke1-0/+2
Added support for Solaris IPNET layer From me: Some code cleanup in packet-ipnet.c Added packet-ipnet.c to CMakeFiles.txt Added WTAP_ENCAP_IPNET to encap_table_base[] svn path=/trunk/; revision=31159
2009-09-25Treat 13 as if it came from OpenBSD except on BSD/OS, so that if thereGuy Harris1-2/+8
are any BSD/OS users still out there using Wireshark to read RFC 1483 ATM captures from BSD/OS, they can still do so, but all other users get to read OpenBSD DLT_ENC captures, not just users *on* OpenBSD. That also lets us simplify some hacks to deal with a link-layer type of 13 on Nokia IPSO captures. svn path=/trunk/; revision=30159
2009-08-23From kahou:Jaap Keuter1-0/+2
Add Fibre Channel Delimiter Dissector for Fibre Channel FC2. svn path=/trunk/; revision=29531
2009-07-16From Kahou via bug 3739:Stig Bjørlykke1-0/+2
New DLT value is added for Fibre Channel FC2. svn path=/trunk/; revision=29115
2009-06-28Add support for DLT_PPP_WITH_DIR. This fixes bug 3619.Michael Tüxen1-9/+58
Thanks for Tyson Key for reporting the issue. svn path=/trunk/; revision=28877
2009-06-27Cleanup. Should be included in Wireshark 1.2.1 and higher to keepMichael Tüxen1-8/+8
merging future bug fixes simple. svn path=/trunk/; revision=28863
2009-06-27This patchMichael Tüxen1-2/+2
* adds an encapsulation argument to pcap_write_phdr. * writes the pseudo header when writing pcapng files. This fixes a bug where you could not write pcapng files when using encapsulations requiring pseudo headers. svn path=/trunk/; revision=28859
2009-06-27This commitMichael Tüxen1-2/+2
* adds an encap argument to pcap_process_pseudo_header. * adds support for reading pseudo headers. It fixes Bug 3560. Thanks to Tyson Key for reporting the bug and providing trace files. This fix will be scheduled for inclusion in Wireshark 1.2.1 and higher. svn path=/trunk/; revision=28857
2009-06-02When doing a seek-and-read, don't check the packet size, as we don'tGuy Harris1-12/+16
have it (we have the size with the pseudo-header length already removed); we've already read the packet, and thus have already checked it. Fixes bug 3501. svn path=/trunk/; revision=28607
2009-06-02No newlines in the additional-error-information string, please.Guy Harris1-12/+12
svn path=/trunk/; revision=28584
2009-05-21From Kovarththanan Rajaratnam via bug 2676:Gerald Combs1-2/+20
If a PCAP file containing WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR packets is saved, it gets corrupted because the direction pseudo header isn't included. svn path=/trunk/; revision=28441
2009-04-27pcap_to_wtap_map is not used outside wiretap/pcap-common.c, so make itGuy Harris1-1/+4
static. svn path=/trunk/; revision=28186
2009-04-27Nettl format != libpcap format && nettl format != pcap-NG format. Guy Harris1-10/+0
Remove the stuff for nettl from the LINKTYPE_ <-> WTAP_ENCAP_ mapping table. svn path=/trunk/; revision=28185
2009-04-27Move pseudo-header routines from libpcap.c to pcap-common.c, for useGuy Harris1-1/+1055
with pcap-NG files. svn path=/trunk/; revision=28184
2009-04-27Have the libpcap and pcap-NG code share the LINKTYPE_-to-WTAP_ENCAP_Guy Harris1-0/+615
mapping table - they should be using the same values. Share the mapping routines as well. svn path=/trunk/; revision=28173