aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.c
AgeCommit message (Collapse)AuthorFilesLines
2006-12-31From Paul Erkkila:Jaap Keuter1-9/+75
parse NAPTR records in dns dissector (rfc 3403) svn path=/trunk/; revision=20250
2006-11-14nikai@nikai.net:Jörg Mayer1-1/+0
Remaining fixes from: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1225 svn path=/trunk/; revision=19895
2006-11-12Mark Krochmal says that the class field should be treated in mDNS as aGuy Harris1-7/+15
flag and a 15-bit field even for OPT RRs. svn path=/trunk/; revision=19882
2006-11-12Flag the question as a "QM" question if the QU flag isn't set.Guy Harris1-4/+4
svn path=/trunk/; revision=19881
2006-11-12mDNS treats the class field as a flag bit and 15 bits of class; displayGuy Harris1-21/+79
it as such. svn path=/trunk/; revision=19879
2006-10-31change the signature for the get_pdu_len() function pointer passed to ↵Ronnie Sahlberg1-1/+1
tcp_dissect_pdus() to also include a packet_info pointer. there are many reasons why some protocols actually need to be able to access the pinfo structure while determining the pdu size svn path=/trunk/; revision=19751
2006-08-23testdrive the request/response README and implement request/response ↵Ronnie Sahlberg1-0/+106
matching for DNS svn path=/trunk/; revision=19003
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-03-20waste a couple of bytes per tcp conversation and make the tree for ↵Ronnie Sahlberg1-0/+1
acked_packets (i.e. packets that have interesting tcp properties such as being retransmissions etc) hang off the per conversation tcpd struct instead of being global. while this should improve performance by unmeasurably little it does have the sideeffect that once we finish the rewrite tcp analysis might actually work and work well even for tcp over tcp tunnelling. this also means that if you include packet-tcp.h you also need to include emem.h . svn path=/trunk/; revision=17681
2006-02-21Fix for bug 724: DNS dissector fails in handling the sign of Altitude in LOC ↵Jaap Keuter1-1/+1
type response (RFC1867) svn path=/trunk/; revision=17358
2006-01-20packet-bgp.c: Fix incorrect use of g_snprintf return valueJörg Mayer1-12/+20
mp_addr_to_str was unnecessary 'complex' - simplified it packet-dns.c: Fix incorrect use of g_snprintf return value packet-dcm.c: Fix incorrect use of g_snprintf return value Someone who understands the protocol should look at the "vr, tr might be used uninitialized..." warning. packet-x11.c: Fix incorrect use of g_snprintf return value packet-kerberos.c: Fix incorrect use of g_snprintf return value Someone should take a look at the "longjump might clobber ..." messages packet-diameter.c: Fix incorrect use of g_snprintf return value Get rid of unsigned < 0 check packet-pgm.c: Fix incorrect use of g_snprintf return value packet-nbns.c: Fix incorrect use of g_snprintf return value packet-winsrepl.c: Collateral damage to packet-nbns.c fix packet-netbios.c: Collateral damage to packet-nbns.c fix packet-netbios.h: Collateral damage to packet-nbns.c fix packet-kerberos.c: Collateral damage to packet-nbns.c fix packet-nbipx.c: Collateral damage to packet-nbns.c fix svn path=/trunk/; revision=17065
2005-12-25remove some proto_tree_add_text and replace with proto_tree_add_item() for ↵Ronnie Sahlberg1-20/+75
the TSIG dissection in dns. create a new dissector table where MAC algorithms for dns/tsig can be registered. register gssapi for the algorithm "gss.microsoft.com" since this is what w2k uses when performing dns updates. svn path=/trunk/; revision=16895
2005-10-16remove one array from the stackRonnie Sahlberg1-11/+19
get rid of strcpy and strcat svn path=/trunk/; revision=16235
2005-10-08improve get_dns_name now that we have cheap emem allocated buffersRonnie Sahlberg1-50/+58
and get rid of a few strcpy() a whole lot of arrays from the stack and make the function prototype slightly nicer. svn path=/trunk/; revision=16166
2005-09-12Don't collide with the "regular" IPv6 defintions in at least someGuy Harris1-2/+2
platforms in ipv6-utils.h. svn path=/trunk/; revision=15764
2005-09-11Replace tvb_memcpy() calls that extract IPv4 addresses into a guint32,Guy Harris1-1/+0
and that extract IPv6 addresses into a "struct e_in6_addr", with tvb_get_ipv4() and tvb_get_ipv6() calls - except for some that we remove, by using proto_tree_add_item(), rather than replacing. Have epan/tvbuff.h include epan/ipv6-utils.h, to define "struct e_in6_addr" (not necessary to declare the tvbuff routines, but including it there means "struct e_in6_addr" is guaranteed to be defined before those declarations, so we don't get compiler complaints if we define it *after* those declarations). svn path=/trunk/; revision=15758
2005-08-30replace some g_string_sprintf() with g_snprintf()Ronnie Sahlberg1-14/+20
remove one static 1kb char array and make it emem ep allocated svn path=/trunk/; revision=15620
2005-08-18several times replacing:Ulf Lamping1-1/+1
sprintf -> g_snprintf snprintf -> g_snprintf vsnprintf -> g_vsnprintf strdup -> g_strdup svn path=/trunk/; revision=15412
2005-08-17snprintf -> g_snprintfUlf Lamping1-10/+6
svn path=/trunk/; revision=15398
2005-08-08various code cleanup:Ulf Lamping1-3/+3
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-07-30Make some funtions static. More char -> const char warning fixesJörg Mayer1-2/+2
svn path=/trunk/; revision=15146
2005-06-27The name returned by "get_dns_name()" (and thus byGuy Harris1-52/+72
"get_dns_name_type_class()") is null-terminated - and the length returned is *NOT* the length of the string, it's the length of the chunk of DNS data extracted by "get_dns_name()", and that chunk could just point to a later chunk as part of DNS compression. When running the name through "format_text()", just use "strlen()" to get the length, so you don't get a value that's too large *OR* too small (both are possible - "too large" if it's uncompressed and includes length informatioin, "too small" if it contains a pointer to a string longer than the pointer). When adding a string value to the protocol tree, add the *raw* name, not the formatted name - the Ethereal display code will format the string's value as necessary. Add formatting code for DNS names in replies. svn path=/trunk/; revision=14793
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;Guy Harris1-6/+6
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. svn path=/trunk/; revision=14786
2005-06-10just to get things straight: a dissector should *never* do any g_assert() calls!Ulf Lamping1-1/+1
in a simple approach, I've replaced all g_assert() and g_assert_not_reached() calls by their exception throwing counterparts DISSECTOR_ASSERT() and DISSECTOR_ASSERT_NOT_REACHED() this will replace application crash by showing a dissector bug, which is the desired behaviour there were some g_assert calls in the protocol registering functions, which might not be acting as expected now, but to be able to simply search for g_assert in the future I've replaced that calls too one g_assert remained, the one when someone throws an unknown exception "into" packet_frame.c, but IMHO this one should remain. svn path=/trunk/; revision=14608
2005-06-04fix #201 second part: adapt the string length of the unformatted text, so it ↵Ulf Lamping1-2/+7
won't show \000 and beyond svn path=/trunk/; revision=14550
2005-05-29fix #201: add format_text before output of the DNS name, in case it contains ↵Ulf Lamping1-4/+9
invalid chars svn path=/trunk/; revision=14479
2005-02-10From Nicolas Dichtel via Vincent Jardin:Gerald Combs1-0/+3
Print a couple of missing fields. svn path=/trunk/; revision=13379
2005-01-13OPT RRs don't have a class field.Guy Harris1-4/+7
svn path=/trunk/; revision=13016
2005-01-02Unlike the detailed description of resource record types, theGuy Harris1-49/+2
detailed description of classes is pretty much redundant - remove it. svn path=/trunk/; revision=12925
2004-12-26From Luis Ontanon: add more filterable fields to DNS, PGM, GTP, and RADIUS.Guy Harris1-180/+229
svn path=/trunk/; revision=12835
2004-12-02From David Fort: the DNS RR type number for IPSECKEY will be changing toGuy Harris1-7/+5
45, so update the dissector. svn path=/trunk/; revision=12655
2004-11-22From Yaniv Kaul: increment the offset pointer *after* you use it to putGuy Harris1-7/+7
into the protocol tree the field you're incrementing past. Update a comment. svn path=/trunk/; revision=12576
2004-11-21From Yaniv Kaul: yet *another* place where an NTLMSSP rather than GSSAPIGuy Harris1-2/+6
blob can appear. svn path=/trunk/; revision=12563
2004-11-17Add IPv6 address<->name mappings for AAAA records.Guy Harris1-0/+5
svn path=/trunk/; revision=12538
2004-11-17Rename some routines and structures to reflect that they're specific toGuy Harris1-1/+1
IPv4; use different data structures for port numbers. svn path=/trunk/; revision=12536
2004-11-12For dynamic DNS updates, give the counts in the message the appropriateGuy Harris1-9/+45
names. For RRs with a data length of 0 - as can appear in dynamic DNS updates - don't attempt to display the data. svn path=/trunk/; revision=12511
2004-09-29Move various tables into the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12130
2004-09-28From David Fort: ipseckey DNS RR support.Guy Harris1-2/+73
svn path=/trunk/; revision=12120
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-08-21Prevent the word "desegmentation" at the GUI, but use reassembling at that ↵Ulf Lamping1-2/+3
places, as we also use "defragmentation" and "reassembling". Use reassembling as the general term for such actions. I (hopefully) didn't changed any protocol fields or preference file names, but only the GUI labels appearing in the protocol display and the protocol preferences. Also added a note to the protocol preferences (where appropriate), that you have to enable "Allow subdissectors to reassemble TCP streams" at the corresponding protocol settings for TCP reassembling to take effect. If you encounter any mistakes I've made here, please let me know... svn path=/trunk/; revision=11784
2004-08-06From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that anGuy Harris1-1/+1
include of <resolv.h> in any system header file gets the system <resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]). svn path=/trunk/; revision=11615
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+2513
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410