summaryrefslogtreecommitdiffstats
path: root/libnetutils
Commit message (Collapse)AuthorAgeFilesLines
* Libnetutils: Remove unused functions & variablesAndreas Gampe2014-11-244-12/+2
| | | | | | | For build-system CFLAGS clean-up, remove unused functions and variables. Change-Id: I40a78d5a532dc32b53beb1cfc1b7645bab8add16
* Support resetting connections tied to any nonexistent address.Sreeram Ramachandran2014-09-081-2/+4
| | | | | Bug: 15414453 Change-Id: Ibf1f052e12b88838a328148e25817a96f10d50f5
* Add a comment to not delete seemingly unused code.Sreeram Ramachandran2014-07-231-0/+1
| | | | Change-Id: I5b9d23eea7e850ab5a1f3a4e6c4f8ecdc3844864
* Put back some deleted code.Sreeram Ramachandran2014-07-231-0/+31
| | | | | | | | | http://ag/507249 removed a bunch of supposedly dead (unused) code. It turns out at least ifc_disable() is being used in some protected partner branches. Put back that as well as ifc_enable() to keep it symmetric. Bug: 15413389 Change-Id: Ibec83a66e5d9079876ccf36d250b95b7c0294c03
* Cleanup: Delete dead code.Sreeram Ramachandran2014-07-221-301/+0
| | | | | Bug: 15413389 Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc
* am 04482eab: am f998116b: am 08c372d1: Merge "libnetutils: Turn on -Werror"Mark Salyzyn2014-05-232-7/+11
|\ | | | | | | | | * commit '04482eaba2584c3a05bff4a6647f0a2e55475a91': libnetutils: Turn on -Werror
| * libnetutils: Turn on -WerrorMark Salyzyn2014-05-232-7/+11
| | | | | | | | | | | | | | - Get rid of a pair of out of range comparison warnings. - Turn on -Werror for compilation Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2883
* | am 2a7ce0bc: am 9a12e952: am 5b7bb03e: Merge "Revert "libnetutils: Turn on ↵Mark Salyzyn2014-05-221-5/+3
|\ \ | |/ | | | | | | | | | | -Werror"" * commit '2a7ce0bc7da0201c4b228d04d900ec440bfdcf8b': Revert "libnetutils: Turn on -Werror"
| * Revert "libnetutils: Turn on -Werror"Mark Salyzyn2014-05-211-5/+3
| | | | | | | | | | | | This reverts commit 249c26de823be0f9a84a9f092c776bcd9830fba5. Change-Id: I2a56c574fa8d842d5f3c51fd57ecf078838fcfec
* | am d7465194: am 2c0a7f6f: am d3cd08f8: Merge "libnetutils: Turn on -Werror"Mark Salyzyn2014-05-221-3/+5
|\ \ | |/ | | | | | | * commit 'd746519443e37d7dde104779253830e92ae72c8e': libnetutils: Turn on -Werror
| * libnetutils: Turn on -WerrorMark Salyzyn2014-05-211-3/+5
| | | | | | | | Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2882
| * Merge commit '536dea9d61a032e64bbe584a97463c6638ead009' into HEADThe Android Open Source Project2013-11-221-5/+12
| |\ | | | | | | | | | Change-Id: I5c469a4b738629d99d721cad7ded02d6c35f56d5
* | | libnetutils: Expect 1's complement if computed UDP checksum is zeroAjay Dudani2013-12-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per http://tools.ietf.org/html/rfc768: If the computed checksum is zero, it is transmitted as all ones (the equivalent in one's complement arithmetic). An all zero transmitted checksum value means that the transmitter generated no checksum (for debugging or for higher level protocols that don't care). Bug: 10642341 Change-Id: Ib6296dcf3f420f87227047a645c99d9f7ea0d437
* | | am d97a34af: am 60e7d495: Merge "Fix libnetutils to build with clean uapi ↵Elliott Hughes2013-11-121-0/+5
|\ \ \ | |/ / | | / | |/ |/| | | | | headers." * commit 'd97a34af49f6beafc21d5f459ea62b499544f9f3': Fix libnetutils to build with clean uapi headers.
| * Fix libnetutils to build with clean uapi headers.Elliott Hughes2013-11-121-0/+5
| | | | | | | | | | | | | | (And old ones too.) Bug: 11559337 Change-Id: Ie61218055bbe07655a9d53c539aa47b85098e42c
* | libnetutils: Get mtu together with dhcp session resultsDmitry Shmidt2013-08-021-5/+12
|/ | | | | Change-Id: I517fd1f62d451b07466a21a2b770d9ce389dac19 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* resolved conflicts for merge of c0df50af to stage-aosp-masterColin Cross2013-06-101-2/+1
|\ | | | | | | Change-Id: I949cce9e1f14cd33162b81fbc6728c64e2b09b7c
| * fix bad return value in dhcp_do_request_*Michael Wu2013-06-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | 1. bad return status make it return uninitialized prefixLength with a magic number in android_net_utils_runDhcpCommon() 2. it will make DhcpInfoInternal.makeLinkAddress() to throw IllegalArgumentException when try to connect a Wifi AP 3. the exception will make system reboot, of cource it random. Change-Id: Iabc0cd5b69c1316f4eeae0aa1b8a91444dca4562 Signed-off-by: Michael Wu <michaelstay@gmail.com>
* | Add liblogYing Wang2013-04-091-1/+2
| | | | | | | | | | Bug: 8580410 Change-Id: Iab3a9b4307f207c14a04a922cc7350c54e60e9ad
* | Merge "Support 4 dns servers, up from 2"Robert Greenwalt2013-01-111-14/+12
|\ \
| * | Support 4 dns servers, up from 2Robert Greenwalt2013-01-101-14/+12
| | | | | | | | | | | | | | | bug:5958524 Change-Id: I61c25e23d21e92653ec9b874d3d456a330d8fe05
* | | am bab2ba3e: am 6d9589c3: Merge "Fix dhcpcd startup when net.hostname is not ↵Elliott Hughes2013-01-071-1/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | set" * commit 'bab2ba3e730d610883added31ff806da352cbb07': Fix dhcpcd startup when net.hostname is not set
| * Fix dhcpcd startup when net.hostname is not setMatt Gumbel2013-01-041-1/+1
| | | | | | | | | | | | | | | | | | Commit 62d6f74 swapped p2p_interface and DHCP_CONFIG_PATH erroneously. This reverts them to their correct ordering and makes dhcpcd startup work again. Change-Id: Iea033a7e0dad98bb2a63fb39755330675cfbb0ab Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
* | Handle empty gatewaysIrfan Sheriff2012-12-071-1/+1
| | | | | | | | Change-Id: Icbc1859125bae0bc222685bfbc18af38273d6827
* | Remove dead codeIrfan Sheriff2012-12-061-7/+0
| | | | | | | | | | | | Remove unnecessary DHCP properties Change-Id: I27b5d0a2d8fd67c911d04bb2d18dc1b3f10e7c2a
* | Read domain name from dhcp system propRobert Greenwalt2012-11-131-5/+12
|/ | | | | | | This property is set by the dhcpcd daemon. bug:6799630 Change-Id: I21002e286819cff420ec72e3857764e5f58ecfe4
* am d2e826b5: am 65c37c81: Merge "Fixed an unused param warning"Stephen Hines2012-08-081-1/+1
|\ | | | | | | | | * commit 'd2e826b5192f3b964c893b8230cee1d8bdb84071': Fixed an unused param warning
| * Fixed an unused param warningEdwin Vane2012-08-021-1/+1
| | | | | | | | | | | | | | | | libnetutils had a single warning. Fixed it to make it clean. Change-Id: I9297e556657a38dbdd7d1d0ac4bc3574801d5ac9 Author: Edwin Vane <edwin.vane@intel.com> Reviewed-by: Kevin P Schoedel <kevin.p.schoedel@intel.com>
* | Decode DHCP netmask option correctlyChris Dearman2012-08-082-4/+7
| | | | | | | | | | Signed-off-by: Chris Dearman <chris@mips.com> Change-Id: Ibc288458baf2f75c5b19a46e4c97ee59521cc9a5
* | Merge remote-tracking branch 'goog/jb-dev-mako' into jb-mr1-devEd Heyl2012-07-281-4/+0
|\ \
| * | Export flags needed for ifc_reset_connections API in netutilsAlex Yakavenka2012-06-211-4/+0
| |/ | | | | | | | | | | | | Code using ifc_reset_connections api needs to have access to predefined masks for reset_mask parameter Change-Id: I90bc5e1b62ae4a88501c8ad4e353c0d93d319579
* | dhcp_utils: Add -f dhcpcd.conf processingDmitry Shmidt2012-07-231-5/+7
|/ | | | | Change-Id: Idd5c8734fafd27c76f61820f223627af4c71a271 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Reuse system properties for p2pIrfan Sheriff2012-05-231-43/+60
| | | | | | | | | | | | 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 Also, fixed some warnings Bug: 6522164 Change-Id: Ibe9a68a1b5db9d5b0fe88c854d9f94b1b9930970
* Pipe DHCP vendor info towards framework.Jeff Sharkey2012-04-191-6/+14
| | | | | Bug: 6344821 Change-Id: Iebce3e1b36175fc88f44e18db647c43b1245f18f
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-1/+1
| | | | | Bug: 5449033 Change-Id: Ibcffdcf620ebae1c389446ce8e9d908f11ac039c
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-052-4/+4
| | | | | Bug: 5449033 Change-Id: I1e070511b6a538e9f1c94657356437a457d58882
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-033-35/+35
| | | | | Bug: 5449033 Change-Id: I9244d927f14c750cd359ebffb1fc1c355a755d5a
* Merge "Fix dhcp comments"Irfan Sheriff2011-11-091-2/+10
|\
| * Fix dhcp commentsIrfan Sheriff2011-11-091-2/+10
| | | | | | | | Change-Id: Ia99b2c10ff6cf8c75c23db49f1e9cf7a043141cc
* | Wimax: wimax related changes for libnetutilstk.mun2011-11-071-2/+2
|/ | | | | | | | - Modified dhcp renew code for the new conenctivity changes in ICS Change-Id: I614dfc62a875b79dbd8b7c46f4d87f366a3c3661 Signed-off-by: tk.mun <tk.mun@samsung.com> bug:5486930
* Support adding, deleting, and clearing IPv6 addrs.Lorenzo Colitti2011-09-282-5/+211
| | | | | | | | | | | | | | | | - Provide a function to add and delete IPv4/IPv6 addresses using netlink. - Provide a function that clears all IP addresses on an interface that can be used by netd. Also, a couple of cleanups: - Update the header file to match reality, and include the header file in the implementation. Also fix a caller that has an incorrect method signature. - Fix whitespace in Android.mk. Change-Id: Ifba9d60cdfffb0b7e5c3b9c6ab328f5f77d259c4
* Reduce connectivity logging.Wink Saville2011-09-201-2/+2
| | | | Change-Id: Ib71f3f17d56ba614436bcb18f9100196fd7e7ee6
* Update dhcp for p2prepo sync2011-08-121-8/+35
| | | | | Bug: 5002384 Change-Id: I4ee4f80e2bc2966aa30d1344182d90f30117fbae
* Use dhcp netmask value rather than its pointer (patch from Marvell)Jae Seo2011-07-291-1/+1
| | | | Change-Id: Iffe2ca52333df4ef393c5305a5b66582006e4699
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-7/+0
| | | | | | Bug: 5010576 Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
* am 436deea5: am 979203ee: Add reset_mask as parameter to ifc_reset_connectionsWink Saville2011-07-081-22/+32
|\ | | | | | | | | * commit '436deea5bbd43ae402ca8ee5bbc7fed3daaf3fce': Add reset_mask as parameter to ifc_reset_connections
| * Add reset_mask as parameter to ifc_reset_connectionsWink Saville2011-07-071-22/+32
| | | | | | | | | | | | | | | | The reset_mask allows either IPv4 and or IPv6 connections of an interface to be reset. Bug: 4981919 Change-Id: Id2d9ab90e30091d3d0764c66d4b01b73c0edbfcc
* | Revert some of change 109925 to fix connectivityRobert Greenwalt2011-05-251-9/+126
| | | | | | | | | | bug:4476009 Change-Id: I93c492eebe24d9744b8ef79378c73301d167f5a3
* | am 61e33b33: am aded02cb: Merge "Add v4/v6 route add/removal support" into ↵Robert Greenwalt2011-05-191-83/+29
|\ \ | |/ | | | | | | | | | | honeycomb-LTE * commit '61e33b338cbb90c34cb3e07fe55edcc08c6ce3b8': Add v4/v6 route add/removal support
| * Add v4/v6 route add/removal supportRobert Greenwalt2011-05-151-83/+29
| | | | | | | | Change-Id: I259a3be4fe473dff75336139c9584d2c5ab27b2d