summaryrefslogtreecommitdiff
path: root/src/dhcp/nm-dhcp-client.c
Commit message (Collapse)AuthorAgeFilesLines
* dhcp: simplify how hostname and FQDN are passed down to backendsBeniamino Galvani2017-05-091-9/+7
| | | | | | | Since they are mutually exclusive, pass a string and a boolean to indicate whether we want to use the hostname or the FQDN option. (cherry picked from commit d286aa9dfa9626234e7f40705c5313407177c431)
* dhcp: dhclient: fix timeout greater than 60 secondsBeniamino Galvani2017-05-021-0/+8
| | | | | | | | | | | | The default timeout in dhclient is 60 seconds; if a lease can't be obtained during such interval, dhclient sends to NM a FAIL event and then the IP method fails. Thus, even if user specified a greater dhcp-timeout, NM terminated DHCP after 60 seconds. Fix this by passing an explicit timeout to dhclient. (cherry picked from commit 82ef497cc9e2728e73cb0426efbae85c83bec3fe)
* Remove assertion for empty DHCP optionsAlfonso Sánchez-Beato2017-03-281-1/+0
| | | | | | | | | | It turns out that some routers return responses to DHCP6 Information-request messages that do not contain any of the options that we insert in the "options" table. When that happened and the info-only flag for DHCP6 was set, the assertion was triggered and NetworkManager crashed. We remove the assertion as having empty options is a possibility and is harmless anyway. This happened while using the internal dhclient.
* all: use "unsigned long" instead of "long unsigned"Thomas Haller2017-03-141-1/+1
|
* ip[46]-config/trivial: move code aroundThomas Haller2017-01-161-1/+1
| | | | | Move the GObject related functions to the end of the source file. Similar to how it's done for most other implementations.
* build: don't add subdirectories to include search path but require qualified ↵Thomas Haller2016-11-211-1/+1
| | | | | | | | | | | | | | | include Keep the include paths clean and separate. We use directories to group source files together. That makes sense (I guess), but then we should use this grouping also when including files. Thus require to #include files with their path relative to "src/". Also, we build various artifacts from the "src/" tree. Instead of having individual CFLAGS for each artifact in Makefile.am, the CFLAGS should be unified. Previously, the CFLAGS for each artifact differ and are inconsistent in which paths they add to the search path. Fix the inconsistency by just don't add the paths at all.
* build: rename "src/dhcp-manager" to "src/dhcp"Thomas Haller2016-11-211-0/+997
The dhcp directory does not only contain the manager instance, but various files related to DHCP. Rename.