summaryrefslogtreecommitdiff
path: root/nameser.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typoFrancois-Xavier Le Bail2021-07-181-1/+1
| | | | [skip ci]
* DNS: Sync types with IANAMatthew Martin2021-05-181-1/+29
| | | | | | | | IANA reference: https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml Remove the UNSPECA type parsing as IANA has that query type number assigned to NID now.
* dns: add some additional error checks.Guy Harris2020-11-141-2/+5
| | | | | | | | | | If the upper 2 bits of a label/pointer value are 10, treat that as an error. If a name is longer than 255 characters, treat that as an error. This prevents some long loops with malformed packets, as found by Hardik Shah.
* DNS: Update printing the EDNS options and their data with -vvjacobgb242020-04-101-11/+53
| | | | | | (pull request #808) Format of EDNS options matches format of TCP options.
* DNS: Add printing the EDNS optionsCasey Deccio2020-04-101-0/+16
| | | | (pull request #762)
* Add support for decoding DNS URI RR (typecode 256, RFC7553)Wang Jian2019-04-131-0/+1
|
* DNS: Coding style updateFrancois-Xavier Le Bail2018-01-021-1/+1
|
* Use nd_ types for DNS.Guy Harris2017-12-131-17/+15
| | | | | Make some types unsigned, and fix some loops to no longer depend on a zero count rolling over to -1 when decremented.
* Get rid of an unused structure.Guy Harris2017-12-101-12/+0
|
* Remove unused macros in nameser.hFrancois-Xavier Le Bail2017-12-101-45/+0
|
* spell ASCII in uppercaseDenis Ovsienko2017-08-101-1/+1
|
* refine use of nameser.hDenis Ovsienko2015-07-131-14/+0
| | | | | | Move the port number #define's to the TCP and UDP files such that they don't require nameser.h anymore. Update the TCP printer to disregard the multicast DNS port as it is UDP-only.
* More getting rid of old u_intN_t.Guy Harris2014-04-231-17/+17
|
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-1/+0
| | | | | | Remove lots of $Header's and a few $Id's that all belong to the former CVS repository of tcpdump itself. These keywords have been frozen since the migration to git in late 2008.
* The topmost bit in the class field isn't a "cache flush" flag in mDNSguy2006-11-101-2/+11
| | | | | | | | queries. Display that bit correctly (as per Marc Krochmal's request). In mDNS, the topmost bit of the class field should be handled the same way regardless of the value of the lower 15 bits, and *vice versa* - they're independent fields.
* From Wesley Griffin <wgriffin@users.sourceforge.net>: update the list ofguy2006-04-071-1/+12
| | | | DNS RR typecodes.
* In mDNS, report IN-class records with the "cache flush" bit set as such,guy2003-11-051-1/+2
| | | | rather than as "Class 32769".
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | compile with Sun C, as "interface.h" isn't being included before the structures are being declared. Furthermore, in the files that Sun C *can* compile, it doesn't cause Sun C to generate code that's safe with unaligned accesses, as "__attribute__" is defined as a do-nothing macro with compilers that don't support it. Therefore, we get rid of that tag on the structures to which it was added, and instead use "EXTRACT_16BIT()" and "EXTRACT_32BIT()" to fetch 16-bit and 32-bit big-endian quantities from packets. We also fix some other references to multi-byte quantities to get rid of code that tries to do unaligned loads on platforms that don't support them. We also throw in a hack that makes those macros use "__attribute__((packed))" on structures containing only one 16-bit or 32-bit integer to get the compiler to generate unaligned-safe code rather than doing it by hand. (GCC on SPARC produces the same code that doing it by hand does; I don't know if GCC on any other big-endian strict-alignment processor generates better code for that case. On little-endian processors, as "ntohs()" and "ntohl()" might be functions, that might actually produce worse code.) Fix some places to use "%u" rather than "%d" to print unsigned quantities.
* put __attribute__((packed)) to packet headers. s/u_short/u_int16_t/ and soitojun2002-11-091-2/+2
| | | | forth while i'm here
* dissect traffic on port 5353 as multicast DNS. vlubet@apple.comitojun2002-08-161-1/+2
|
* whitespace cleanupitojun2002-06-111-4/+4
|
* Yet *another* #define of ours that an OS also defines; in this case it'sguy2001-06-271-2/+5
| | | | | | T_NULL, defined by some STREAMS/TPI/XTI/TLI/whatever header file in HP-UX - if it's defined, undefine it before we define it, to squelch compiler warnings.
* Move all the "undefine so that the compiler doesn't whine aboutguy2001-06-261-1/+15
| | | | | | | | | | | | | redefinitions" stuff from files that include "nameser.h" to "nameser.h" itself (we used to include <arpa/nameser.h>, over which we had no control so we couldn't do that, but we now have our own "nameser.h"). Add T_OPT to the list of things we undefine, and undefine T_UNSPEC iff T_UNSPEC is defined, not iff NOERROR is defined. Replace the include of <arpa/nameser.h> in "print-rx.c" with an include of "nameser.h", and "#if 0" it out pending a determination of whether it's necessary (why would AFS's RX care about the internals of DNS packets?) or not.
* add TKEY, TSIG and IXFRitojun2001-02-201-1/+4
|
* move T_xx and C_xx fallback definitions into nameser.h.itojun2001-01-281-1/+20
|
* support DNAME and bit string label. more pedantic snapend validation.itojun2000-12-281-3/+5
| | | | {jinmei,itojun}@kame.net
* Give a bunch of files RCS and SCCS IDs.guy2000-12-171-0/+1
|
* some sprintf fixes, from kris@freebsd.org (patches@tcpdump.org #89)itojun2000-10-051-4/+3
| | | | pedant.
* Bitfield layout in memory is not specified by the ANSI C spec; don't useguy2000-10-031-57/+17
| | | | | C bitfields to specify the layout of a DNS request or response header, use shifts and masks to extract the bitfields.
* do not rely on the system providing us everything we need inassar2000-07-051-0/+292
<arpa/nameser.h> but include a nameser.h with all the required stuff. From Guy Harris <gharris@flashcom.net>