macvlan_config on linux 2.6.16 build problem.

Dawid Ciezarkiewicz <[email protected]>
Newsgroups gmane.linux.drivers.vlan
Message-ID <[email protected]>
I'm trying to compile vconfig (vlan.1.9.tar.gz) for 2.6.16 linux kernel.

The problem is:
Making vconfig.c
gcc        -g -D_GNU_SOURCE -Wall -I/usr/src/linux/include -c vconfig.c
gcc        -g -D_GNU_SOURCE -Wall -I/usr/src/linux/include  -o vconfig
vconfig.o
strip vconfig
gcc        -g -D_GNU_SOURCE -Wall -I/usr/src/linux/include  -o
macvlan_config macvlan_config.c
macvlan_config.c: In function `do_enable':
macvlan_config.c:169: error: incompatible types in assignment
macvlan_config.c: In function `do_setflags':
macvlan_config.c:204: error: incompatible types in assignment
macvlan_config.c: In function `_do_disable':
macvlan_config.c:221: error: incompatible types in assignment
macvlan_config.c: In function `do_add':
macvlan_config.c:269: error: incompatible types in assignment
macvlan_config.c: In function `_do_del':
macvlan_config.c:283: error: incompatible types in assignment
macvlan_config.c: In function `get_num_ports':
macvlan_config.c:321: error: incompatible types in assignment
macvlan_config.c: In function `get_num_vlans':
macvlan_config.c:341: error: incompatible types in assignment
macvlan_config.c: In function `do_bind':
macvlan_config.c:379: error: `MACVLAN_BIND' undeclared (first use in
this function)
macvlan_config.c:379: error: (Each undeclared identifier is reported
only once
macvlan_config.c:379: error: for each function it appears in.)
macvlan_config.c:380: error: incompatible types in assignment
macvlan_config.c:397: error: incompatible types in assignment
macvlan_config.c: In function `do_unbind':
macvlan_config.c:423: error: `MACVLAN_UNBIND' undeclared (first use in
this function)
macvlan_config.c:424: error: incompatible types in assignment
macvlan_config.c:441: error: incompatible types in assignment
macvlan_config.c: In function `do_info':
macvlan_config.c:471: error: incompatible types in assignment
macvlan_config.c:484: error: incompatible types in assignment
macvlan_config.c:495: error: incompatible types in assignment
macvlan_config.c:496: error: incompatible types in assignment
macvlan_config.c:508: error: incompatible types in assignment
macvlan_config.c:519: error: incompatible types in assignment
macvlan_config.c:526: error: `MACVLAN_GET_NUM_MACS' undeclared (first
use in this function)
macvlan_config.c:529: error: incompatible types in assignment
macvlan_config.c:537: error: `MACVLAN_GET_MAC_NAME' undeclared (first
use in this function)
macvlan_config.c:541: error: incompatible types in assignment
macvlan_config.c: In function `do_unload':
macvlan_config.c:574: error: incompatible types in assignment
macvlan_config.c:587: error: incompatible types in assignment

I've look on changes between candela_2.6.11.patch and
candela_2.6.13.patch - API changed a little. 
macvlan_ioctl.ifname is now array instead of pointer. While I could add
strcmp here and there in the sources, I'm not sure about that API calls like
MACVLAN_UNBIND. They are uncommented for some reason I thinkg, but I'm kind of
guest in vconfig world. I can't use candela_2.6.11.patch with 2.6.16
kernel too.

Please - if you could give me some info about what I should do with this
problem I would be very thankful.

Best redards,
Dawid Ciężarkiewicz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.