aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp.c
Commit message (Collapse)AuthorAgeFilesLines
* Fun with buffer overrruns.HEADmasterErik Kline2015-12-061-2/+10
| | | | | | | | | | | | | | | | | | | | | In get_option(): don't read past the end of the option buffer. Also add a small unittest to verify sane behaviour for the above. The dhcpcd code is not easily refactored into a library, nor is it entirely possible to include some header files directly since some structures use C++ reserved keywords ("new") for variable names. In print_option(): use of snprintf() returns the length that /would/ have been written. Add checks that the output buffer is not overrun when printing. This fixes CVE-2014-7912 and CVE-2014-7913 Bug: 18356137 Bug: 18356135 Change-Id: I0f907b8a952208749226ba034a416d773e068f8a Tested-by: Moritz Bandemer <replicant@posteo.mx>
* dhcpcd: Update to Version 5.5.6Dmitry Shmidt2012-07-231-25/+101
| | | | | Change-Id: I98c378688be723a2a602ec17c26bc13f2fd83cc8 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wimax : Fix for some DHCP servers not returning some DNS infotk.mun2011-12-061-2/+6
| | | | | | | | | | Explicitly include 'domain_name_servers' and 'domain_name' in the list of parameters requested in the DNS request. Without this some DHCP servers may skip the DNS entries in the DHCP replies. Change-Id: I4c6463acd4f0719984a8cab9903ce50fcf59405a Signed-off-by: tk.mun <tk.mun@samsung.com> Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* dhcpcd: Add Android patchesDmitry Shmidt2011-01-251-1/+7
| | | | | Change-Id: Ia232992f6e18a1494ad12e38c95fd0d2a7520e8e Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* dhcpcd: Update to Version 5.2.10Dmitry Shmidt2011-01-241-132/+249
| | | | | Change-Id: I949331c7aad91b125decd51da4041983d3a352bc Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* dhcpcd: Upgrade from 4.0.1 to 4.0.15Dmitry Shmidt2010-01-081-71/+108
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+1251
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-1251/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-87/+120
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+1218