Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-apps/openrc-0.11.2 & newnet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Mon Oct 22, 2012 10:35 am    Post subject: sys-apps/openrc-0.11.2 & newnet Reply with quote

Quote:
equery u sys-apps/openrc
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for sys-apps/openrc-0.11.2:
U I
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
http://www.gentoo.org/proj/en/qa/backtraces.xml
+ + ncurses : Adds ncurses support (console display library)
- - newnet : enable the new network stack (experimental)
+ + pam : Adds support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip
- - static-libs : Build static libraries
+ + unicode : Adds support for Unicode


What does "new network stack" do and how it will affect my network setup?
What is the difference between the old and new network stack ?
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Oct 22, 2012 12:44 pm    Post subject: Re: sys-apps/openrc-0.11.2 & newnet Reply with quote

Kollin wrote:
What does "new network stack" do and how it will affect my network setup? What is the difference between the old and new network stack?

Kollin ... 'newnet' will replace 'net.lo' with 'network' (and the respective files under /etc/conf.d), README.newnet (see source directory) explains that the intention is to simplify the method of configuring interfaces, but as this is a work in progress it is considered 'experimental'.

For the status of 'newnet' you might ask on #openrc (irc.freenode.net) and/or read the relevant scripts and conf.d in the sources.

best ... khay
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Mon Oct 22, 2012 2:47 pm    Post subject: Reply with quote

Thank you! I'll look into it ;)


Quote:
openrc-0.11.2/README.newnet 1813/1813 100%
The following applies only to the newnet stack, which is not presently
maintained in OpenRC. The oldnet stack is maintained instead.
- Robin H. Johnson <robbat2@gentoo.org>, 2011/02/21

OpenRC Network Ideals
---------------------

The new style networking for OpenRC is very simplistic - provide a basic means
of configuring static interface address and routes whilst allowing the
possibility to run any command at any point.

In a nutshell, init.d/network is a wrapper around ifconfig(8) and
init.d/staticroute is wrapper around route(8).

In the Perfect World (TM) ifconfig should be able to configure everything
about the interface easily * . The BSD family almost get this right and Linux
epically fails.

* Only static configuration, including link setup.
For dynamic, static, IPv4LL, arping and per ssid IPv4 setup dhcpcd-5.x
provides your needs.

It fails because there are many tools to do the same job and often have
vastly different syntax where they could be similar. In other words, there
is no coherence.

OpenRC-0.4.x and older (inc Gentoo baselayout-1) had a collection of scripts
for each tool and allowed a script per interface. Over the years, this design
has proven very hard to maintain as each user has their own idea of how
things should work. Also, there were (and still are) race conditions.

So where do we go from here?
Well, it's possible to use the new network scripts using the tools
currently available. It's just harder as you have to know them and their
documentation can be lacking at times.
The correct end goal is a BSD style ifconfig tool.
I've started work on it, but the project has stalled somewhat.
It's display only right now and the source is not yet publicly available.
If you have the skills and share the vision then contact me privately and
we'll take it from there.


:wink:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Mon Oct 22, 2012 3:34 pm    Post subject: Reply with quote

Now my questions are:
What is going to change in /etc/conf.d ?
What is going to change in syntax, commands or both?
What is going to happen with net.eth* (/etc/init.d/net.lo will be replaced with network)?

:?:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Oct 22, 2012 4:39 pm    Post subject: Reply with quote

Kollin wrote:
What is going to change in /etc/conf.d?

Why not look at {openrc-0.11.2}/conf.d/network.(|BSD|Linux).in?

Kollin wrote:
What is going to change in syntax, commands or both?

Why not, as I suggested, ask on #openrc? ... other than the above README.newnet, the changes are undocumented. I imagine that much of the current syntax will be preserved, but that the methodology will change. For example, in {openrc-0.11.2}/conf.d/network.in it states that the variables 'ifconfig_eth0' can be subsitiuted for files (/etc/ifconfig.eth0, or /etc/ip.eth0), so the variable config_${IFACE} seems to be replaced with ip_${IFACE} or ifconfig_${IFACE} (basically the varible 'modules' has been dropped in favour of a var that includes both ${module} and ${IFACE}). There is also the inclusion of an ifup_${IFACE} which defines how the interface will be configured prior to having an address asigned. No doubt there are other significant changes, but until it is fully documented then you will need to ask the developers.

Kollin wrote:
What is going to happen with net.eth* (/etc/init.d/net.lo will be replaced with network)?

Why not look at {openrc-0.11.2}/init.d/network.in? It seems that the variable 'interfaces' (see {openrc-0.11.2}/conf.d/network.in) will provide 'network' with some idea of which interfaces are to be handled, and the init has some logic for bring them up, whether these are to be symlinked similarly to net.lo I can't tell without a more through reading and checking the various stuff in {openrc-0.11.2}/net.

Anyhow, this may not land in stable as the default for some considerable time, and all of the above may have changed considerably before that happens, so such questions are not particularly pressing ... unless you plan on migrating to this new 'experimental' feature.

best ... khay
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Tue Oct 23, 2012 5:55 am    Post subject: Reply with quote

Thank you khayyam for the explanation! I think i'll wait for the availability of detailed documentation :wink:
Besides i just found out that i don't need newnet to screw up my network configuration

https://forums.gentoo.org/viewtopic-t-940160.html

:D
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Oct 23, 2012 1:15 pm    Post subject: Reply with quote

Kollin wrote:
Besides i just found out that i don't need newnet to screw up my network configuration

Kollin ... if you install ~arch openrc you can expect some issues, thats why its in 'testing' and not 'stable'. Similarly if you enable "experimental" features.

The general tone of your comment is enough to have me wonder who, or what, is doing the screwing up.

best ... khay
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Tue Oct 23, 2012 9:46 pm    Post subject: Reply with quote

khayyam wrote:
Kollin ... if you install ~arch openrc you can expect some issues, thats why its in 'testing' and not 'stable'. Similarly if you enable "experimental" features.

The general tone of your comment is enough to have me wonder who, or what, is doing the screwing up.

best ... khay


Oh no, I'm not complaining ;)
I'm fully enjoying Gentoo's testing branch :D
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum