This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Disabling an host package
>>>>> "Andrew" == Andrew Lunn <andrew.lunn@ascom.ch> writes:
Andrew> The tun interface is a 2.4 thing.
>>
>> Are you sure? According to the documentation I have seen tuntap was
>> added in the 2.2 days. Does your system have a loadable module
>> drivers/net/tun.o?
Andrew> lunn@cobra:/lib/modules$ find . -name "*tun*"
Andrew> lunn@cobra:/lib/modules$
Andrew> No loadable module.
>> It is possible that things were changed at the header file level
>> between 2.2 and 2.4. The functionality I need from
>> if_tun.h is the ioctl TUNSETIFF and the flags IFF_TAP and IFF_NO_PI.
>> Could you do a quick rgrep through /usr/include to see if these are
>> #define'd in another header?
Andrew> lunn@cobra:/usr/include$ find . -type f | xargs grep TUNSETIFF
Andrew> lunn@cobra:/usr/include$ find . -type f | xargs grep IFF_TAP
Andrew> lunn@cobra:/usr/include$ find . -type f | xargs grep IFF_NO_PI
Andrew> Nothing in the header files. I also checker the kernel
Andrew> sources for 2.2.17 which i had lying around. Its not a
Andrew> standard part of that kernel.
OK, I'll have to make the tap support conditional on the presence of
<linux/if_tun.h>. I'll try to do that in the next day or so. You would
still be able to use a real ethernet interface, assuming a spare one
is available.
Bart
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss