Re: IPADDR/PREFIXLEN

2007-11-27 Thread Tambet Ingo
On Nov 26, 2007 11:38 PM, Michal Zugec [EMAIL PROTECTED] wrote:
 I checked also other distributin sources and the same problem is
 everywhere. Before I start to play with it I want to ask -  anybody
 solved it yet? Or I need to start from scratch?

My take (being the assignee of the bug on novell bugzilla) is that
it's not worth to spend time on it for the stable branch (0.6.x).
There's an easy workaround, just use the first form. For the future
releases of NM (from 0.7 branch), our goal is to get rid of the whole
src/backends directory. It currently does two things: reads
configuration from the distro specific configuration files and to
commit configuration changes in distro specific way. For writing, it
has proved to not have a lot of point and it's getting changed to use
libnl directly. For reading, there's a system settings daemon Dan
committed just last week, but it's a work in progress and isn't in the
state yet where you could just fix this specific bug.

(My personal opinion: Even longer term solution, let's not use distro
specific shell scripts at all)

Tambet
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


IPADDR/PREFIXLEN

2007-11-26 Thread Michal Zugec
Hi hackers!
I found one NetworkManager problem in openSUSE but it's related also to
other distributions.

# If using a static configuration you have to set an IP address and a
netmask
# or prefix length. The following examples are equivalent:
# 1) IPADDR=192.168.1.1
#NETMASK=255.255.255.0
# 2) IPADDR=192.168.1.1
#PREFIXLEN=24  # NETMASK will be ignored
# 3) IPADDR=192.168.1.1/24 # NETMASK and PREFIXLEN will be ignored

Above are 3 possibilities how to write static network configurations
into ifcfg-(device) files. But NetworkManager understads only first one.

src/backends/NetworkManagerSuSE.c lines 661-688

I checked also other distributin sources and the same problem is
everywhere. Before I start to play with it I want to ask -  anybody
solved it yet? Or I need to start from scratch?

Thanks,
Michal
-- 
Best Regards,
Michal Zugec
Software developer
-
SuSE CR, s.r.o.e-mail: [EMAIL PROTECTED]
Lihovarska 1060/12  tel: +420 284 028 960
190 00 Praha 9  fax: +420 296 542 374
Czech Republichttp://www.suse.cz/

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list