summaryrefslogtreecommitdiff
path: root/interface.h
Commit message (Collapse)AuthorAgeFilesLines
* Add nd_{v}snprintf() routines/wrappers.Guy Harris2018-01-291-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 Harris2018-01-281-10/+0
|
* More use of PRINTFLIKE().Guy Harris2017-08-181-10/+6
|
* Move some code around.Guy Harris2016-08-041-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 Bail2015-09-111-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 itemsFrancois-Xavier Le Bail2015-07-031-2/+0
|
* Get rid of macros already defined in netdissect.hFrancois-Xavier Le Bail2015-06-101-9/+0
|
* Move more prototypes in netdissect.hFrancois-Xavier Le Bail2015-06-101-8/+0
|
* Move some prototypes in netdissect.hFrancois-Xavier Le Bail2015-06-101-6/+0
|
* Get rid of macros already defined in netdissect.hFrancois-Xavier Le Bail2015-06-101-17/+0
|
* Checksum stuff must go in netdissect.h (remainder)Francois-Xavier Le Bail2015-06-101-5/+0
|
* Checksum stuff must go in netdissect.hFrancois-Xavier Le Bail2015-06-101-7/+0
|
* dismiss NETDISSECT_REWORKED macroDenis Ovsienko2015-03-221-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 Harris2015-03-101-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 Harris2015-03-021-2/+14
|
* Clean up bounds checking.Guy Harris2014-12-191-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 Harris2014-04-231-7/+7
|
* M3UA: improve code styleDenis Ovsienko2014-04-211-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 Trushkin2014-04-211-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.cDenis Ovsienko2014-04-141-3/+0
|
* Declare default_print() only if NETDISSECT_REWORKED isn't defined.Guy Harris2014-04-041-1/+2
| | | | Routines using netdissect_options should be using ndo->ndo_default_print.
* Netdissectify the to-name resolution routines.Guy Harris2014-04-041-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 codeDenis Ovsienko2014-04-031-3/+0
|
* improve previous NDO conversionsDenis Ovsienko2014-04-031-1/+0
|
* NDOize timed decoderDenis Ovsienko2014-04-031-1/+0
|
* refine some declarations in header filesDenis Ovsienko2014-04-031-3/+0
| | | | | Remove duplicate declarations and move some other declarations to addrtoname.h where they belong.
* NDOize Babel decoderDenis Ovsienko2014-04-031-1/+0
|
* NDOize LLDP, PPP and RSVP decodersDenis Ovsienko2014-04-021-6/+0
|
* NDOize DECnet, OSPF and TCP decodersDenis Ovsienko2014-04-021-3/+0
|
* NDOize SMB decoderDenis Ovsienko2014-04-021-8/+0
|
* NDOize EAP, IEEE CFM, lwres, SIP & Syslog decodersDenis Ovsienko2014-04-011-4/+0
|
* NDOize safeputs() and safeputchar()Denis Ovsienko2014-04-011-3/+0
|
* NDOize NFS decoderDenis Ovsienko2014-04-011-4/+0
|
* NDOize IEEE 802.11 decoderDenis Ovsienko2014-03-311-6/+0
|
* NDOize RX decoderDenis Ovsienko2014-03-301-1/+0
|
* NDOize SNMP decoderDenis Ovsienko2014-03-291-1/+0
|
* NDOize Juniper DLT decodersDenis Ovsienko2014-03-291-15/+0
|
* remove more stray prototypesDenis Ovsienko2014-03-281-1/+0
|
* NDOize AppleTalk, CDP and Kerberos decodersDenis Ovsienko2014-03-281-6/+0
|
* NDOize ISO CLNS decoderDenis Ovsienko2014-03-281-1/+0
|
* NDOize ForCES, MPLS LSP ping and OLSR decodersDenis Ovsienko2014-03-271-3/+0
|
* NDOize OSPFv3 decoderDenis Ovsienko2014-03-271-1/+0
|
* NDOize BGP decoderDenis Ovsienko2014-03-261-5/+0
|
* NDOize AODV, IPv4 and SCTP decodersDenis Ovsienko2014-03-261-2/+0
|
* NDOize BOOTP, DHCPv6, DNS, PIM and sFlow decodersDenis Ovsienko2014-03-251-8/+0
| | | | Also add/remove tabs in a few involved functions to justify indentation.
* NDOize VRRP decoderDenis Ovsienko2014-03-231-1/+0
|
* NDOize 7 more small decodersDenis Ovsienko2014-03-211-7/+0
| | | | | This change converts DVMRP, DLT_ENC, EGP, GeoNet, NetFlow, SLIP and TFTP decoders.
* NDOize ATM, MPTCP, NTP, VTP & Whiteboard decodersDenis Ovsienko2014-03-201-8/+0
|
* NDOize 7 bigger decodersDenis Ovsienko2014-03-191-8/+0
| | | | | This change converts IGMP, IPv6 mobility options, LDP, Lightweight Access Point, PGM, PPTP and RIP decoders.
* NDOize Frame Relay, LMP and RADIUS decodersDenis Ovsienko2014-03-181-7/+0
|