aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fun with buffer overrruns.HEADmasterErik Kline2015-12-063-2/+164
| | | | | | | | | | | | | | | | | | | | | 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>
* am 7a659da9: Merge "Get rid of LOCAL_MODULE_TAGS := user"Joe Onorato2012-08-171-5/+0
|\ | | | | | | | | * commit '7a659da9ec67d85d1b166fc6c1984f488de8e031': Get rid of LOCAL_MODULE_TAGS := user
| * Merge "Get rid of LOCAL_MODULE_TAGS := user"Joe Onorato2012-08-161-5/+0
| |\
| | * Get rid of LOCAL_MODULE_TAGS := userJoe Onorato2012-06-131-5/+0
| |/ | | | | | | Change-Id: I8ced7c513d75e64e16a76e41ea7b1c271cf10a19
* | dhcpcd: Update to Version 5.5.6Dmitry Shmidt2012-07-2337-717/+2130
| | | | | | | | | | Change-Id: I98c378688be723a2a602ec17c26bc13f2fd83cc8 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | Fix netmask retrival from ifc_get_info()Dmitry Shmidt2012-07-231-4/+5
| | | | | | | | | | Change-Id: I67b06887a72869d48e0c6c2fcacf8c99153d7f82 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | am 40d921b2: Fix commentIrfan Sheriff2012-05-231-2/+2
|\ \ | |/ | | | | | | * commit '40d921b22a5c878d64b17a1138477e0eeb37842e': Fix comment
| * Fix commentIrfan Sheriff2012-05-231-2/+2
| | | | | | | | | | Bug: 6522164 Change-Id: I02e19a8263cdec791041564d2888239f8d724438
* | am 48d5a1d5: Reuse system properties for p2pIrfan Sheriff2012-05-233-15/+43
|\ \ | |/ | | | | | | * commit '48d5a1d50750ffa5d14b64841fc7e81dadafd1a4': Reuse system properties for p2p
| * Reuse system properties for p2pIrfan Sheriff2012-05-233-15/+43
| | | | | | | | | | | | | | | | | | | | p2p interfaces keep increasing. Reuse a single "p2p" phrase to track all p2p specific properties. Longer term, we will remove the use of system properties for dhcp Bug: 6522164 Change-Id: Ic9c54dc1904d2e1e8c33bbbc17234ed801f845dc
* | Remove obsolete ThirdPartyProject.prop file.Elliott Hughes2012-05-151-10/+0
|/ | | | Change-Id: I25e90bfe4ec483447da6caf96f729b32df17c485
* am 6a7ffa31: DHCPCD: Add the ability to redirect log to logcat.John Grossman2012-04-201-0/+29
|\ | | | | | | | | * commit '6a7ffa31d45635b56558b9ba8bbd05fc002e1fa4': DHCPCD: Add the ability to redirect log to logcat.
| * DHCPCD: Add the ability to redirect log to logcat.John Grossman2012-04-201-0/+29
| | | | | | | | | | | | | | | | | | Add a simple macro hack (turned off by default) to redirect DHCPCD's syslog messages to Android's logcat facility. Useful when debugging DHCPCD issues. Change-Id: I3bf8b97c04aaecb21cee86c0b4e078a7e31672bc Signed-off-by: John Grossman <johngro@google.com>
* | Pipe DHCP vendor info towards framework.Jeff Sharkey2012-04-181-5/+6
| | | | | | | | | | Bug: 6344821 Change-Id: Ia629cee7dbde00572f86b12ddbbc623c1d70603a
* | am 1f1ef57e: DHCPDC: Actually we do have a monotonic clock...John Grossman2012-04-131-0/+1
|\ \ | |/ | | | | | | * commit '1f1ef57e839d72b24bb2f43b602ecf63e1068010': DHCPDC: Actually we do have a monotonic clock...
| * DHCPDC: Actually we do have a monotonic clock...John Grossman2012-04-131-0/+1
| | | | | | | | | | | | | | | | | | | | Fix bug http://b/issue?id=6272879 DHCPCD thought that our kernel did not support the posix clock_gettime and CLOCK_MONOTONIC which could cause an interface flap under just the right circumstances. See the writeup in the bug for details. Change-Id: I3a5325625499d4c3640ce498fc100ab2891d0a9c
* | am ddaa48f5: wimax : Fix for some DHCP servers not returning some DNS infotk.mun2011-12-061-2/+6
|\ \ | |/ | | | | | | * commit 'ddaa48f57b54b2862b3e6dcf18a44c9647f3baaa': wimax : Fix for some DHCP servers not returning some DNS info
| * 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>
* | Remove obsolete files left from 4.0.15Dmitry Shmidt2011-11-084-2036/+0
| | | | | | | | | | Change-Id: Ibb39ae38df3a8fcb216d4418bf57703a5aa801d9 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | dhcpcd: Use "old style" vendor id for compatibilityDmitry Shmidt2011-10-271-0/+2
|/ | | | | Change-Id: If327f1511c740caf377357668b2af698ec8dacab Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Provide an option to disable route setup with dhcprepo sync2011-08-145-11/+23
| | | | | | | Framework manages route setup for p2p. Bug: 5002384 Change-Id: I7489ebed1c268744a3bf8ea13bf5c55d200fe3e7
* am f53d99f1: am 0c4a89bb: Fix dhcp renew behaviorIrfan Sheriff2011-07-151-0/+7
|\ | | | | | | | | * commit 'f53d99f1bb925b332a2abbca5abd463795508a50': Fix dhcp renew behavior
| * am 0c4a89bb: Fix dhcp renew behaviorIrfan Sheriff2011-07-151-0/+7
| |\ | | | | | | | | | | | | * commit '0c4a89bb5e3205e47085b93ffec210778e474508': Fix dhcp renew behavior
| | * Fix dhcp renew behaviorIrfan Sheriff2011-07-151-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use the -n option to renew the ip address. The current behavior of the client is to reset and initialize all available interfaces sending traffic on them. Change the behavior to do a renew alone Bug: 4987402 Change-Id: I3004feddf77aea248a9c749333d5c0d5ec9d4d3e
* | | Remove the simulator target from all makefiles.Jeff Brown2011-07-111-3/+0
| | | | | | | | | | | | | | | | | | Bug: 5010576 Change-Id: Iae6722e0297a65bcfb747266060bee7418c54623
* | | am d870426c: am 49b71a9e: Check dst addr for NULL incase of IFF_POINTOPOINT ↵Dmitry Shmidt2011-06-141-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | interface (b/4603819) * commit 'd870426cf67e614e4cb938f9e66e00eeb57febc4': Check dst addr for NULL incase of IFF_POINTOPOINT interface (b/4603819)
| * | am 49b71a9e: Check dst addr for NULL incase of IFF_POINTOPOINT interface ↵Dmitry Shmidt2011-06-141-1/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | (b/4603819) * commit '49b71a9ee5f83c49125fd6aff49701524be7a618': Check dst addr for NULL incase of IFF_POINTOPOINT interface (b/4603819)
| | * Check dst addr for NULL incase of IFF_POINTOPOINT interface (b/4603819)Dmitry Shmidt2011-06-141-1/+2
| | | | | | | | | | | | | | | Change-Id: I5ca1775fc16a89b1ffe4c946929afe8b1333f66e Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | am 3586ee30: (-s ours) am 17fdc0de: (-s ours) dhcp: Remove errant extra ref ↵Paul Stewart2011-03-300-0/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | (DO NOT MERGE) [bug: 4174566] * commit '3586ee3039bf5b36a7a80210698eceb3ab4f9be5': dhcp: Remove errant extra ref (DO NOT MERGE) [bug: 4174566]
| * | am 17fdc0de: (-s ours) dhcp: Remove errant extra ref (DO NOT MERGE) [bug: ↵Paul Stewart2011-03-300-0/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 4174566] * commit '17fdc0dee1db0246a59cd3b28278389043fe5134': dhcp: Remove errant extra ref (DO NOT MERGE) [bug: 4174566]
| | * | dhcp: Remove errant extra ref (DO NOT MERGE) [bug: 4174566]Paul Stewart2011-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: If2e7a394c9ab65f7a8d69a4e7b240705204bd34c Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | | Fix dhcp.{iface_name}.pid property settingDmitry Shmidt2011-03-231-2/+12
|/ / / | | | | | | | | | | | | Change-Id: I57b3da6eec12d34ae9f13db4220e454a3c570171 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | | am 6a10bd12: (-s ours) wimax : Change DHCP option for explicit DNS informationTK MUN2011-03-090-0/+0
|\ \ \ | |/ / | | / | |/ |/| * commit '6a10bd1262fd1eb97d3a4ab89507901f9631f32a': wimax : Change DHCP option for explicit DNS information
| * wimax : Change DHCP option for explicit DNS informationTK MUN2011-03-091-2/+5
| | | | | | | | | | | | | | Explicitly include DNS in the list of parameters requested in the DHCP request. Change-Id: If98c8d641e44c73818550df082f298cab440f4ab Signed-off-by: TK MUN <tk.mun@samsung.com>
* | dhcpcd: Add Android patchesDmitry Shmidt2011-01-254-6/+77
| | | | | | | | | | Change-Id: Ia232992f6e18a1494ad12e38c95fd0d2a7520e8e Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | dhcpcd: Update to Version 5.2.10Dmitry Shmidt2011-01-2475-2565/+9194
| | | | | | | | | | Change-Id: I949331c7aad91b125decd51da4041983d3a352bc Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | am 07e6bad2: dhcpcd: Remove obsolete, wrong-syntax scriptDmitry Shmidt2010-09-220-0/+0
|\ \ | |/ | | | | | | | | | | Merge commit '07e6bad27beabac5f4ed795fbbc7c8b564b14495' * commit '07e6bad27beabac5f4ed795fbbc7c8b564b14495': dhcpcd: Remove obsolete, wrong-syntax script
| * dhcpcd: Remove obsolete, wrong-syntax scriptDmitry Shmidt2010-09-221-8/+0
| | | | | | | | | | | | | | Auto-merge: no Change-Id: I051161d7280c21c40df8a80cf2153ebdb7c027ce Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | dhcpcd: Remove obsolete, wrong-syntax scriptDmitry Shmidt2010-09-221-8/+0
| | | | | | | | | | Change-Id: I76ae69b263f3756f7377dcf86a1ac0fc973fc1e1 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | dhcpcd: Enable log messagesDmitry Shmidt2010-09-021-1/+1
|/ | | | | Change-Id: I4b6d04b75f4ceeb2f87664faaea9f18ad2949d1e Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* am e2cfecad: dhcpcd: Fix dhcpcd-run-hooks permissionsDmitry Shmidt2010-07-232-1/+1
|\ | | | | | | | | | | | | Merge commit 'e2cfecadc4e796cae73dbc0dafaf46b837569e71' into gingerbread * commit 'e2cfecadc4e796cae73dbc0dafaf46b837569e71': dhcpcd: Fix dhcpcd-run-hooks permissions
| * dhcpcd: Fix dhcpcd-run-hooks permissionsDmitry Shmidt2010-07-232-1/+1
| | | | | | | | | | Change-Id: Id6031789da6f8c12a1ce5b1943404ba29de3ed0c Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | add meta-files about 3rd party projectsThe Android Open Source Project2010-07-161-0/+10
|/ | | | Change-Id: I79cb3fc0cb83f34b59245d94a4eae56f53998ace
* Leave only error messagesDmitry Shmidt2010-03-291-6/+8
| | | | | Change-Id: Icd6f44019098c62aa2aaa0845a28beb95120bd62 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add an empty CleanSpec.mkJean-Baptiste Queru2010-03-081-0/+49
| | | | Change-Id: Ibc797b7f293acfe1b4d6b173cf8f376e8e8b038a
* Add dhcpcd Android debug outputDmitry Shmidt2010-02-161-0/+13
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* am 279fadf9: reconcile main tree with open-source eclairThe Android Open Source Project2010-02-050-0/+0
|\ | | | | | | | | | | | | Merge commit '279fadf93958d420c67f791291a7c761977aff57' * commit '279fadf93958d420c67f791291a7c761977aff57': android-2.1_r1 snapshot
| * reconcile main tree with open-source eclairThe Android Open Source Project2010-02-050-0/+0
| |\
| | * reconcile android-2.1_r1 snapshotThe Android Open Source Project2010-01-290-0/+0
| | |\ | |/ /
| | * android-2.1_r1 snapshotThe Android Open Source Project2010-01-120-0/+0
| | |