[PATCH] fff-network: enable accept_ra

Fabian Bläse fabian at blaese.de
So Sep 8 20:46:53 CEST 2019


Hey Tim,

Theoretisch ein guter Fund. Praktisch ist es egal, weil "forwarding" von der gleichen Funktion für das Interface auf 0 gesetzt wird. Sonst wäre IPv6 auch in der Node Firmware kaputt, dort ist Forwarding ebenfalls aktiv.
Ich bin hier noch etwas unschlüssig, wie genau wir accept_ra jetzt setzen sollten..

Gruß
Fabian

On 08.09.19 17:04, Tim Niemeyer wrote:
> Else we can't enable accept_ra while forwarding is enabled.
> 
> Signed-off-by: Tim Niemeyer <tim at tn-x.org>
> ---
> 
>  .../fff/fff-network/files/usr/sbin/configurenetwork        | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork
> index 448bd04..0b47b4f 100755
> --- a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork
> +++ b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork
> @@ -33,10 +33,15 @@ setAutoConf() {
>      # Usage: setAutoConf <interface> <[0|1]>
>      local iface=$1
>      local on=$2
> +    local ra=$2
> +
> +    if [ "$ra" -eq "1" ]; then
> +        ra=2;
> +    fi
>  
>      sysctlfile="/etc/sysctl.d/51-fff-network-$iface.conf"
>      echo "# Generated from configurenetwork" > "$sysctlfile"
> -    echo "net.ipv6.conf.$iface.accept_ra = $on" >> "$sysctlfile"
> +    echo "net.ipv6.conf.$iface.accept_ra = $ra" >> "$sysctlfile"
>      echo "net.ipv6.conf.$iface.accept_ra_defrtr = $on" >> "$sysctlfile"
>      echo "net.ipv6.conf.$iface.accept_ra_pinfo = $on" >> "$sysctlfile"
>      echo "net.ipv6.conf.$iface.autoconf = $on" >> "$sysctlfile"
> 

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 833 bytes
Beschreibung: OpenPGP digital signature
URL         : <https://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20190908/df1f4a37/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev