Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add nd_{v}snprintf() routines/wrappers. | Guy Harris | 2018-01-29 | 1 | -2/+0 |
| | | | | | | | | Some versions of the MSVC runtime library have a non-C99-compliant vsnprintf(), which we want to avoid. On Windows, use snprintf() and vsnprintf() for VS 2015 and later, where they both exist in C99-compliant forms, and wrap _{v}snprintf_s() otherwise (they're guaranteed to do the null termination that we want). | ||||
* | Pick up Windows snprintf and strdup replacements from libpcap. | Guy Harris | 2018-01-28 | 1 | -10/+0 |
| | |||||
* | More use of PRINTFLIKE(). | Guy Harris | 2017-08-18 | 1 | -10/+6 |
| | |||||
* | Move some code around. | Guy Harris | 2016-08-04 | 1 | -15/+0 |
| | | | | | | | | | | | | | | Move stuff to initialize and clean up libraries that are used by netdissect code into nd_init() and nd_cleanup() routines in libnetdissect; this includes Winsock (which is used on Windows by, for example, the code to get names for IP addresses) and libsmi. Call nd_init() when tcpdump starts up, and call nd_cleanup() when it exits. Move util.c routines to tcpdump.c, and make them static. Use ndo->ndo_error to report a failure to open a file in print-esp.c. | ||||
* | libnetdissect code must include 'netdissect.h', not 'interface.h' | Francois-Xavier Le Bail | 2015-09-11 | 1 | -4/+0 |
| | | | | | | | Moreover: Remove netdissect.h include in interface.h Move thiszone declaration in netdissect.h Update a comment | ||||
* | interface.h,netdissect.h: Cleaning unused items | Francois-Xavier Le Bail | 2015-07-03 | 1 | -2/+0 |
| | |||||
* | Get rid of macros already defined in netdissect.h | Francois-Xavier Le Bail | 2015-06-10 | 1 | -9/+0 |
| | |||||
* | Move more prototypes in netdissect.h | Francois-Xavier Le Bail | 2015-06-10 | 1 | -8/+0 |
| | |||||
* | Move some prototypes in netdissect.h | Francois-Xavier Le Bail | 2015-06-10 | 1 | -6/+0 |
| | |||||
* | Get rid of macros already defined in netdissect.h | Francois-Xavier Le Bail | 2015-06-10 | 1 | -17/+0 |
| | |||||
* | Checksum stuff must go in netdissect.h (remainder) | Francois-Xavier Le Bail | 2015-06-10 | 1 | -5/+0 |
| | |||||
* | Checksum stuff must go in netdissect.h | Francois-Xavier Le Bail | 2015-06-10 | 1 | -7/+0 |
| | |||||
* | dismiss NETDISSECT_REWORKED macro | Denis Ovsienko | 2015-03-22 | 1 | -45/+0 |
| | | | | | | | The purpose of this macro was to enable the file-by-file switch to NDO, after which only tcpdump.c had a use of it and the definitions guarded by it. Update tcpdump.c not to require them any more and dismiss the unused definitions. | ||||
* | Get rid of support for non-NDOified printers. | Guy Harris | 2015-03-10 | 1 | -32/+0 |
| | | | | | | Remove the TTEST{2}/TCHECK{2} macros. Rename all "ndo_printer" routines, structures, and structure members to just "printer", and get rid of the old routines/structures/structure members with those names. | ||||
* | Fix the pointer tests in the non-ndoified TTEST2() macro as well. | Guy Harris | 2015-03-02 | 1 | -2/+14 |
| | |||||
* | Clean up bounds checking. | Guy Harris | 2014-12-19 | 1 | -1/+0 |
| | | | | | Fix link-layer header length for Cisco-style encapsulation while we're at it. | ||||
* | More getting rid of old u_intN_t. | Guy Harris | 2014-04-23 | 1 | -7/+7 |
| | |||||
* | M3UA: improve code style | Denis Ovsienko | 2014-04-21 | 1 | -1/+0 |
| | | | | | | | Merge m3ua.h into the only file that includes it (print-m3ua.c). Make M3UA functions follow naming pattern, constify some of their arguments and switch to ND_PRINT(). Make use of tok2str() and ternary conditional. Eliminate declarations in the middle of code (C89). | ||||
* | M3UA support added (GH #342) | Vyacheslav Trushkin | 2014-04-21 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | SCTP's payload protocol identifiers added. M3UA tests provided by wireshark http://wiki.wireshark.org/SampleCaptures#Sigtran_Protocol_Family But RFC4666 tells that parameter 0x0002 aren't carried by M3UA, so it's OK that tcpdump doesn't know about this identifier. Conflicts: Makefile.in interface.h print-sctp.c sctpConstants.h ----------------------------------------------------------------------- The change to sctp_print() does three things: * makes detection of ForCES consider PPID, not just port number * verifies chunk length of all SCTP_DATA chunks, not just of ForCES * adds PPID-specific dispatching with a particular case of M3UA -- Denis | ||||
* | NDOize the rest of util.c | Denis Ovsienko | 2014-04-14 | 1 | -3/+0 |
| | |||||
* | Declare default_print() only if NETDISSECT_REWORKED isn't defined. | Guy Harris | 2014-04-04 | 1 | -1/+2 |
| | | | | Routines using netdissect_options should be using ndo->ndo_default_print. | ||||
* | Netdissectify the to-name resolution routines. | Guy Harris | 2014-04-04 | 1 | -2/+0 |
| | | | | | | | | Have them take a netdissect_options * argument, and get the "no name resolution" flag from it. Move the declaration of dnaddr_string to addrtoname.h, along with the other XXX-to-string routines. | ||||
* | NDOize some generic code | Denis Ovsienko | 2014-04-03 | 1 | -3/+0 |
| | |||||
* | improve previous NDO conversions | Denis Ovsienko | 2014-04-03 | 1 | -1/+0 |
| | |||||
* | NDOize timed decoder | Denis Ovsienko | 2014-04-03 | 1 | -1/+0 |
| | |||||
* | refine some declarations in header files | Denis Ovsienko | 2014-04-03 | 1 | -3/+0 |
| | | | | | Remove duplicate declarations and move some other declarations to addrtoname.h where they belong. | ||||
* | NDOize Babel decoder | Denis Ovsienko | 2014-04-03 | 1 | -1/+0 |
| | |||||
* | NDOize LLDP, PPP and RSVP decoders | Denis Ovsienko | 2014-04-02 | 1 | -6/+0 |
| | |||||
* | NDOize DECnet, OSPF and TCP decoders | Denis Ovsienko | 2014-04-02 | 1 | -3/+0 |
| | |||||
* | NDOize SMB decoder | Denis Ovsienko | 2014-04-02 | 1 | -8/+0 |
| | |||||
* | NDOize EAP, IEEE CFM, lwres, SIP & Syslog decoders | Denis Ovsienko | 2014-04-01 | 1 | -4/+0 |
| | |||||
* | NDOize safeputs() and safeputchar() | Denis Ovsienko | 2014-04-01 | 1 | -3/+0 |
| | |||||
* | NDOize NFS decoder | Denis Ovsienko | 2014-04-01 | 1 | -4/+0 |
| | |||||
* | NDOize IEEE 802.11 decoder | Denis Ovsienko | 2014-03-31 | 1 | -6/+0 |
| | |||||
* | NDOize RX decoder | Denis Ovsienko | 2014-03-30 | 1 | -1/+0 |
| | |||||
* | NDOize SNMP decoder | Denis Ovsienko | 2014-03-29 | 1 | -1/+0 |
| | |||||
* | NDOize Juniper DLT decoders | Denis Ovsienko | 2014-03-29 | 1 | -15/+0 |
| | |||||
* | remove more stray prototypes | Denis Ovsienko | 2014-03-28 | 1 | -1/+0 |
| | |||||
* | NDOize AppleTalk, CDP and Kerberos decoders | Denis Ovsienko | 2014-03-28 | 1 | -6/+0 |
| | |||||
* | NDOize ISO CLNS decoder | Denis Ovsienko | 2014-03-28 | 1 | -1/+0 |
| | |||||
* | NDOize ForCES, MPLS LSP ping and OLSR decoders | Denis Ovsienko | 2014-03-27 | 1 | -3/+0 |
| | |||||
* | NDOize OSPFv3 decoder | Denis Ovsienko | 2014-03-27 | 1 | -1/+0 |
| | |||||
* | NDOize BGP decoder | Denis Ovsienko | 2014-03-26 | 1 | -5/+0 |
| | |||||
* | NDOize AODV, IPv4 and SCTP decoders | Denis Ovsienko | 2014-03-26 | 1 | -2/+0 |
| | |||||
* | NDOize BOOTP, DHCPv6, DNS, PIM and sFlow decoders | Denis Ovsienko | 2014-03-25 | 1 | -8/+0 |
| | | | | Also add/remove tabs in a few involved functions to justify indentation. | ||||
* | NDOize VRRP decoder | Denis Ovsienko | 2014-03-23 | 1 | -1/+0 |
| | |||||
* | NDOize 7 more small decoders | Denis Ovsienko | 2014-03-21 | 1 | -7/+0 |
| | | | | | This change converts DVMRP, DLT_ENC, EGP, GeoNet, NetFlow, SLIP and TFTP decoders. | ||||
* | NDOize ATM, MPTCP, NTP, VTP & Whiteboard decoders | Denis Ovsienko | 2014-03-20 | 1 | -8/+0 |
| | |||||
* | NDOize 7 bigger decoders | Denis Ovsienko | 2014-03-19 | 1 | -8/+0 |
| | | | | | This change converts IGMP, IPv6 mobility options, LDP, Lightweight Access Point, PGM, PPTP and RIP decoders. | ||||
* | NDOize Frame Relay, LMP and RADIUS decoders | Denis Ovsienko | 2014-03-18 | 1 | -7/+0 |
| |