summaryrefslogtreecommitdiff
path: root/src/dhcp.c
AgeCommit message (Collapse)AuthorFilesLines
2019-09-23Added support to enable/disable Auto-IP option.submit/tizen/20190925.080914submit/tizen/20190924.065941accepted/tizen/unified/20190926.065658Niraj Kumar Goit1-0/+8
Added support to enable/disable Auto-IP option using main.conf Change-Id: Iea1cae5a28681a90a5f79735c7374791a227feb7 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2019-09-18Imported Upstream version 1.37submit/tizen/20190920.082459Nishant Chaprana1-3/+26
Change-Id: Idb47c1ddbedc9f97181b8e9a5eeac04ddd832a2c Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-07-04Imported Upstream version 1.37upstream/1.37Nishant Chaprana1-2/+24
Change-Id: Ib5957e7ee3a9315ee86a331189bc3e9e71751ee8 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-08-24[connman] Added Tizen Wi-Fi Meshsubmit/tizen/20180824.072908Nishant Chaprana1-0/+35
Change-Id: Iec2ec99fb7d4fc6d9c0539e5a9e7c903e1969580 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-01-23Updated connman to version 1.35Seonah Moon1-15/+80
Change-Id: I13526fbf80296a79be15548fc226a308941ac9ec Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-01-08Imported Upstream version 1.35upstream/1.35Seonah Moon1-16/+94
Change-Id: I174854914d9fd06a813270b57d1f7bc2bac63c6a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-08-03Changes required for DHCP leased seconds APIsubmit/tizen/20170809.085632submit/tizen/20170808.043745accepted/tizen/unified/20170811.021044Abhishek Sansanwal1-0/+9
Change-Id: I0727c24f30be5162d27e49996dfa376348f98527 Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
2017-04-25Added some logs for debuggingSeonah Moon1-2/+17
Change-Id: I3a133fa6aebd28dea42f7dfd9ecb42d04c45f291 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-04-10Remove old IP and gateway addresssubmit/tizen/20170412.005740submit/tizen/20170411.091632accepted/tizen/unified/20170412.152315Abhishek Sansanwal1-6/+13
Change-Id: I61defbc6fba37e7c3a04516d1946f2b5cd22af1a Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
2017-03-28Merge "[upstream patch] dhcp: Remove the possible remaining dhcp_retry_cb ↵taesub kim1-2/+5
timer" into tizen
2017-03-28Modified the DHCP descover/request timeout and disable DHCP reququest for ↵taesub kim1-0/+11
last address (DHCP discovery) wlan0 retry timeout=1sec retries=15 (DHCP request) retry timeout=1sec Change-Id: I28b8f8361dcf2c8cff7f3084c47707f05bc0da64 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-03-27[upstream patch] dhcp: Remove the possible remaining dhcp_retry_cb timerSeonah Moon1-2/+5
Change-Id: I9759e546298a5ae5cdfccfd629512f475e9ec2e8 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
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-0/+20
Change-Id: If16e739fde7e9d736c66015ab1efa982e49d3482 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-02-23DHCP: Use auto-generated IP when DHCP is failedsubmit/tizen/20170228.042751submit/tizen/20170227.093013accepted/tizen/wearable/20170228.071803accepted/tizen/tv/20170228.071716accepted/tizen/mobile/20170228.071608accepted/tizen/ivi/20170228.071900accepted/tizen/common/20170228.065258accepted/tizen/common/20170227.140546Seonah Moon1-14/+0
Change-Id: I1051fc5506c816150bea4d65c93a0e2877d375d3 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2016-06-17[SPIN] Added the connman disconnect reason property.Niraj Kumar Goit1-0/+7
Change-Id: I11fd7baa7d00fa3f3a12bdafda7ff7aa6943d020 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-17[SPIN] Fix the connman bugs.Niraj Kumar Goit1-0/+8
- Fixed NTP service's DNS resolving failure in Hive project. - Do not turn "wlan0" interface down in cleanup_devices(). - Set resource limits "RLIMIT_NOFILE" for a process. - After appending a file, fflush and fsync all modified in-core data of the file. Change-Id: I2767b3302d6204d066fe2075027828ff209d0ee0 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-14[SPIN] network: enable DHCP failure.Niraj Kumar Goit1-2/+16
When DHCP is failed, most of normal users cannot understand auto-generated IP (IPV4 link local). So set error CONNMAN_NETWORK_ERROR_DHCP_FAIL. Change-Id: Ic80eb0436e41cff3a4bfb11dfef722b3029b0399 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-04-26Imported Upstream version 1.29upstream/1.29taesubkim1-0/+13
Change-Id: I2958446c35966d9ed72df0120b80561be7d89f54 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2015-12-15Fixed various memory leak issuesSaurav Babu1-1/+2
Change-Id: I7de6bb13d8b17582d705e6e67ec1dc4cb7cb9713 Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-1/+15
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-192/+221
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-145/+255
2012-11-23ipconfig: Move IP address API into separate ipaddress.c fileJukka Rissanen1-2/+2
Done so that connman_ipaddress_* functions can be used from separate vpn daemon.
2012-11-02dhcp: Clear ipaddresses from ipconfig before starting DHCPJukka Rissanen1-0/+6
This is needed if manually configured addresses were used and later DHCP was taken into use. If the manually configured IP information (address, netmask and gateway) and the information given by DHCP is the same, DHCP will not set the IP address to the interface.
2012-08-14service: Allow plugins to lookup services by networksDaniel Wagner1-4/+4
2012-08-10dhcp: Apply received hostname option according to conf file settingJukka Rissanen1-3/+7
We do not use the received DHCP hostname option (12) if system config file setting says so. Fixes BMC#25597
2012-07-05dhcp: warn on invalid netmaskJulien Massot1-0/+2
2012-05-09dhcp: Use g_list_length() to calculate the list lengthJukka Rissanen1-4/+2
2012-05-09dhcp: Check NULL pointer dereferenceJukka Rissanen1-2/+4
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1
2012-02-13dhcp: Request sending a RFC 1533- and 2132-compliant client-idGrant Erickson1-0/+2
Some Internet gateways and Wi-Fi access points are unhappy when the DHCPv4 client-id option (61) is missing and will refuse to issue a DHCP lease. Adding the client-id option placates these devices. This patch requests that a RFC 1533- and 2132-compliant DHCP client-id option (61) be sent with DHCPv4 packets.
2012-02-04dhcp: modify connman_dhcp to add multiple timeserversAlok Barsode1-15/+32
2012-01-13ipconfig: Rename previously public functionsDaniel Wagner1-2/+2
Prefix them with a "__".
2011-11-28service: Support automatically added nameserversJukka Rissanen1-3/+3
IPv6 autoconfigured nameservers can be added to resolver via netlink messages in rtnl.c. Because of this they are not seen in service object so we need to get those auto added nameserver to be added in service.c so that service can show them to user if necessary. Fixes BMC#24196
2011-10-20dhcp: Reference count network properlyJukka Rissanen1-1/+4
2011-08-09dhcp: Try to reuse the IP address we had last time.Jukka Rissanen1-1/+14
This fix will cause the DHCP_REQUESTED_IP option to be sent to the server. Fixes BMC #21068
2011-07-25dhcp: Fix memory leakDaniel Wagner1-2/+5
Reported by valgrind.
2011-07-25dhcp: Fix cleanupDaniel Wagner1-0/+4
__connman_dhcp_cleanup() is called early in the shutdown process (before device or network).
2011-06-07dhcp: Fix dhcp_invalidate NULL pointer accessDaniel Wagner1-3/+5
dhcp->nameservers can be NULL. This can be triggered with toggling the technologies switches fast enough.
2011-06-01dhcp: Call ipconfig_address_remove from dhcp_invalidateSamuel Ortiz1-0/+2
Clearing the ipconfig fields is not enough, the actual rntl command needs to be sent for the IP to be cleared.
2011-05-31dhcp: Invalidate and Release on Network RemovalGrant Erickson1-6/+23
When removing a network DHCP configuration, invalidate the DHCP configuration in addition to releasing it. This addresses a case in which a lower-level network event (e.g. Wi-Fi disassociation triggered by the driver due to low signal strength) causes a service disconnect not triggered by connman but then is recovered BY connman to reuse the prior DHCP lease configuration but not actually assign it by simply invalidating the old lease configuration when connman removes the prior network.
2011-05-31dhcp: Remove extra dhcp_release callThierry Boureille1-8/+0
dhcp_release will be called from the hash table remove callback, if the network is found.
2011-03-25service: Create/remove 6to4 tunnel.Jukka Rissanen1-0/+4
2011-03-23dhcp: Fix memory leakDaniel Wagner1-12/+64
And be a bit more clever when there is new dhcp lease. Only propagate real changes in the configuration for nameservers, timeserver and PAC.
2011-03-22dhcp: Reset IP settings upon changesSamuel Ortiz1-7/+33
The IP settings should not change when a DHCP renewal gives the same configuration.
2011-03-22dhcp: Remove unused net stringSamuel Ortiz1-2/+1
2011-03-21dhcp: do not overwrite DNS serversLucas De Marchi1-1/+1
The counter 'i' was not being incremented, making secondary DNS servers to overwrite the first ones.
2011-03-11dhcp: Stop pending gdhcp client requestsDaniel Wagner1-0/+7
When remove_network is called there could be still a pending dhcp request in the dhcp client. Fixes BMC#13947
2011-02-24element: Remove DHCP elementDaniel Wagner1-146/+170
2011-01-28dhcp: Move plugins/dhcp in to coreDaniel Wagner1-164/+161