Commit Graph

308 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
f5fe14663d libnetdissect code must include 'netdissect.h', not 'interface.h'
Moreover:
Remove netdissect.h include in interface.h
Move thiszone declaration in netdissect.h
Update a comment
2015-09-11 13:22:56 +02:00
Francois-Xavier Le Bail
2a59f8ece9 interface.h,netdissect.h: Cleaning unused items 2015-07-03 11:57:31 +02:00
Francois-Xavier Le Bail
7e17343965 Get rid of macros already defined in netdissect.h 2015-06-10 21:37:24 +02:00
Francois-Xavier Le Bail
1e560c8164 Move more prototypes in netdissect.h 2015-06-10 21:12:38 +02:00
Francois-Xavier Le Bail
8aca26be94 Move some prototypes in netdissect.h 2015-06-10 20:39:54 +02:00
Francois-Xavier Le Bail
1d50dbcd4c Get rid of macros already defined in netdissect.h 2015-06-10 19:09:49 +02:00
Francois-Xavier Le Bail
2b7aefe80a Checksum stuff must go in netdissect.h (remainder) 2015-06-10 16:17:27 +02:00
Francois-Xavier Le Bail
b0cbbd12f6 Checksum stuff must go in netdissect.h 2015-06-10 15:47:54 +02:00
Denis Ovsienko
38700c7f24 dismiss NETDISSECT_REWORKED macro
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.
2015-03-22 10:06:15 +00:00
Guy Harris
4405f13804 Get rid of support for non-NDOified printers.
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.
2015-03-10 13:25:52 -07:00
Guy Harris
bc183f0882 Fix the pointer tests in the non-ndoified TTEST2() macro as well. 2015-03-02 13:46:29 -08:00
Guy Harris
e5b3ec43d3 Clean up bounds checking.
Fix link-layer header length for Cisco-style encapsulation while we're
at it.
2014-12-19 12:13:15 -08:00
Guy Harris
dbddfda2c8 More getting rid of old u_intN_t. 2014-04-23 00:45:13 -07:00
Denis Ovsienko
1cd6519c4e M3UA: improve code style
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).
2014-04-21 18:56:55 +04:00
Vyacheslav Trushkin
a97e56cb11 M3UA support added (GH #342)
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
2014-04-21 18:53:40 +04:00
Denis Ovsienko
24598ce6b7 NDOize the rest of util.c 2014-04-14 10:53:46 +04:00
Guy Harris
14de46b987 Declare default_print() only if NETDISSECT_REWORKED isn't defined.
Routines using netdissect_options should be using ndo->ndo_default_print.
2014-04-04 01:01:31 -07:00
Guy Harris
1cde6435df Netdissectify the to-name resolution routines.
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.
2014-04-04 00:43:46 -07:00
Denis Ovsienko
8863fc0e5d NDOize some generic code 2014-04-03 17:43:33 +04:00
Denis Ovsienko
f274a23dc1 improve previous NDO conversions 2014-04-03 17:41:02 +04:00
Denis Ovsienko
302c32f84f NDOize timed decoder 2014-04-03 15:37:46 +04:00
Denis Ovsienko
eaef83c9ea refine some declarations in header files
Remove duplicate declarations and move some other declarations to
addrtoname.h where they belong.
2014-04-03 13:08:48 +04:00
Denis Ovsienko
0d28726d0a NDOize Babel decoder 2014-04-03 12:33:53 +04:00
Denis Ovsienko
fc6f112b40 NDOize LLDP, PPP and RSVP decoders 2014-04-02 18:22:28 +04:00
Denis Ovsienko
2b753f8058 NDOize DECnet, OSPF and TCP decoders 2014-04-02 14:24:56 +04:00
Denis Ovsienko
bcf0fb3b48 NDOize SMB decoder 2014-04-02 08:14:19 +04:00
Denis Ovsienko
64e53f90ca NDOize EAP, IEEE CFM, lwres, SIP & Syslog decoders 2014-04-01 19:46:05 +04:00
Denis Ovsienko
51670d1949 NDOize safeputs() and safeputchar() 2014-04-01 19:46:05 +04:00
Denis Ovsienko
5d6a1edd06 NDOize NFS decoder 2014-04-01 16:05:33 +04:00
Denis Ovsienko
26498833b7 NDOize IEEE 802.11 decoder 2014-03-31 16:46:12 +04:00
Denis Ovsienko
a089043b03 NDOize RX decoder 2014-03-30 19:16:23 +04:00
Denis Ovsienko
157d13fe56 NDOize SNMP decoder 2014-03-29 15:39:31 +04:00
Denis Ovsienko
b9814d8469 NDOize Juniper DLT decoders 2014-03-29 09:25:40 +04:00
Denis Ovsienko
48f596ccb1 remove more stray prototypes 2014-03-28 19:46:50 +04:00
Denis Ovsienko
5d85aa67ed NDOize AppleTalk, CDP and Kerberos decoders 2014-03-28 16:02:56 +04:00
Denis Ovsienko
2210a967cb NDOize ISO CLNS decoder 2014-03-28 14:08:48 +04:00
Denis Ovsienko
62a5184ed4 NDOize ForCES, MPLS LSP ping and OLSR decoders 2014-03-27 14:58:23 +04:00
Denis Ovsienko
c91ffeae22 NDOize OSPFv3 decoder 2014-03-27 10:21:14 +04:00
Denis Ovsienko
9eb56b6235 NDOize BGP decoder 2014-03-26 19:50:33 +04:00
Denis Ovsienko
b6303af682 NDOize AODV, IPv4 and SCTP decoders 2014-03-26 15:49:27 +04:00
Denis Ovsienko
59690cf6b7 NDOize BOOTP, DHCPv6, DNS, PIM and sFlow decoders
Also add/remove tabs in a few involved functions to justify indentation.
2014-03-25 23:27:23 +04:00
Denis Ovsienko
a3d09832c6 NDOize VRRP decoder 2014-03-23 10:28:40 +04:00
Denis Ovsienko
49ccafc4bc NDOize 7 more small decoders
This change converts DVMRP, DLT_ENC, EGP, GeoNet, NetFlow, SLIP and TFTP
decoders.
2014-03-21 18:33:12 +04:00
Denis Ovsienko
90692fcf97 NDOize ATM, MPTCP, NTP, VTP & Whiteboard decoders 2014-03-20 15:17:35 +04:00
Denis Ovsienko
17934c433e NDOize 7 bigger decoders
This change converts IGMP, IPv6 mobility options, LDP, Lightweight
Access Point, PGM, PPTP and RIP decoders.
2014-03-19 14:16:56 +04:00
Denis Ovsienko
bed843855d NDOize Frame Relay, LMP and RADIUS decoders 2014-03-18 16:30:50 +04:00
Denis Ovsienko
5663cdab5e NDOize OpenFlow, IEEE slow and telnet decoders 2014-03-17 19:18:47 +04:00
Denis Ovsienko
d57e945e5e NDOize EIGRP, ICMP, L2TP, STP and UDP decoders 2014-03-15 23:25:06 +04:00
Denis Ovsienko
d1cffd99e6 NDOize LLC decoder 2014-03-15 15:32:15 +04:00
Denis Ovsienko
85a2dd977c NDOize DCCP, Linux socket and RPKI-Router decoders 2014-03-14 20:57:32 +04:00