summaryrefslogtreecommitdiff
path: root/src/ipconfig.c
AgeCommit message (Collapse)AuthorFilesLines
2018-01-23Updated connman to version 1.35Seonah Moon1-86/+19
Change-Id: I13526fbf80296a79be15548fc226a308941ac9ec Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-01-08Imported Upstream version 1.35upstream/1.35Seonah Moon1-73/+23
Change-Id: I174854914d9fd06a813270b57d1f7bc2bac63c6a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-12-13Remove non-essential logssubmit/tizen/20171218.085650accepted/tizen/unified/20171219.072622taesub kim1-2/+2
Change-Id: I486b7e8c47d4d46dab0bc1868daf9fd56f929619 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-12-12Fixed the keyload issue when wifi is initial connectionsubmit/tizen/20171212.082257accepted/tizen/unified/20171212.171956taesub kim1-0/+4
Related link: https://review.tizen.org/gerrit/#/c/117897/ Change-Id: I8dc20e796bb7c84bb56bebb25faa609e0056fa74 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-11-08Enable IPv6 privacy address support.Niraj Kumar Goit1-1/+4
Change-Id: Icbffd857f35aff492e343af3da855bdc69d3b22d Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-09-19[Upstream] ipconfig: Ensure ifname is not NULL when setting IPv6 statesubmit/tizen/20170920.020838accepted/tizen/unified/20170921.072215Jaehyun Kim1-2/+4
This is a quick fix for the issue where removal of an interface may cause IPv6 to be disabled/enabled on other interfaces. When removing an ipdevice in free_ipdevice(), it is ensured that the ifname (which we get from connman_inet_ifname()) is not NULL, before invoking set_ipv6_state(). If a NULL ifname is passed into set_ipv6_state(), it will apply the change to all interfaces instead of the intended one. Change-Id: I2b0b6494e3c2d4a80e7a8e2012f274987f6e8142 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2017-08-03Changes required for DHCP leased seconds APIsubmit/tizen/20170809.085632submit/tizen/20170808.043745accepted/tizen/unified/20170811.021044Abhishek Sansanwal1-0/+14
Change-Id: I0727c24f30be5162d27e49996dfa376348f98527 Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
2017-04-25Added some logs for debuggingSeonah Moon1-0/+12
Change-Id: I3a133fa6aebd28dea42f7dfd9ecb42d04c45f291 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-04-06Provide DHCP Server address to upper layer while appending IPv4 Datataesub kim1-0/+12
Change-Id: I8d6a33ddeff94c7bbfb56ed7e4d64966be5bcd31 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-03-30Removed unnecessary logsSeonah Moon1-8/+0
Change-Id: Ia9688dbfa5bd0b2e5f917003c6d5825e2e4c7b5f
2017-03-14Apply DNS configuration methodsubmit/tizen/20170322.011410accepted/tizen/wearable/20170322.235735accepted/tizen/unified/20170322.235830accepted/tizen/tv/20170322.235708accepted/tizen/mobile/20170322.235633accepted/tizen/ivi/20170322.235801accepted/tizen/common/20170322.153711Seonah Moon1-4/+0
Change-Id: If16e739fde7e9d736c66015ab1efa982e49d3482 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-03-08[connman] Add IPv6 gateway address after service IP bound.submit/tizen_unified/20170310.011402submit/tizen/20170308.045955accepted/tizen/wearable/20170308.121234accepted/tizen/unified/20170310.080648accepted/tizen/tv/20170308.121225accepted/tizen/mobile/20170308.121214accepted/tizen/ivi/20170308.121241accepted/tizen/common/20170309.175139Niraj Kumar Goit1-0/+4
Add IPv6 gateway address after service IP bound to fix state flow issue. Change-Id: Ia30a834f52c7d849ee54305d0d370f629fc506bb Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-02-23[connman] Merged IPv6 related code.Seonah Moon1-3/+26
1. Added code to set IPv6 gateway addess. 2. Fix IPv6 issue in case of auto-configuration. Change-Id: Ie0e1d53dd269a09600d2f08e66d73cefd6dd3c29 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2016-04-26Imported Upstream version 1.29upstream/1.29taesubkim1-47/+55
Change-Id: I2958446c35966d9ed72df0120b80561be7d89f54 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2015-10-06Sync with Tizen 2.4(1.29.36)submit/tizen/20151020.082803accepted/tizen/wearable/20151020.111030accepted/tizen/tv/20151020.111019accepted/tizen/mobile/20151020.111002taesub.kim1-0/+10
Change-Id: I02fc50820cccc66aed702a97a9928981e73b43cf Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-47/+65
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2015-07-08Fix MMS connection failureJaehyun Kim1-0/+8
Change-Id: Id3847d1d8233c2177cfbd65ba42ead8ff44a06a8
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-12/+27
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-281/+375
2013-05-24ipconfig: Use system set addresses for IPv4 property in 'manual' modePatrik Flykt1-1/+1
Addresses and gateway for the service IPv4 property being used in the system are available from ipconfig->system when the property is set to 'manual'.
2013-05-06ipconfig: Save last used DHCPv6 addressJukka Rissanen1-0/+9
This is needed when implementing CONFIRM message decision logic.
2013-02-22ipconfig: Add function to set the IPv6 privacy optionJukka Rissanen1-0/+19
2013-02-05ipconfig: Use proper address structure when appending IPv4 infoPatrik Flykt1-1/+1
2013-02-05ipconfig: Add checks for invalid IPv4/IPv6 addressesPatrik Flykt1-3/+23
Also fine tune returned errors.
2013-02-05ipconfig: Do not overwrite gateway addressJukka Rissanen1-2/+2
If we have already received gateway address via newroute rtnl message, then do not overwrite it when receiving newaddr message. Fixes BMC#25931
2013-01-24ipconfig: IPv6 was enabled too earlyJukka Rissanen1-2/+3
When enabling IPv6 ipconfig, we enable kernel IPv6 support too early. The ipconfig might get unreffed which will disable ipconfig and thus disable kernel IPv6 support. By moving kernel IPv6 enabling after the ipconfig unref call, we make sure that IPv6 kernel support is properly enabled. This is related to fix in commit d479904ecaa2bd9
2013-01-16ipconfig: Do not disable IPv6 in lower up stateJukka Rissanen1-12/+0
Disabling IPv6 in lower up causes problems in IPv6 connectivity. The interface IPv6 status can stay in disabled state because of races. So this patch reverts the commit 4ce90440a70abce7de537777 and lets service IPv6 state go to READY when we get an auto configured address for the interface. Fixes BMC#25929
2012-11-23ipconfig: Do not check device if interface name is not setJukka Rissanen1-0/+3
If the interface name is not set, then it is no use checking if the interface would be ignored. The interface name is not set if the interface is being taken down and we get NEWLINK message with NULL interface. Fixes BMC#25865
2012-11-23ipconfig: Move IP address API into separate ipaddress.c fileJukka Rissanen1-166/+1
Done so that connman_ipaddress_* functions can be used from separate vpn daemon.
2012-11-02ipconfig: Add function to clear ipaddress informationJukka Rissanen1-0/+8
2012-09-28ipconfig: Fix IPv6.Configuration parsingTomasz Bursztyka1-5/+3
PrefixLength is exposed as a byte in the API, but code was waiting for a string when setting a new value.
2012-09-25ipconfig: Set default IPv6 method according to kernel IPv6 supportJukka Rissanen1-2/+10
If kernel does not support IPv6, then turn default ipconfig method OFF. If kernel supports IPv6, then the default is AUTO meaning that we try to send router solicitation messages.
2012-09-13ipconfig: Catch interface name changesJukka Rissanen1-1/+12
Update the ipdevice interface name if it is changed by udev.
2012-09-04Use g_slist_prepend() where appropriatePatrik Flykt1-1/+1
Convert usage of g_slist_append() to g_slist_prepend() where appropriate. gdbus, dnsproxy, resolver, rtnl, session and session unit test have ordering requirements and thus not touched.
2012-08-17ipconfig: Use correct ipconfig ipaddress for FIXED methodPatrik Flykt1-9/+5
Use ipconfig->address when reporting IP addresses for services with FIXED method. AUTO method is used only by IPv6, don't report any addresses should it erroneously appear for IPv4. Fixes BMC#25084
2012-08-14ipconfig: Allow NULL gateway for IPv6Elena Tebesoi1-3/+0
This patch makes possible configuring a GPRS connection with IPV6 settings and without gateway.
2012-08-08ipconfig: Add function to check if the ipconfig is OFFJukka Rissanen1-0/+19
2012-06-25ipconfig: Save prefixlen only if not clearedJulien Massot1-2/+3
This commit fixes a bug when using manual ipv4 addressing. The first time it works, but once the service is reconnected it uses an invalid netmask: 255.255.255.255.
2012-06-11ipconfig: Set IPv6 privacy default value from kernel defaultJukka Rissanen1-1/+5
Use value set in the kernel as the initial IPv6 privacy setting. This also allows distros to set the privacy value without needing to tweak connman.
2012-05-22ipconfig: Show FIXED configuration IP address infoPatrik Flykt1-12/+50
Show FIXED configuration IP address info in service IPv4 and IPv6 properties. If IP address is not available via ipconfig->system, use the provider configured ones instead. Fixes BMC#25084
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1
2012-04-27ipconfig: Add ipconfig type to __connman_ipconfig_get_gateway_from_index()Patrik Flykt1-11/+16
In order to be able to request a certain ipconfig type, add the type as a parameter to __connman_ipconfig_get_gateway_from_index().
2012-04-25ipconfig: Do not tweak IPv6 status of ignored devicesJukka Rissanen1-2/+4
2012-03-20ipconfig: Disable IPv6 for new interfacesDaniel Wagner1-0/+7
We don't have yet an ipconfig for this interface, that means the service.c does not yet know this interface. In order to be able to get into sync we disable IPv6 auto connection at this point. If the service state machine decides to connect, it will enable it again.
2012-03-20ipconfig: Track ipconfigs enabled/disabled stateDaniel Wagner1-0/+7
2012-03-20ipconfig: Do not enable IPv6 ipconfigs when loading the propertiesDaniel Wagner1-3/+0
When enabling IPv6 when loading the Service properties, the Service state machine gets out of sync when AutoConnect is disabled. At this point we should only load the properties and let the Service state machine decide when to enable the ipconfigs. And the good news is that the core handles this already.
2012-03-04ipconfig: Fix broken attempt to handle {IPv4,IPv6}.ConfigurationMarcel Holtmann1-45/+14
2012-03-01ipconfig: Accept variant types in __connman_ipconfig_set_config()Tim Sander1-0/+36
According the D-Bus API, the Service interface accepts variant types.
2012-02-13ippool: Add prefixlen argument to __connman_ippool_new/deladdr()Daniel Wagner1-4/+4
2012-02-01ipconfig: Add/del IP address from IP poolDaniel Wagner1-0/+6