aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.c
AgeCommit message (Collapse)AuthorFilesLines
2012-04-13Add uint_get_manuf_name() and uint_get_manuf_name_if_known() routines,Guy Harris1-16/+38
which take an OUI, presumably fetched with a routine such as tvb_get_ntoh24(), as an argument and attempt to look it up in the manuf file. Fix up the comments for all the get_manuf_name routines. Get rid of "extern"s in definitions of functions (definitions, not declarations). svn path=/trunk/; revision=42054
2011-06-16Attempt to squelch some compiler warnings.Guy Harris1-2/+2
svn path=/trunk/; revision=37678
2011-05-20Use proto_tree_add_item() instead of proto_tree_add_xxx() with a pointer intoJeff Morriss1-1/+12
the TVB. Introduce and start using tvb_get_manuf_name() and tvb_get_manuf_name_if_known() which do the same as the non-tvb versions but take a tvb and an offset instead of (commonly) a pointer into a TVB. svn path=/trunk/; revision=37317
2011-05-16Cast away some warnings about alignment; ep_alloc() guaranteesGuy Harris1-2/+2
sufficient alignment for all types of data. svn path=/trunk/; revision=37190
2011-05-08Add FT_EUI64 Field TypeAlexis La Goutte1-0/+48
* Remove proto_tree_add_eui64 function from 802.15.4 Dissector * Replace print_eui64/print_eui64 by eui64_to_str/get_eui64_name * Update Documentation (README.dev) * Add new function in libwireshark.def * Support of encoding for tvb_eui64_to_str * Use FT_EUI64 for ICMPv6, CAPWAP, Zbee ... dissector svn path=/trunk/; revision=37015
2011-05-05Introduce ip6_to_str_buf_len (little cleaner version of inet_ntop6 from ↵Jakub Zawadzki1-1/+1
wsutil/inet_ntop.c) and use it instead of inet_ntop(AF_INET6, ...) - Add MAX_IP6_STR_LEN define. - use MAX_IP6_STR_LEN as a buffer size when ip6_to_str_buf() is used. svn path=/trunk/; revision=37000
2011-04-26get_host_ipaddr() was returning numeric addresses in host byte orderGerald Combs1-4/+4
and hostnames in network byte order. Have it return everything in network byte order. svn path=/trunk/; revision=36873
2011-04-10Minor whitespace fix.Gerald Combs1-1/+1
svn path=/trunk/; revision=36536
2011-04-04Don't assign to a variable if the value won't be used: Coverity 817-821.Bill Meier1-1/+1
svn path=/trunk/; revision=36446
2011-03-24Add initial pcapng name resolution record support. Wireshark has readGerald Combs1-3/+63
support; TShark has read+write support. Additionally TShark can read a "hosts" file and write those records to a capture file. This uses "struct addrinfo" in many places and probably won't compile on some platforms. svn path=/trunk/; revision=36318
2011-02-17Can we reassure Microsoft's static analyzer that 0 <= mask <= 48?Guy Harris1-0/+6
svn path=/trunk/; revision=35977
2011-02-17Fix some Visual C++ static analyzer complaints.Gerald Combs1-10/+10
svn path=/trunk/; revision=35971
2011-01-25Fix fo bug 5616:Jaap Keuter1-1/+2
Remove the filters on IPv6 Link Local and Multicast addresses, since these _can_ be resolved through the hosts file and manual entry. svn path=/trunk/; revision=35651
2010-11-30Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4102 :Jeff Morriss1-8/+12
Limit the length of manuf names to 8 characters in make-manuf (this matches the (old) limit in addr_resolv.c). Dynamically allocate memory to store the manuf name in epan/addr_resolv.c so that we don't end up corrupting the UTF-8 if/when we need to truncate the string. svn path=/trunk/; revision=35082
2010-10-12Rename g_resolv_flags --> gbl_resolv_flags; Also: cleanup some whitespace & ↵Bill Meier1-23/+23
indentation. svn path=/trunk/; revision=34487
2010-10-05Add more information to the Info column for some ICMPv6 messages. Add aGerald Combs1-1/+1
small comment to addr_resolv.c. svn path=/trunk/; revision=34384
2010-08-09Make it compile without HAVE_C_ARES and HAVE_GETHOSTBYNAME2.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=33742
2010-07-01Rework ethernet address resolution: step 3 of 3:Bill Meier1-141/+156
- Primarily: ethernet name lookup returns either unresolved or resolved ethernet name depending upon whether MAC Name resolution is disabled or enabled. Previously: Unresolved or resolved name cached at first reference and then always returned for future references no matter whether MAC Name Resolution was enabled or disabled. - Also: Refactor ethernet, manuf & well-known-addr related code; ToDo: (separately): Redisplay when 'MAC name resolution' enabled/disabled. svn path=/trunk/; revision=33401
2010-06-29Rework ethernet address resolution: step 2:Bill Meier1-94/+97
- Use a new hashwka_t struct (instead of hashether_t) for "well-known-address" hash entries (saves some space); - Remove unused variable from hashether_t; - Reorder variables within hashether_t and hashmanuf_t to minimize padding in the structures; - Rename some variables for clarity; - Misc whitespace changes. svn path=/trunk/; revision=33364
2010-06-28(Trivial): Whitespace revisions.Bill Meier1-88/+88
svn path=/trunk/; revision=33360
2010-06-28Rework ethernet address resolution: step 1: simplify 'get_ether_name_if_known()'Bill Meier1-39/+10
svn path=/trunk/; revision=33359
2010-05-28Move some code (including the optional objects) into libwsutilJeff Morriss1-2/+2
svn path=/trunk/; revision=33012
2010-05-02Rewrite: strcpy -> g_strlcpy.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=32637
2010-04-29Make the indentation consistent.Jeff Morriss1-122/+185
svn path=/trunk/; revision=32601
2010-04-27Fix a gcc -Wshadow warning; Fix a comment;Bill Meier1-468/+468
Use consistent indentation. svn path=/trunk/; revision=32581
2010-04-27Added Manual IP address resolve functions.Stig Bjørlykke1-0/+32
This can later be extended with ethernet and probably other addresses. svn path=/trunk/; revision=32571
2010-04-03 From Yaniv Kaul: constify parametersBill Meier1-24/+24
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 From me: Fix a number of instances where the function prototype or the function definition wasn't changed so there was a mismatch thus causing Windows (but not gcc) compilation errors. svn path=/trunk/; revision=32365
2010-04-02Revert SVN #32360 until Windows compilation errors corrected.Bill Meier1-23/+23
svn path=/trunk/; revision=32361
2010-04-02From Yaniv Kaul: constify parametersBill Meier1-23/+23
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 svn path=/trunk/; revision=32360
2010-02-23From Jakub Zawadzki:Anders Broman1-7/+3
Optimizations. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4303 svn path=/trunk/; revision=31967
2010-01-28Fix gcc -Wshadow warnings.Bill Meier1-17/+17
svn path=/trunk/; revision=31717
2010-01-19Fix a potential compilation problem with older versions of c-ares.Gerald Combs1-3/+3
svn path=/trunk/; revision=31579
2009-12-24Have get_host_ipaddr and get_host_ipaddr6 return FALSE if network nameGerald Combs1-16/+33
resolution is disabled. Fix some indentation. svn path=/trunk/; revision=31361
2009-12-24If we're using c-ares, have get_host_ipaddr and get_host_ipaddr6 timeGerald Combs1-12/+90
out after 250ms. This should fix the annoying freeze in bug 658. svn path=/trunk/; revision=31360
2009-12-22Change host_name_lookup_process to return TRUE if anything new has beenGerald Combs1-9/+24
resolved since the last time it was called. Use this to redraw the packet list and detail any time we have newly-resolved objects. svn path=/trunk/; revision=31350
2009-12-06Let c-ares actually resolve IPv6 addresses.Jaap Keuter1-1/+1
svn path=/trunk/; revision=31181
2009-10-30Prepare for c-ares 1.6.1 release.Jaap Keuter1-1/+11
svn path=/trunk/; revision=30773
2009-10-05Add null pointer guardKovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=30340
2009-09-29Put caqm inside INET6 guard in host_lookup6().Stig Bjørlykke1-69/+1
Removed unused functions: - get_hostip() - get_hostip6() - name_resolution_changed() - get_ether_hexa() svn path=/trunk/; revision=30190
2009-09-13From Didier Gautheron:Anders Broman1-139/+126
optimizations patch http://wiki.wireshark.org/Development/Optimization 'patch.29854.diff.gz" Clean up addr_resolv.c svn path=/trunk/; revision=29880
2009-09-07Constify some functionsKovarththanan Rajaratnam1-4/+4
svn path=/trunk/; revision=29773
2009-09-07Whitespace changesKovarththanan Rajaratnam1-315/+315
svn path=/trunk/; revision=29772
2009-09-07ntroduce some seasonal address name lookup functions which we use when ↵Kovarththanan Rajaratnam1-8/+52
NEW_PACKET_LIST is defined. This change partially reverts some parts of r29768, which didn't seem to work because it assumed that get_addr_name() would always return a seasonal string. This wasn't the case if the adddress type was AT_STRINGZ. svn path=/trunk/; revision=29771
2009-09-07Tigthen scope of local variablesKovarththanan Rajaratnam1-8/+7
svn path=/trunk/; revision=29770
2009-09-07Use constant strings for Addresses saves some memory.Anders Broman1-2/+3
svn path=/trunk/; revision=29768
2009-09-06Put backAnders Broman1-4/+5
http://anonsvn.wireshark.org/viewvc?view=rev&revision=29656 http://anonsvn.wireshark.org/viewvc?view=rev&revision=29658 http://anonsvn.wireshark.org/viewvc?view=rev&revision=29661 Reverted by my previous checkin. svn path=/trunk/; revision=29749
2009-09-06Rename address_to_str() to ep_address_to_str() because:Kovarththanan Rajaratnam1-2/+2
1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). svn path=/trunk/; revision=29747
2009-09-06From Didier Gautheron:Anders Broman1-117/+202
Extracted from optimizations patch http://wiki.wireshark.org/Development/Optimization Optimize address handling. The address hash should be possible to use from the new_packet_list. svn path=/trunk/; revision=29735
2009-09-04From : Didier GautheronAnders Broman1-1/+1
Addresse hash is slow on little endian CPU. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3973 svn path=/trunk/; revision=29692
2009-09-01Check whether "size" points to something positive, not whether "size"Guy Harris1-1/+1
itself is positive (which makes no sense for a pointer). svn path=/trunk/; revision=29661