summaryrefslogtreecommitdiffstats
path: root/src/connections
diff options
context:
space:
mode:
authorOlivier Mehani <olivier.mehani@nicta.com.au>2011-06-11 16:27:20 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-11 16:28:05 +0200
commit68786de7a2224f81c2190491b2956b4f4276e0cd (patch)
treec3f1d2d95d87db32cea48cf0d95bfc9a76d5ded2 /src/connections
parentc0a547316f6585f27c5af4dccb013509ffbb1c22 (diff)
downloadnetctl-68786de7a2224f81c2190491b2956b4f4276e0cd.tar.gz
netctl-68786de7a2224f81c2190491b2956b4f4276e0cd.tar.xz
IPv6: add support for stateless autoconfiguration
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au> Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'src/connections')
-rw-r--r--src/connections/ethernet6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 3d70d9e..ec03184 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -123,7 +123,11 @@ ethernet_up() {
fi
case "$IP6" in
+ stateless)
+ sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=1
+ ;;
static)
+ sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=0
if [[ -n "$ADDR6" ]]; then
[[ -z $PREFIXLEN ]] && PREFIXLEN=64
report_debug ethernet_iproute_up ip -6 addr add "$ADDR6/$PREFIXLEN" dev "$INTERFACE"
@@ -151,7 +155,7 @@ ethernet_up() {
"")
;;
*)
- report_iproute "IP6 must be 'static'"
+ report_iproute "IP6 must be 'stateless' or 'static'"
;;
esac