summaryrefslogtreecommitdiffstats
path: root/src/lib/ip
AgeCommit message (Collapse)AuthorFilesLines
2013-10-23Increase default DHCP timeoutJouke Witteveen1-3/+3
New timeout is 30 seconds, which equals the current dhcpcd default.
2013-07-16Don't release DHCP leases by default (FS#35760)Jouke Witteveen1-3/+5
Regardless of the DHCP client, leases are not released by default. This introduces a new configuration parameter: DHCPReleaseOnStop, which can be used to change the default behavior.
2013-07-12Flush routing tables in ip_unset (FS#35638)Jouke Witteveen1-0/+2
This adds to 032df. Custom and automatically (in case of IPv6) added routes are now deleted when the interface is brought down.
2013-07-12Style fixesJouke Witteveen1-1/+1
Redirect syntax and a modeline.
2013-06-16Ordering improvements in IP configurationJouke Witteveen1-33/+30
- Add static routes prior to setting the default IP4 gateway (github/pull/43) - Set sysctl property net.ipv6.conf.<interface>.accept_ra earlier (FS#35788)
2013-05-17Restrict dhcpcd to IPv4Jouke Witteveen1-2/+2
By default, dhcpcd requests leases for both versions of IPv6. In the past, dhcpcd did not support IPv6, so this commits restores old behavior.
2013-05-17Flush the interface configuration in ip_unset instead of bring_interface_down.Thomas Bächler1-1/+4
When switching networks in auto.action, the addresses are not flushed. This is especially problematic with stateless ipv6 autoconfigutation, as invalid IPs may stay around until their (potentially very long) lifetime has expired. bring_interface_down is always called after ip_unset everywhere else, so this change does not affect anything else. V2: Make sure not to flush the link local address.
2013-05-06Improve array handlingJouke Witteveen1-33/+25
When interpreted as an array, the empty string represents a 1-element array consisting of the empty string. This is actually very reasonable. Reported by: Thomas Bächler <thomas@archlinux.org>
2013-04-13Allow IP6 address to be set in case IP6=statelessJouke Witteveen1-2/+4
Router advertisements can tell clients to not generate a public address automatically (AdvAutonomous off). Reported by: Jonne Haß
2013-04-10Fix DHCPOptionsJouke Witteveen1-3/+3
Split them into different variables for different clients. Also, IP6 gets its own, so that it can have options different from the IP4 invocation.
2013-02-01Remove the default IPv4 netmaskJouke Witteveen1-1/+0
A default netmask makes no sense (except possibly /32). Spotted by: Thomas Bächler <thomas@archlinux.org>
2013-01-05Fix stopping wired connectionsJouke Witteveen1-1/+1
- Stop dhcpcd also when DHCPClient is not specified - Exit successfully in ifplugd on going down
2013-01-03Indentation fixesJouke Witteveen1-16/+16
This settles a style for 'case' statements: The label and closing colons are indented with two spaces, The body is indented with two more, totalling four spaces.
2012-12-28Forking netcfg to netctl (2/2)Jouke Witteveen1-0/+215
This commit contains the refactoring and rewriting of code.