path: root/src/dhcp.c
AgeCommit message (Collapse)AuthorFilesLines
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
2010-12-31memoryleak: remove element when not needed any moreJukka Rissanen1-0/+1
2010-12-14dhcp: Add function to clear DHCP configurationJulien Massot1-0/+13
2010-10-02Print debug information about DHCP timeserver value if availableMarcel Holtmann1-0/+2
2010-07-29Update service domain name when connection becomes activeMarcel Holtmann1-0/+2
2010-07-29Store host and domain names retrieved from DHCPMarcel Holtmann1-0/+4
2010-05-04Split DHCP-provided nameserver string.Forest Bond1-1/+10
The DHCP-provided nameserver string is split up into separate nameservers. Currently, only one nameserver can be stored in the connman_element.ipv4 structure, so all but the first of the DHCP-provided nameservers are thrown out.
2010-01-07Add debug information for proxy auto configuration URLMarcel Holtmann1-0/+2
2010-01-04Store PAC URL configuration in DHCP and provider elementsMarcel Holtmann1-0/+2
2010-01-03Add basic interfaces for automatic proxy configurationMarcel Holtmann1-0/+1
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-14Add timeserver value from DHCP configurationMarcel Holtmann1-0/+2
2009-12-07Add driver data handling for DHCPMarcel Holtmann1-0/+23
2009-12-07Add support for setting hostname and domainname from DHCPMarcel Holtmann1-0/+2
2009-12-07Parse interface MTU values from DHCP resultsMarcel Holtmann1-0/+1
2009-12-07Add parsing of Domainname, Hostname and Timeserver resultsMarcel Holtmann1-0/+3
2009-12-07Add DHCP value configuration handlingMarcel Holtmann1-0/+32
2009-12-07Add DHCP bound, renew and fail handlingMarcel Holtmann1-0/+51
2009-12-07Add function to get index value from DHCP structureMarcel Holtmann1-0/+11
2009-12-07Add DHCP driver and element handlingMarcel Holtmann1-0/+143
2009-12-07Add skeleton for DHCP driver transitionMarcel Holtmann1-0/+56