Giter Site home page Giter Site logo

Add option for accept_ra value about netctl HOT 6 CLOSED

aeris avatar aeris commented on August 28, 2024
Add option for accept_ra value

from netctl.

Comments (6)

joukewitteveen avatar joukewitteveen commented on August 28, 2024

Do you have a use-case for this? I'm okay with adding such options, but would prefer to give them more meaningful names.

from netctl.

aeris avatar aeris commented on August 28, 2024

Use case : my gateway 😂
enp1s0 interface has forwarding enabled because it's the LAN/VPN/LXC gateway, and in this case, accept_ra=1 is not enough to have SLAAC working on it and so netctl doesn't assign IPv6.
There is another case here.

For option name, why not just AcceptRA=2?

from netctl.

joukewitteveen avatar joukewitteveen commented on August 28, 2024

I have to think about this a bit and am very much pressed for time right now, I am sorry.
I will be sure to address this before the next version of netctl.

AcceptRA= would be the obvious candidate, but I do not like the value 2. It does not convey what is happening. AcceptRA=always would be more readable, for example. However, what would we call the value 1?

from netctl.

joukewitteveen avatar joukewitteveen commented on August 28, 2024

I gave it a little thought and see no reason why netctl should not just set accept_ra to 2 instead of to 1. Can you think of any situation where you use netctl and 1 is preferred over 2?

Replacing $? by $((2*$?)) on line 54 of /usr/lib/netctl/ip should do the trick (although I will eventually expand this into a proper if statement).

from netctl.

aeris avatar aeris commented on August 28, 2024

At this moment I see no reason, but if there is 3 possible values in the kernel, it should have at least one 😂

from netctl.

joukewitteveen avatar joukewitteveen commented on August 28, 2024

162af2a

from netctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.