Re: [PATCH 4/6] VLAN: add NMDeviceVLAN

2011-11-20 Thread Weiping Pan
On 11/18/2011 04:28 AM, Dan Williams wrote: On Wed, 2011-11-16 at 16:54 +0800, Weiping Pan wrote: On 11/16/2011 01:54 PM, Dan Williams wrote: On Fri, 2011-10-21 at 09:52 +0800, Weiping Pan wrote: NMDeviceVLAN represents a VLAN device in NetworkManager. When a VLAN device is created in kernel,

[PATCH 1/5] configure: use correct if defined

2011-11-20 Thread Weiping Pan
I only install libnl-3.2.3 on my system, and I met an error: In file included from ../../src/nm-netlink-monitor.h:93:0, from nm-vpn-connection.c:48: ../../src/nm-netlink-compat.h:210:5: error: HAVE_LIBNL1 is not defined ../../src/nm-netlink-compat.h:210:20: error: HAVE_LIBNL2 is not defined

[PATCH 3/5] vlan: create/delete kernel vlan device

2011-11-20 Thread Weiping Pan
We make use of libnl (=3.2.1) to create/delete kernel vlan device, and it can set vlan id, vlan flags and ingress/egress priority mapping. V2: 1 use existing nm_netlink_iface_to_index() Signed-off-by: Weiping Pan w...@redhat.com --- src/nm-system.c | 156

[PATCH 4/5] vlan: create NMDeviceEthernet for vlan device

2011-11-20 Thread Weiping Pan
A vlan device is like a virtual ethernet device. So we reuse NMDeviceEthernet insead of creating another NMDeviceVlan, and we add some special handling to detect vlan connections. V2: 1 delete NMDeviceVlan, just use NMDeviceEthernet Signed-off-by: Weiping Pan w...@redhat.com ---

[PATCH 5/5] vlan: add ifcfg-vlan writer

2011-11-20 Thread Weiping Pan
add write_vlan_setting() and modify test-ifcfg-rh.c to test it. Signed-off-by: Weiping Pan w...@redhat.com --- .../plugins/ifcfg-rh/tests/test-ifcfg-rh.c | 38 src/settings/plugins/ifcfg-rh/writer.c | 90 2 files changed, 128 insertions(+), 0

[PATCH 2/5] vlan: add ifcfg-vlan parser

2011-11-20 Thread Weiping Pan
The example of ifcfg-vlan is as followed: VLAN=yes TYPE=vlan DEVICE=vlan43 PHYSDEV=eth9 REORDER_HDR=0 VLAN_FLAGS=GVRP,LOOSE_BINDING VLAN_INGRESS_PRIORITY_MAP=0:1,2:5 VLAN_EGRESS_PRIORITY_MAP=12:3,14:7 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.43.149 NETMASK=255.255.255.0 And we try to make it

how to use NetworkManager in ubuntu 10.04

2011-11-20 Thread 金 晓烨
I want to develop an application run in ubuntu 10.04 and this application may have some IPC with the NetworkManager. When i installed the NetworkManager 0.9.20 after ./configure make check make install make installcheck it is all clear ,but then i can not get my eth device information

Re: [PATCH 2/5] vlan: add ifcfg-vlan parser

2011-11-20 Thread Chuck Anderson
I think you should support the common and documented format: DEVICE=eth0.43 which is documented in /usr/share/doc/initscripts-*/sysconfig.txt Ethernet 802.1q VLAN items: DEVICE=eth0.42 Initscripts use the device name for VLAN devices. Example: eth0.42 for vlan 42 on