Age | Commit message (Collapse) | Author | Files | Lines |
|
Also-Contributed-By: Olivier Mehani <olivier.mehani@nicta.com.au>
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
This allows configuring multiple IPv6 addresses on the same interface.
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
Bridge support is quite rudimentary and should support
common options.
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
This needs dhclient to work properly.
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
Use variable ROUTES6 in the same way as ROUTES to support static IPv6
routes.
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
Enabled by "IP6=static": it uss parameters ADDR6, GATEWAY6, IP6CFG
similar to their IPv4 counterparts, as well as an additional PREFIXLEN
parameter.
Signed-off-by: Olivier Mehani <shtrom-arch@ssji.net>
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
|
|
|
|
|
|
Add netcfg configuration option "ROUTES" to setup static routes. This is
done regardless of whether the IP address is configured using a DHCP or
statically. ROUTES is an array cantaining entries of the form
"DESTINATION[/NETMASK] [via ROUTER]" which are directly used in an “ip
route add” command.
Signed-off-by: Olivier Mehani <shtrom-arch@ssji.net>
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* fix report_debug filename
* unecessary return after report_iproute
* add another report_debug
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
Sometimes just for coding style (inside [[ ]]), othertimes a necessary
precaution.
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
|
|
|
|
|
|
|
|
* Connect SECURITY=wep|none with wpa_supplicant
* Separate out iwconfig based configuration as -old as a fallback for
older hardware
* Drop some old quirks, as they're mostly needed for iwconfig based or
are needed by deprecated drivers
* Drop wpa_passphrase and just generate a config.
|
|
WPA_DRVER: Configure the -D argument to wpa_supplicant, for example
-Dnl80211
WPA_COUNTRY: Set the 'country=' variable in the wpa_supplicant
configuration.
WEP string keys: modified such that they may work. Not tested yet.
|
|
|
|
CONFIGSECTION will be useful later on for integration with autowifi.
It'll allow WPA configurations to be stored _in_ the profile, rather
than separately.
Experimentally, WEP/none support has been migrated to wpa_supplicant.
Support for string keys has not yet been merged.
|
|
|
|
3. Change the name of "set_interface up/down..." to "bring_interface
up/down" to differentiate it from the similarly-named, merely record-keeping functions.
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
* add some abortive returns
* some exit tweaks
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
* added various quotes
* made some vars local
* tweaked some [[ ]]s, including one broken one in netcfg-menu
* s/ra0/$INTERFACE/ in ethernet-iproute and wireless
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
|
|
Added some extra debug points
Directed debug out to stderr, as debug messages were being used as
output from find_essid.
|
|
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
corner cases; others probably make no difference.
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
* The point of having both ethernet and ethernet-iproute
was presumably to transition slowly from ifconfig/net-tools to
iproute2. But the current codebase mixes the two in handling
ethernet and wireless connections. This commit separates
all the ip calls to the newer connections, and the ifconfig
calls to the older connections. The latter now call set_interface
with up-old, down-old, forcedown-old.
* I'm not urging that ifconfig code sticks around. Just trying
to make the code consistent with what seems to me to be
its implicit design principles.
* the check for NO-CARRIER in ethernet is now also done without
calling iproute2 tools. I saw this technique recommended somewhere
but have no citation. I don't know how many kernel revisions one
can rely on any given part of /sys to remain stable for.
It may be possible to achieve the same goal here in other ways.
If in fact it's worth the effort to keep the ifconfig code
around.
* Began also to integrate the IPROUTE variable introduced in
ethernet, but stopped. If that's integrated everywhere, shouldn't
it make connection=ethernet equivalent to
connection=ethernet-iproute? Is there justification for
using it at some places but not everywhere? I just let it alone
for now.
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
* try to factor all the ifconfig/ip set dev code to single location
(currently networks/set_interface, though I recommend a different name
for this function because it's too close in name and different
in functionality from set_iface, set_profile).
* added "forcedown" option to set_interface, meaning "just go down
don't worry about 'nodown' quirks"
* even with "forcedown", this factoring would introduce "ip addr
flush dev $INTERFACE" calls to existing code. I assume that's
harmless? or even beneficial?
* one code block (in ethernet_iproute) had stdout,stderr of the
down calls redirected to /dev/null. I've moved that to
set_interface, so now everyone's getting that behavior. I assume
that's appropriate...
* now no more calls to "ip" or "ifconfig" outside of set_interface,
except the checks for NO-CARRIER after ethernet*/set_interface up.
They might also be moved to network/set_interface?
* as of this commit, all the set_interface calls are now using ip
instead of ifconfig. A subsequent commit will isolate the ip-use
to ethernet-iproute and the ifconfig-use to ethernet.
* ALERT: attend to wireless_down, it seems to be calling
set_interface down twice (once in ethernet_down, once in itself).
And neither this commit nor the code it's patching respects
quirk nodown in the ethernet_down block.
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|
|
* AP= arguments in profiles take precedence over ESSID= arguments
* ESSID= arguments regexps instead of literals. To avoid screwing up
any currently working profiles, I restricted the interpretation as a
regexp to just the new wireless-dbus connection types.
* But a global change involved in implementing this is that the
connection up/down calls will be passed a literal ESSID (which of the
local networks matches the regexp) as an additional argument.
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
|