summaryrefslogtreecommitdiffstats
path: root/src/lib/connections
AgeCommit message (Collapse)AuthorFilesLines
2014-06-24Update tunnel connectionsJouke Witteveen2-6/+8
Add support for IPv6 and improve debug output.
2014-06-17Remove superfluous debuggingJouke Witteveen1-1/+1
2014-05-06Fix pid lookup for killing pppdJouke Witteveen2-11/+11
The pid file contains more than just the pid: on the second line it records the interface pppd manages.
2014-05-06Fix default interface bindings (fourth time)Jouke Witteveen5-5/+10
The following changes introduced in Bash 4.3 necessitate this commit: - Setting the array attribute no longer initializes an array. - Empty-but-set arrays no longer pass [[ -v ]]. Previous attempts: feb669f4b2a15e6ea1d84be336f12be4650f9d2d 711c46457ae9fef52c7c529d89c67d0d526f73ef e8210827fd59e4539a70af55cb452b211633fedd
2014-04-23Minor fixesJouke Witteveen1-1/+0
- Don't bring an interface down if it is not brought up for wireless connections. - Often, `read` needs '-r'.
2014-03-10mobile_ppp: Unhardcode the phone number to dialJouke Witteveen1-1/+1
2014-03-04[macvlan] fix variable name CONN_DIR -> SUBR_DIR/connectionsThomas Kuther1-1/+1
2014-03-01Add macvlan connection supportJouke Witteveen1-0/+31
2014-03-01Minor improvements to bridge/vlan codeJouke Witteveen2-1/+4
2014-03-01port bonding from ifenslave to iproute2ajs124_desk1-5/+3
Ifenslave is deprecated according to the kernel documentation: https://www.kernel.org/doc/Documentation/networking/bonding.txt It also added an additional, unnecessary dependency. I tried to update the documentation to reflect this change.
2014-02-27Introduce a new PPP connection typeJouke Witteveen1-0/+28
This should at some point take care of most PPP use cases, but currently is just a frontend to pppoe. The main difference is that the new connection type keeps track of profiles by their 'dynamic' interface name. Hence it is not wise to use both pppoe and ppp profiles.
2014-02-27Factor out DHCP client supportJouke Witteveen1-1/+1
Support for additional DHCP clients is now easy to add.
2014-02-27Uniform adding and deleting of interfacesJouke Witteveen4-12/+8
The main benefit is the possibility to use interface hooks for links that are created at runtime.
2014-02-27Add option to bypass Duplicate Address DetectionJouke Witteveen1-1/+3
After several requests, here is SkipDAD to bypass Duplicate Address Detection.
2014-02-25Remove CONN_DIR variableJouke Witteveen1-1/+2
It is not of much use.
2014-02-25Code style and output improvementsJouke Witteveen2-2/+2
Now a bit more verbose when useful.
2013-10-24Overhaul of ppp connection typesJouke Witteveen2-129/+79
- Refactorization of option file generation - Introduction of optional additional pppd options file specification - Introduction of unit specification option for pppoe connections
2013-10-23Add a connection type for dummy interfacesJouke Witteveen2-0/+29
2013-10-23Minor rfkill refactorizationJouke Witteveen1-2/+2
Testing whether transmission is blocked at all is now possible through [[ -n $(rf_status "$Interface" "$RFKill") ]]
2013-10-21Specify the local side of a tunnel early (FS#36711)Jouke Witteveen2-8/+6
Needed in case the remote side of a tunnel is set to 'any'.
2013-07-28Fix TypoJustin1-1/+1
Add missing "$" in variable call.
2013-07-24Use iproute2 for bridging (FS#36165)Jouke Witteveen1-10/+9
This sheds the dependency on the old bridge-utils (brctl).
2013-07-21Introduce sedJouke Witteveen1-1/+1
Instead of filtering results from grep, we can also just use sed. Installations having grep can be expected to have sed as well.
2013-06-16Fix default interface bindings (third time)Jouke Witteveen4-6/+6
The declare builtin defaults to making variables local. Previous attempts: 711c46457ae9fef52c7c529d89c67d0d526f73ef e8210827fd59e4539a70af55cb452b211633fedd
2013-05-21Expose the 'maxfail' option for ppp connectionsJouke Witteveen2-2/+2
2013-05-06Improve array handlingJouke Witteveen4-4/+4
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-05-01Remove the last traces of netcfgJouke Witteveen1-1/+1
2013-04-23Small review of PPP related connections (take 2)Jouke Witteveen2-2/+2
The previous take did not contain the stuff that initially motivated rewriting the quoting function. The code of both PPP connection types is still sub-par, but at least functionally, it is a little better now.
2013-04-18Small review of PPP related connectionsJouke Witteveen2-40/+40
The most important change is that we now bring the interface down correctly in pppoe_down.
2013-04-18add command to turn modem on, fix pin commandLeo von Klenze1-1/+2
2013-04-15Allow group-accessible tuntap devicesJouke Witteveen1-1/+1
The tuntap connection type requires both a User and a Group to be defined. However, when configuring a tuntap device in the kernel, the device's uid and gid must both match for someone to be able to use the device. The only way to create a tuntap device accessible to a group of users is therefore to avoid specifying the user argument to "ip tuntap add". Reported by: A Web
2013-04-15Fix naming of IEEE 802 working groupsJouke Witteveen2-6/+6
Use 'wpa' to refer to the 802.11i and 802.1x client side software (wpa_supplicant) in general.
2013-04-10Uniformize modelinesJouke Witteveen7-7/+7
2013-04-10Changed connections to use underscores.Robbie Smith1-10/+10
2013-04-08Code tidying up. Renamed mobile connection to mobile-ppp.Robbie Smith2-148/+147
Also: - Replaced echos with invocations of cat, where possible. - Fixed PIDFILE to point to the file ppp creates. This ensures the interface can be brought down. - Fixed setting of InterfaceRoot. - Removed vim syntax highlighting from ethernet connection.
2013-04-08Added ppp mobile by porting from netcfg.Robbie Smith1-0/+148
2013-03-25Fix pppoeJouke Witteveen1-1/+1
The up/down functions don't take arguments as they did in netcfg.
2013-03-22More possibilities for connection scriptsJouke Witteveen4-0/+6
This allows connection scripts to provide defaults, among other things.
2013-03-18Unhardcode pathsJouke Witteveen3-4/+6
Remove distribution-specific paths (and allow overrides).
2013-03-12connections/vlan: fix BindsToInterfaces length calculationFlorian Pritz1-1/+1
${#array[@]} requires "[@]" to count the array members. Otherwise it will return the length of the first element which will hardly ever be 1. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-05Move the location for profilesJouke Witteveen1-1/+1
Old location: /etc/network.d New location: /etc/netctl This should ease migration from netcfg and is a better path anyway.
2012-12-30Drop the Scan parameterJouke Witteveen1-9/+1
It was quite useless.
2012-12-28Forking netcfg to netctl (2/2)Jouke Witteveen8-460/+202
This commit contains the refactoring and rewriting of code.
2012-12-28Forking netcfg to netctl (1/2)Jouke Witteveen9-0/+677
This commit contains the moving of files.