aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ipv4.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-04Rename ipv4_addr and ipv6_addr to indicate their full contents.Guy Harris1-16/+16
They're not just addresses, they also include a mask length for IPv4 and a prefix length for IPv6. Rename them appropriately. Rename the old ipv4_addr_and_mask() and ipv6_addr_and_mask() to reflect that 1) they fetch data from a tvbuff and 2) *don't* fetch the mask length or prefix length, those lengths are passed as arguments to indicate how many bytes worth of address to fetch. Change-Id: I4cad5a186ad7bfcb60022a91dbe8bc8479e6471f Reviewed-on: https://code.wireshark.org/review/13035 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-10Add editor modelines; Adjust whitespace as needed.Bill Meier1-0/+13
Change-Id: I3dc57f4c2ca57585103e3b71503ac4c332903e50 Reviewed-on: https://code.wireshark.org/review/4594 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-11-09Include <epan/to_str.h> only when needed.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=53189
2013-07-12Move bitmask array from ipv4_addr_set_netmask_bits() to ip_get_subnet_mask() Jakub Zawadzki1-15/+2
Use it in subnet_mask_lookup_init(). svn path=/trunk/; revision=50527
2012-11-06When comparing fvalue_t we don't modify them, make arguments const.Jakub Zawadzki1-5/+5
svn path=/trunk/; revision=45948
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45016
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2010-04-03 From Yaniv Kaul: constify parametersBill Meier1-3/+3
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-3/+3
svn path=/trunk/; revision=32361
2010-04-02From Yaniv Kaul: constify parametersBill Meier1-3/+3
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 svn path=/trunk/; revision=32360
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-2/+1
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2007-01-29Fix potential buffer overruns in address_to_str_buf() found by Andrej Gerald Combs1-1/+2
Mikus. Add a buf_len parameter to ip_to_str_buf(), and make sure it's enforced. Copy the release notes over from the 0.99.5 trunk and add a note about the ISUP dissector (which is affected by the overrun). svn path=/trunk/; revision=20607
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-03-08Coverity CID 103 pointed me to this section of code. The bufferGilbert Ramirez1-23/+15
overrun that Coverity thought existed does not exist. But I did notice something else: a signed/unsigned disparity between net_bits and new_nmask_bits. So I fixed that, then realized that the function in question, a static function named created_mask, is only used by one other function in the file. So I got ride of create_nmask and moved its logic into the single calling function, ipv4_addr_set_netmask_bits. svn path=/trunk/; revision=17529
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-02-01signed/unsigend warning fixesJörg Mayer1-2/+2
svn path=/trunk/; revision=9931
2003-08-19Void functions don't return values, even though GCC likes to pretendGuy Harris1-2/+2
that they do. svn path=/trunk/; revision=8193
2003-07-31Give FT_IPv4 val_repr_len and val_to_repr methods, and use them forGuy Harris1-6/+5
generating display filters from FT_IPv4 fields. svn path=/trunk/; revision=8110
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-12/+4
equivalents for the epan/ directory but leave winsock2.h in inet_pton.c and inet_ntop.c for now (can't estimate the consequences). svn path=/trunk/; revision=5928
2001-11-13Hopefully the last time I have to change my e-mail address.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=4199
2000-09-28Simple code movement.Gilbert Ramirez1-0/+188
svn path=/trunk/; revision=2463